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