home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
edwmtarea.tcl
< prev
next >
Wrap
Text File
|
1997-11-11
|
3KB
|
130 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)edwmtarea.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)edwmtarea.tcl /main/titanic/2 11 Nov 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
Class EdWmtArea : {WmtArea} {
constructor
method destructor
method project
method phase
method system
method diagram
method notify
attribute diagramInfo
attribute systemInfo
attribute phaseInfo
attribute projectInfo
attribute ccSubscriber
}
constructor EdWmtArea {class this name} {
set this [WmtArea::constructor $class $this $name]
# Start constructor user section
interface WaColumn $this.pp {
WaEntry proj {
labelText "Project:"
}
WaEntry phase {
labelText "Phase:"
}
}
interface WaColumn $this.sd {
WaEntry sys {
labelText "System:"
}
WaEntry diag {
labelText "Diagram Version:"
}
}
foreach column [$this columnSet] {
foreach entry [$column entrySet] {
$entry labelFont \
[m4_var get M4_contextarea_labelfont -context ude]
$entry valueFont \
[m4_var get M4_contextarea_valuefont -context ude]
}
}
$this projectInfo $this.pp.proj
$this phaseInfo $this.pp.phase
$this systemInfo $this.sd.sys
$this diagramInfo $this.sd.diag
$this ccSubscriber [ClContextSubscriber new -notify "$this notify"]
[ClientContext::global] addSubscriber [$this ccSubscriber]
# End constructor user section
return $this
}
method EdWmtArea::destructor {this} {
# Start destructor user section
[ClientContext::global] removeSubscriber [$this ccSubscriber]
[$this ccSubscriber] delete
# End destructor user section
}
method EdWmtArea::project {this nm} {
[$this projectInfo] valueText $nm
}
method EdWmtArea::phase {this nm} {
[$this phaseInfo] valueText $nm
}
method EdWmtArea::system {this nm} {
[$this systemInfo] valueText $nm
}
method EdWmtArea::diagram {this nm} {
[$this diagramInfo] valueText $nm
}
method EdWmtArea::notify {this} {
$this project ""
$this phase ""
$this system ""
$this diagram ""
set cc [ClientContext::global]
set project [$cc currentProject]
if [$project isNil] {
return
}
$this project [$project name]
set phaseV [$cc currentPhase]
if [$phaseV isNil] {
return
}
$this phase [[$phaseV phase] name]
set systemV [$cc currentSystem]
if [$systemV isNil] {
return
}
$this system [[$systemV system] name]
set fileV [$cc currentFile]
if [$fileV isNil] {
return
}
set fileQualName [[$fileV file] qualifiedName :]
$this diagram "$fileQualName (V [$fileV versionName])"
}
# Do not delete this line -- regeneration end marker