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