home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)corpgvuiob.tcl /main/titanic/3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)corpgvuiob.tcl /main/titanic/3 17 Oct 1997 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "browsuiobj.tcl"
-
- Class CorpGVUiObj : {BrowsUiObj} {
- constructor
- method destructor
- method corporateGroupVersions
- method initializeInfo
- method removeObjects
- }
-
- global CorpGVUiObj::uiClass
- set CorpGVUiObj::uiClass "CorporateGroupVersions"
-
-
- constructor CorpGVUiObj {class this name} {
- set this [BrowsUiObj::constructor $class $this $name]
- # Start constructor user section
-
- $this uiName "<corporate groups>"
- $this uiText "corporate group versions"
-
- # End constructor user section
- return $this
- }
-
- method CorpGVUiObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this BrowsUiObj::destructor
- }
-
- proc CorpGVUiObj::associations {} {
- return "{corporateGroupVersions}"
- }
-
- proc CorpGVUiObj::childTypes {assoc} {
- if {[lsearch -exact "[CorpGVUiObj::associations]" "$assoc"] == -1} {
- return ""
- }
- return "[BrowserProcs::childTypes $assoc]"
- }
-
- method CorpGVUiObj::corporateGroupVersions {this} {
- return [[$this parent] corporateGroupVersions]
- }
-
- proc CorpGVUiObj::infoProperties {} {
- return [BrowserProcs::infoProperties]
- }
-
- method CorpGVUiObj::initializeInfo {this dummy} {
- $this BrowsUiObj::initializeInfo $dummy
- $this setInfo Text "[$this uiText] of [[$this parent] getInfo Text]"
- }
-
- method CorpGVUiObj::removeObjects {this} {
- set box .main.removeWarning
- YesNoWarningDialog new $box \
- -title "Confirm Object Delete" \
- -message [BrowserProcs::removeMessage] \
- -noPressed {%this delete} \
- -yesPressed {
- set script ""
- foreach obj [.main selectedObjSet] {
- if {"$script" != ""} {
- append script " ;"
- }
- append script " [$obj corporateGroup] removeVersion $obj"
- }
- .main startCommand tcl "$script" "" "" {1 0} 1
- %this delete
- }
- $box delCancelButton
- $box popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-