home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
stextitrpr.tcl
< prev
next >
Wrap
Text File
|
1996-12-23
|
2KB
|
61 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)stextitrpr.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)stextitrpr.tcl /main/titanic/2 23 Dec 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "propinterf.tcl"
Class STextItrPropIf : {PropInterface} {
method destructor
constructor
method getProperties
method setProperties
}
method STextItrPropIf::destructor {this} {
# Start destructor user section
# End destructor user section
$this PropInterface::destructor
}
constructor STextItrPropIf {class this guiParent propDef} {
set name [$propDef name]
set this [PropInterface::constructor $class $this]
Label new $guiParent.${name}l -text [$propDef longName]
$this config -definition $propDef \
-ifElement [eval SingleLineText new \
$guiParent.$name [$propDef ifOptions]]
return $this
}
method STextItrPropIf::getProperties {this propContainer} {
set elem [$this ifElement]
set key [[$this definition] name]
$elem text [$propContainer getPropertyValue $key]
$elem sensitive [$propContainer isPropertyEditable $key]
}
method STextItrPropIf::setProperties {this propContainer} {
set key [[$this definition] name]
set value [[$this ifElement] text]
$propContainer changeProperty $key $value ""
if {$value == ""} {
return
}
set property [[$propContainer itemPropInfo] findProperty $key]
if {[llength [$property itemRefss]] == 0} {
PIPropItemRef new $property "cl" "scopePhase"
}
}
# Do not delete this line -- regeneration end marker