home *** CD-ROM | disk | FTP | other *** search
/ PC World 1997 November / PCWorld_1997-11_cd.bin / software / programy / komix / DATA.Z / stdeditor.tcl < prev    next >
Text File  |  1997-03-07  |  2KB  |  77 lines

  1. #---------------------------------------------------------------------------
  2. #
  3. #      (c)     Cayenne Software Inc.    1996
  4. #
  5. #      File:           @(#)stdeditor.tcl    /main/hindenburg/6
  6. #      Author:         <generated>
  7. #      Description:
  8. #---------------------------------------------------------------------------
  9. # SccsId = @(#)stdeditor.tcl    /main/hindenburg/6   7 Mar 1997 Copyright 1996 Cayenne Software Inc.
  10.  
  11. # Start user added include file section
  12.  
  13. require edcontrolp.tcl
  14. require qualopenby.tcl
  15.  
  16. # End user added include file section
  17.  
  18. require "diagramedi.tcl"
  19.  
  20. Class STDEditor : {DiagramEditor} {
  21.     constructor
  22.     method destructor
  23.     method diagramType
  24.     method createOpenByName
  25. }
  26.  
  27. constructor STDEditor {class this name} {
  28.     set this [DiagramEditor::constructor $class $this $name]
  29.     # Start constructor user section
  30.  
  31.     # take care of the std-specific entries
  32.     $this specificMenuHdlr [CustEdMenuHandler new std]
  33.     [$this specificMenuHdlr] setCurrentContext
  34.     [$this options] syntaxEntries {class state}
  35.  
  36.     $this title "State Transition Diagram Editor"
  37.     EdControlPanel new $this.c.r.panel
  38.     $this panel $this.c.r.panel
  39.     [$this panel] initialize std
  40.     [$this panel] selected Select
  41.  
  42.     STDArea new $this.c.r.std -panX 0 -panY 0 \
  43.                   -currentSymbol Select \
  44.                   -doubleClicked "$this open"
  45.     $this editorArea $this.c.r.std
  46.     [$this editorArea] setSize 600 400
  47.     [$this editorArea] possibleOperationsChanged \
  48.         "$this enDisableMenuEntries"
  49.  
  50.     [$this panel] area [$this editorArea]
  51.     $this createEdAreaPopUpMenu
  52.     $this setWindowGeometry std
  53.  
  54.     # End constructor user section
  55.     return $this
  56. }
  57.  
  58. method STDEditor::destructor {this} {
  59.     # Start destructor user section
  60.     $this saveFileHistory std
  61.     $this saveWindowGeometry std
  62.     [$this specificMenuHdlr] delete
  63.     # End destructor user section
  64.     $this DiagramEditor::destructor
  65. }
  66.  
  67. method STDEditor::diagramType {this} {
  68.     return std
  69. }
  70.  
  71. method STDEditor::createOpenByName {this} {
  72.     return [QualOpenByName new $this.obn $this]
  73. }
  74.  
  75. # Do not delete this line -- regeneration end marker
  76.  
  77.