home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)corpgvdbob.tcl /main/hindenburg/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)corpgvdbob.tcl /main/hindenburg/1 16 Jul 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "browsdbobj.tcl"
-
- Class CorpGVDbObj : {BrowsDbObj CorporateGroupVersion} {
- method destructor
- constructor
- method canBeDragged
- method createTime2String
- method name
- method removeVersion
- method versionInLabel
- method versionName
- }
-
- method CorpGVDbObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this BrowsDbObj::destructor
- }
-
- constructor CorpGVDbObj {class this name} {
- set this [CorporateGroupVersion::constructor $class $this $name]
- set this [BrowsDbObj::constructor $class $this $name]
- return $this
- }
-
- selfPromoter CorporateGroupVersion {this} {
- CorpGVDbObj promote $this
- }
-
- proc CorpGVDbObj::associations {} {
- return {savedGroupVersion accessRuleSet}
- }
-
- method CorpGVDbObj::canBeDragged {this} {
- return 1
- }
-
- proc CorpGVDbObj::childTypes {assoc} {
- if {[lsearch -exact "[CorpGVDbObj::associations]" "$assoc"] == -1} {
- return ""
- }
- return "[BrowserProcs::childTypes $assoc]"
- }
-
- proc CorpGVDbObj::controlledLists {} {
- return ""
- }
-
- method CorpGVDbObj::createTime2String {this} {
- return [BrowserProcs::displayDate [$this createTime]]
- }
-
- proc CorpGVDbObj::infoProperties {} {
- return [concat \
- [BrowserProcs::infoProperties] \
- {Version Comments Created "Controlled Actions"} \
- ]
- }
-
- method CorpGVDbObj::name {this} {
- return "[[$this corporateGroup] name]"
- }
-
- method CorpGVDbObj::removeVersion {this} {
- set box $wmttoolObj.removeVersionWarning
- WarningDialog new $box \
- -title "Delete Version Warning" \
- -message [BrowserProcs::removeMessage] \
- -helpPressed {.main helpOnName removeVersionWarning} \
- -cancelPressed {%this delete} \
- -okPressed {
- set script ""
- foreach obj [$wmttoolObj selectedObjSet] {
- if {"$script" != ""} {
- append script " ;"
- }
- append script " [$obj corporateGroup] removeVersion $obj"
- }
- $wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
- %this delete
- }
- $box popUp
- }
-
- method CorpGVDbObj::versionInLabel {this} {
- return 1
- }
-
- method CorpGVDbObj::versionName {this} {
- return [$this versionNumber]
- }
-
- # Do not delete this line -- regeneration end marker
-
-