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