home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)stdeditor.tcl /main/hindenburg/6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)stdeditor.tcl /main/hindenburg/6 7 Mar 1997 Copyright 1996 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 STDEditor : {DiagramEditor} {
- constructor
- method destructor
- method diagramType
- method createOpenByName
- }
-
- constructor STDEditor {class this name} {
- set this [DiagramEditor::constructor $class $this $name]
- # Start constructor user section
-
- # take care of the std-specific entries
- $this specificMenuHdlr [CustEdMenuHandler new std]
- [$this specificMenuHdlr] setCurrentContext
- [$this options] syntaxEntries {class state}
-
- $this title "State Transition Diagram Editor"
- EdControlPanel new $this.c.r.panel
- $this panel $this.c.r.panel
- [$this panel] initialize std
- [$this panel] selected Select
-
- STDArea new $this.c.r.std -panX 0 -panY 0 \
- -currentSymbol Select \
- -doubleClicked "$this open"
- $this editorArea $this.c.r.std
- [$this editorArea] setSize 600 400
- [$this editorArea] possibleOperationsChanged \
- "$this enDisableMenuEntries"
-
- [$this panel] area [$this editorArea]
- $this createEdAreaPopUpMenu
- $this setWindowGeometry std
-
- # End constructor user section
- return $this
- }
-
- method STDEditor::destructor {this} {
- # Start destructor user section
- $this saveFileHistory std
- $this saveWindowGeometry std
- [$this specificMenuHdlr] delete
- # End destructor user section
- $this DiagramEditor::destructor
- }
-
- method STDEditor::diagramType {this} {
- return std
- }
-
- method STDEditor::createOpenByName {this} {
- return [QualOpenByName new $this.obn $this]
- }
-
- # Do not delete this line -- regeneration end marker
-
-