home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
stdeditor.tcl
< prev
next >
Wrap
Text File
|
1997-07-14
|
2KB
|
80 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)stdeditor.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)stdeditor.tcl /main/titanic/6 14 Jul 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require edcontrolp.tcl
require qualopenby.tcl
require dropstdare.tcl
# End user added include file section
require "diagramedi.tcl"
Class STDEditor : {DiagramEditor} {
constructor
method destructor
method createOpenByName
method reinit
}
constructor STDEditor {class this name} {
set this [DiagramEditor::constructor $class $this $name]
# Start constructor user section
# take care of the std-specific entries
$this menuHdlr [CustEdMenuHandler new {diagram std} [$this moduleHdlr]]
[$this options] syntaxEntries {class state}
$this title "State Transition Diagram Editor"
EdControlPanel new $this.c.r.panel
$this panel $this.c.r.panel
[$this panel] initialize std
DropSTDArea new $this.c.r.std -panX 0 -panY 0 \
-currentSymbol Select \
-doubleClicked "$this open" \
-destinationSet "STDDRAGOBJECT drop STRING dummy"
$this.c.r.std ed $this
$this editorArea $this.c.r.std
[$this editorArea] setSize 600 400
[$this editorArea] possibleOperationsChanged \
"$this enDisableMenuEntries"
[$this panel] area [$this editorArea]
$this createEdAreaPopUpMenu
$this setWindowGeometry std
# End constructor user section
return $this
}
method STDEditor::destructor {this} {
# Start destructor user section
# End destructor user section
$this DiagramEditor::destructor
}
method STDEditor::createOpenByName {this} {
return [QualOpenByName new $this.obn $this]
}
method STDEditor::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