home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
codpanel.tcl
< prev
next >
Wrap
Text File
|
1997-08-22
|
3KB
|
86 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)codpanel.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)codpanel.tcl /main/titanic/1 22 Aug 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "extendedco.tcl"
Class CODPanel : {ExtendedControlPanel} {
constructor
method destructor
method updateArea
method createPanelExtension
attribute startStereoPanel
attribute endStereoPanel
}
constructor CODPanel {class this name} {
set this [ExtendedControlPanel::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CODPanel::destructor {this} {
# Start destructor user section
# End destructor user section
$this ExtendedControlPanel::destructor
}
method CODPanel::updateArea {this args} {
if {[llength $args] == 0} {
$this updateArea start
$this updateArea end
return
}
set side [lindex $args 0]
set stereoType [[$this ${side}StereoPanel] selected]
case $stereoType in {
{no} {set stereoType ""}
{asc} {set stereoType association}
{prm} {set stereoType parameter}
{loc} {set stereoType local}
{glob} {set stereoType global}
}
[$this _area] current[cap $side]StereoType $stereoType
}
method CODPanel::createPanelExtension {this} {
DlgRow new $this.stereo
set entrySet {no asc prm loc glob self}
$this startStereoPanel [VerControlPanel new $this.stereo.start \
-entrySet $entrySet \
-tipSet {"No Link Start Stereotype" \
"Link Start Stereotype ½association╗" \
"Link Start Stereotype ½parameter╗" \
"Link Start Stereotype ½local╗" \
"Link Start Stereotype ½global╗" \
"Link Start Stereotype ½self╗"} \
-selected no \
-selectionChanged "$this updateArea start"
]
$this endStereoPanel [VerControlPanel new $this.stereo.end \
-entrySet $entrySet \
-tipSet {"No Link End Stereotype" \
"Link End Stereotype ½association╗" \
"Link End Stereotype ½parameter╗" \
"Link End Stereotype ½local╗" \
"Link End Stereotype ½global╗" \
"Link End Stereotype ½self╗"} \
-selected no \
-selectionChanged "$this updateArea end"
]
}
# Do not delete this line -- regeneration end marker