home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
drsqitemob.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
3KB
|
90 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)drsqitemob.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)drsqitemob.tcl /main/titanic/4 29 Aug 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "drsitemobj.tcl"
require "drsqobject.tcl"
Class DrsQItemObject : {DrsQObject DrsItemObject} {
constructor
method destructor
method levelName
method levelType
method getEditorTypes
method saveReference
method show
}
constructor DrsQItemObject {class this workItem system systemV} {
set this [DrsQObject::constructor $class $this]
set this [DrsItemObject::constructor $class $this $workItem $system $systemV]
# Start constructor user section
# End constructor user section
return $this
}
method DrsQItemObject::destructor {this} {
# Start destructor user section
# End destructor user section
$this DrsQObject::destructor
$this DrsItemObject::destructor
}
method DrsQItemObject::levelName {this} {
set workItem [$this level]
set item [$this item]
set itemName [$item name]
if {[$item type] == "de"} {
return "$itemName.Attribute"
} else {
return "$itemName.Operation"
}
}
method DrsQItemObject::levelType {this} {
set item [$this item]
set itemType [$item type]
if {$itemType == "de"} {
return "Attribute"
} else {
return "Operation"
}
}
method DrsQItemObject::getEditorTypes {this} {
return "cad"
}
method DrsQItemObject::saveReference {this fLevel drsRefs parOTVers selIts} {
set ownDrsRef [$this DrsQObject::saveReference $fLevel $drsRefs $parOTVers $selIts]
$this DrsLinkableObject::saveReference $fLevel $ownDrsRef $parOTVers $selIts
set workItem [$fLevel workItem]
set systemV [$workItem owner]
set qualifierItem [$this qualifier]
set conf [$this getConfigVersion]
set workItemOfQualifier [$systemV findDefinition $qualifierItem $conf]
set propObjOfQualfier [$workItemOfQualifier properties]
# by definition parent item (class item) is up to date
# to prevent from getting into an update of the class next time
# it is time stampped.
$propObjOfQualfier setProperty ${DrsDriver::FORMALMODULE}_TIMESTAMP [$workItem updateTime]
}
method DrsQItemObject::show {this majorOper minorOper} {
$this DrsQObject::show $majorOper $minorOper
$this DrsGroupedObject::show $majorOper $minorOper
}
# Do not delete this line -- regeneration end marker