home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
ucdeditor.tcl
< prev
next >
Wrap
Text File
|
1997-03-07
|
2KB
|
71 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)ucdeditor.tcl /main/hindenburg/8
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ucdeditor.tcl /main/hindenburg/8 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 UCDEditor : {DiagramEditor} {
constructor
method destructor
method diagramType
}
constructor UCDEditor {class this name} {
set this [DiagramEditor::constructor $class $this $name]
# Start constructor user section
# take care of the ucd-specific entries
$this specificMenuHdlr [CustEdMenuHandler new ucd]
[$this specificMenuHdlr] setCurrentContext
[$this options] syntaxEntries {class process}
$this title "Use Case Diagram Editor"
EdControlPanel new $this.c.r.panel
$this panel $this.c.r.panel
[$this panel] initialize ucd
[$this panel] selected Select
UCDArea new $this.c.r.ucd -panX 0 -panY 0 \
-currentSymbol Select \
-doubleClicked "$this open"
$this editorArea $this.c.r.ucd
[$this editorArea] setSize 600 400
[$this editorArea] possibleOperationsChanged \
"$this enDisableMenuEntries"
[$this panel] area [$this editorArea]
$this createEdAreaPopUpMenu
$this setWindowGeometry ucd
# End constructor user section
return $this
}
method UCDEditor::destructor {this} {
# Start destructor user section
$this saveFileHistory ucd
$this saveWindowGeometry ucd
[$this specificMenuHdlr] delete
# End destructor user section
$this DiagramEditor::destructor
}
method UCDEditor::diagramType {this} {
return ucd
}
# Do not delete this line -- regeneration end marker