home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
witemdbobj.tcl
< prev
next >
Wrap
Text File
|
1996-11-05
|
3KB
|
109 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)witemdbobj.tcl /main/hindenburg/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)witemdbobj.tcl /main/hindenburg/1 5 Nov 1996 Copyright 1996 Cadre Technologies 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 displayName
method hasChildren
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
}
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::displayName {this} {
return "[$this qualifiedName :]"
}
method WItemDbObj::hasChildren {this} {
return 0
}
proc WItemDbObj::infoProperties {} {
return [concat \
[BrowserProcs::infoProperties] \
{Status Scope Created Updated} \
]
}
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