home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)etdeditor.tcl /main/hindenburg/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)etdeditor.tcl /main/hindenburg/7 7 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
-
- require edcontrolp.tcl
- require qualopenby.tcl
-
- # End user added include file section
-
- require "diagramedi.tcl"
-
- Class ETDEditor : {DiagramEditor} {
- constructor
- method destructor
- method diagramType
- method createOpenByName
- }
-
- constructor ETDEditor {class this name} {
- set this [DiagramEditor::constructor $class $this $name]
- # Start constructor user section
-
- # take care of the etd-specific entries
- $this specificMenuHdlr [CustEdMenuHandler new etd]
- [$this specificMenuHdlr] setCurrentContext
-
- $this title "Event Trace Diagram Editor"
- EdControlPanel new $this.c.r.panel
- $this panel $this.c.r.panel
- [$this panel] initialize etd
- [$this panel] selected Select
-
- ETDArea new $this.c.r.etd -panX 0 -panY 0 \
- -currentSymbol Select \
- -doubleClicked "$this open"
- $this editorArea $this.c.r.etd
- [$this editorArea] setSize 600 400
- [$this editorArea] possibleOperationsChanged \
- "$this enDisableMenuEntries"
-
- [$this panel] area [$this editorArea]
- $this createEdAreaPopUpMenu
- $this setWindowGeometry etd
-
- # End constructor user section
- return $this
- }
-
- method ETDEditor::destructor {this} {
- # Start destructor user section
- $this saveFileHistory etd
- $this saveWindowGeometry etd
- [$this specificMenuHdlr] delete
- # End destructor user section
- $this DiagramEditor::destructor
- }
-
- method ETDEditor::diagramType {this} {
- return etd
- }
-
- method ETDEditor::createOpenByName {this} {
- return [QualOpenByName new $this.obn $this]
- }
-
- # Do not delete this line -- regeneration end marker
-
-