home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
witemdbobj.tcl
< prev
next >
Wrap
Text File
|
1997-09-29
|
3KB
|
121 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)witemdbobj.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)witemdbobj.tcl /main/titanic/4 29 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "browsdbobj.tcl"
Class WItemDbObj : {BrowsDbObj WorkItem} {
method destructor
constructor
method promoter
method browserType
method canBeMoved
method createTime2String
method customLevelVersion
method displayName
method hasChildren
method makeUpToDate
method scope2String
method updateTime2String
}
method WItemDbObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsDbObj::destructor
}
constructor WItemDbObj {class this name} {
set this [WorkItem::constructor $class $this $name]
set this [BrowsDbObj::constructor $class $this $name]
return $this
}
selfPromoter WorkItem {this} {
WItemDbObj promote $this
}
method WItemDbObj::promoter {this} {
$this BrowsUiObj::promoter
module_promoter WItemDbObj $this
}
proc WItemDbObj::associations {} {
return ""
}
method WItemDbObj::browserType {this} {
return [$this type]
}
method WItemDbObj::canBeMoved {this} {
if {"[$this getInfo Scope]" != "phaseDef"} {
return 0
}
if {[$this item] == [[[$this getParent SystemVersion] system] item]} {
return 0
}
return 1
}
proc WItemDbObj::childTypes {assoc} {
if {[lsearch -exact "[WItemDbObj::associations]" "$assoc"] == -1} {
return ""
}
return "[BrowserProcs::childTypes $assoc]"
}
proc WItemDbObj::controlledLists {} {
return ""
}
method WItemDbObj::createTime2String {this} {
return [BrowserProcs::displayDate [$this createTime]]
}
method WItemDbObj::customLevelVersion {this} {
return [$this owner]
}
method WItemDbObj::displayName {this} {
return "[$this qualifiedName :]"
}
method WItemDbObj::hasChildren {this} {
return 0
}
proc WItemDbObj::infoProperties {} {
return [concat \
[BrowserProcs::infoProperties] \
{Status Scope Created Updated} \
]
}
method WItemDbObj::makeUpToDate {this} {
# dummy call to server
$this properties
}
method WItemDbObj::scope2String {this} {
regsub scope "[$this scope]" "" scope
return \
"[string tolower [string range $scope 0 0]][string range $scope 1 end]"
}
method WItemDbObj::updateTime2String {this} {
return [BrowserProcs::displayDate [$this updateTime]]
}
# Do not delete this line -- regeneration end marker