home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)stextitrpr.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)stextitrpr.tcl /main/hindenburg/2 17 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
-
-