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