home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)ucdeditor.tcl /main/titanic/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)ucdeditor.tcl /main/titanic/7 14 Jul 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
-
- require ucdpanel.tcl
- require dropucdare.tcl
-
- # End user added include file section
-
- require "diagramedi.tcl"
-
- Class UCDEditor : {DiagramEditor} {
- constructor
- method destructor
- method reinit
- }
-
- constructor UCDEditor {class this name} {
- set this [DiagramEditor::constructor $class $this $name]
- # Start constructor user section
-
- # take care of the ucd-specific entries
- $this menuHdlr [CustEdMenuHandler new {diagram ucd} [$this moduleHdlr]]
- [$this options] syntaxEntries {class process}
-
- $this title "Use Case Diagram Editor"
- set ucdPanel [UCDPanel new $this.c.r.panel]
- $this panel [$ucdPanel symbPanel]
- [$this panel] initialize ucd
-
- DropUCDArea new $this.c.r.ucd -panX 0 -panY 0 \
- -currentSymbol Select \
- -doubleClicked "$this open" \
- -destinationSet "UCDDRAGOBJECT drop STRING dummy"
- $this.c.r.ucd ed $this
- $this editorArea $this.c.r.ucd
- [$this editorArea] setSize 600 400
- [$this editorArea] possibleOperationsChanged \
- "$this enDisableMenuEntries"
-
- $ucdPanel area [$this editorArea]
- $this createEdAreaPopUpMenu
- $this setWindowGeometry ucd
-
- # End constructor user section
- return $this
- }
-
- method UCDEditor::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this DiagramEditor::destructor
- }
-
- method UCDEditor::reinit {this} {
- $this DiagramEditor::reinit
- 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
-
-