home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
mtwmtarea.tcl
< prev
next >
Wrap
Text File
|
1997-07-18
|
2KB
|
101 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)mtwmtarea.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)mtwmtarea.tcl /main/titanic/1 18 Jul 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class MTWmtArea : {WmtArea} {
constructor
method destructor
method update
attribute projectInfo
attribute phaseInfo
attribute systemInfo
attribute ccSubscriber
}
constructor MTWmtArea {class this name} {
set this [WmtArea::constructor $class $this $name]
# Start constructor user section
interface WaColumn $this.WC0 {
WaEntry projWE {
labelText "Project:"
}
WaEntry phasWE {
labelText "Phase:"
}
}
interface WaColumn $this.WC1 {
WaEntry systWE {
labelText "System:"
}
WaEntry objeWE {
labelText ""
}
}
foreach column [$this columnSet] {
foreach entry [$column entrySet] {
$entry labelFont \
[m4_var get M4_contextarea_labelfont -context mt]
$entry valueFont \
[m4_var get M4_contextarea_valuefont -context mt]
}
}
$this projectInfo $this.WC0.projWE
$this phaseInfo $this.WC0.phasWE
$this systemInfo $this.WC1.systWE
set ccSub [ClContextSubscriber new -notify "$this update"]
[ClientContext::global] addSubscriber $ccSub
$this ccSubscriber $ccSub
# End constructor user section
return $this
}
method MTWmtArea::destructor {this} {
# Start destructor user section
# End destructor user section
}
method MTWmtArea::update {this} {
[$this projectInfo] valueText ""
[$this phaseInfo] valueText ""
[$this systemInfo] valueText ""
set cc [ClientContext::global]
set project [$cc currentProject]
if [$project isNil] {
return
}
[$this projectInfo] valueText [$project name]
set phaseV [$cc currentPhase]
if [$phaseV isNil] {
return
}
[$this phaseInfo] valueText [[$phaseV phase] name]
set systemV [$cc currentSystem]
if [$systemV isNil] {
return
}
[$this systemInfo] valueText [[$systemV system] name]
}
# Do not delete this line -- regeneration end marker