home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
propknowle.tcl
< prev
next >
Wrap
Text File
|
1997-05-27
|
2KB
|
86 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)propknowle.tcl /main/titanic/15
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)propknowle.tcl /main/titanic/15 27 May 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require "propifelem.tcl"
# End user added include file section
Class PropKnowledge : {Object} {
constructor
method destructor
}
global PropKnowledge::propKnowledgeDB
set PropKnowledge::propKnowledgeDB ""
constructor PropKnowledge {class this} {
set this [Object::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method PropKnowledge::destructor {this} {
# Start destructor user section
# End destructor user section
}
proc PropKnowledge::updatePropKnowledge {} {
global PropKnowledge::propKnowledgeDB
if {${PropKnowledge::propKnowledgeDB} == ""} {
OTShRegister::propertyKnowledge
set moduleHandler [ModuleHandler new]
$moduleHandler setCurrentContext
set PropKnowledge::propKnowledgeDB \
[PropKnowledgeDB new ".propDefinition" $moduleHandler]
}
${PropKnowledge::propKnowledgeDB} context \
[[ClientContext::global] currentLevelIdString]
}
proc PropKnowledge::getLongName {name} {
global PropKnowledge::propKnowledgeDB
if {${PropKnowledge::propKnowledgeDB} == ""} {
PropKnowledge::updatePropKnowledge
}
set propDef [${PropKnowledge::propKnowledgeDB} definition $name]
if {$propDef != ""} {
return [$propDef longName]
}
return $name
}
proc PropKnowledge::getDefaultValue {name} {
global hasEntrySet
global defIndex
global PropKnowledge::propKnowledgeDB
if {${PropKnowledge::propKnowledgeDB} == ""} {
PropKnowledge::updatePropKnowledge
}
set propDef [${PropKnowledge::propKnowledgeDB} definition $name]
set defaultValue ""
if {$propDef != ""} {
set className [$propDef ifClass]
set optList [$propDef ifOptions]
if {$className == "RWAccessRow"} {
set def [PropIfElement::defaultValue OptionMenu $optList]
set defaultValue "${def}-${def}"
} else {
set defaultValue [PropIfElement::defaultValue $className $optList]
}
}
return $defaultValue
}
# Do not delete this line -- regeneration end marker