home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
edcontrolp.tcl
< prev
next >
Wrap
Text File
|
1997-09-12
|
3KB
|
98 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)edcontrolp.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)edcontrolp.tcl /main/titanic/4 12 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "duallook.tcl"
Class EdControlPanel : {DualLook VerControlPanel} {
method destructor
constructor
method entrySet
method selected
method initialize
method initPanel
attribute edType
attribute area
}
method EdControlPanel::destructor {this} {
# Start destructor user section
# End destructor user section
$this DualLook::destructor
}
constructor EdControlPanel {class this name} {
set this [VerControlPanel::constructor $class $this $name]
$this selectionChanged {[%this area] currentSymbol [%this selected]}
return $this
}
method EdControlPanel::entrySet {this {symbolSet ""}} {
if { $symbolSet == "" } {
return [$this VerControlPanel::entrySet]
}
$this VerControlPanel::entrySet \
[$this convertSymbolSet [$this edType] $symbolSet]
}
method EdControlPanel::selected {this {value ""}} {
if { $value == "" } {
return [$this convertSymbol [$this VerControlPanel::selected]]
}
$this VerControlPanel::selected $value
}
method EdControlPanel::initialize {this edType} {
$this DualLook::initialize
eval "proc registerObject {spec} {$this initPanel \$spec}"
$this edType $edType
set userPath [path_name concat [path_name concat ~ icase] $edType.pnl]
if [file exists $userPath] {
source $userPath
} else {
set tmpFile [args_file {}]
[ClientContext::global] downLoadCustomFile $edType pnl \
etc $tmpFile
source $tmpFile
unlink $tmpFile
}
# check long names for the tips
set tipSet {}
foreach entry [$this entrySet] {
set name [ShortLongName::longName [$this convertSymbol $entry]]
if {$name == ""} {
set name $entry
}
lappend tipSet "$name"
}
$this tipSet $tipSet
$this selected Select
if [isCommand [$this area]] {
[$this area] currentSymbol Select
}
}
method EdControlPanel::initPanel {this spec} {
while {![lempty $spec]} {
set key [lvarpop spec]
set value [lvarpop spec]
$this $key $value
}
}
# Do not delete this line -- regeneration end marker