home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)etdeditor.tcl /main/titanic/8
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)etdeditor.tcl /main/titanic/8 14 Jul 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
-
- require edcontrolp.tcl
- require qualopenby.tcl
- require dropetdare.tcl
-
- # End user added include file section
-
- require "diagramedi.tcl"
-
- Class ETDEditor : {DiagramEditor} {
- constructor
- method destructor
- method createOpenByName
- method reinit
- }
-
- constructor ETDEditor {class this name} {
- set this [DiagramEditor::constructor $class $this $name]
- # Start constructor user section
-
- # take care of the etd-specific entries
- $this menuHdlr [CustEdMenuHandler new {diagram etd} [$this moduleHdlr]]
- $this title "Sequence Diagram Editor"
- EdControlPanel new $this.c.r.panel
- $this panel $this.c.r.panel
- [$this panel] initialize etd
-
- DropETDArea new $this.c.r.etd -panX 0 -panY 0 \
- -currentSymbol Select \
- -doubleClicked "$this open" \
- -destinationSet "ETDDRAGOBJECT drop STRING dummy"
- $this.c.r.etd ed $this
- $this editorArea $this.c.r.etd
- [$this editorArea] setSize 600 400
- [$this editorArea] possibleOperationsChanged \
- "$this enDisableMenuEntries"
-
- [$this panel] area [$this editorArea]
- $this createEdAreaPopUpMenu
- $this setWindowGeometry etd
-
- # End constructor user section
- return $this
- }
-
- method ETDEditor::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this DiagramEditor::destructor
- }
-
- method ETDEditor::createOpenByName {this} {
- return [QualOpenByName new $this.obn $this]
- }
-
- method ETDEditor::reinit {this} {
- $this DiagramEditor::reinit
- [$this options] initLook
- set area [.main editorArea]
- if {[m4_var get M4_font_bold -context ude] != [$area boldFontSpec]} {
- $area boldFontSpec [m4_var get M4_font_bold -context ude]
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-