home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)codeditor.tcl /main/titanic/4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)codeditor.tcl /main/titanic/4 28 Aug 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
-
- require codpanel.tcl
- require qualopenby.tcl
- require dropcodare.tcl
-
- # End user added include file section
-
- require "diagramedi.tcl"
-
- Class CODEditor : {DiagramEditor} {
- constructor
- method destructor
- method createOpenByName
- }
-
- constructor CODEditor {class this name} {
- set this [DiagramEditor::constructor $class $this $name]
- # Start constructor user section
-
- # take care of the cod-specific entries
- $this menuHdlr [CustEdMenuHandler new {diagram cod} [$this moduleHdlr]]
- [$this options] syntaxEntries {class data}
-
- $this title "Collaboration Diagram Editor"
- set codPanel [CODPanel new $this.c.r.panel]
- $this panel [$codPanel symbPanel]
- [$this panel] initialize cod
-
- DropCODArea new $this.c.r.cod -panX 0 -panY 0 \
- -currentSymbol Select \
- -doubleClicked "$this open" \
- -destinationSet "CODDRAGOBJECT drop STRING dummy"
- $this.c.r.cod ed $this
- $this editorArea $this.c.r.cod
- [$this editorArea] setSize 600 400
- [$this editorArea] possibleOperationsChanged \
- "$this enDisableMenuEntries"
-
- $codPanel area [$this editorArea]
- $this createEdAreaPopUpMenu
- $this setWindowGeometry cod
-
- # End constructor user section
- return $this
- }
-
- method CODEditor::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this DiagramEditor::destructor
- }
-
- method CODEditor::createOpenByName {this} {
- return [QualOpenByName new $this.obn $this]
- }
-
- # Do not delete this line -- regeneration end marker
-
-