home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
corpgvuiob.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
98 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)corpgvuiob.tcl 1.9
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)corpgvuiob.tcl 1.9 16 Feb 1996 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} {
set corporateGroupVersions ""
foreach corporateGroup [[$this parent] corporateGroups] {
set corporateGroupVersions [concat \
$corporateGroupVersions [$corporateGroup corporateGroupVersions]\
]
}
return $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 $wmttoolObj.removeWarning
WarningDialog new $box \
-title "Delete Warning" \
-message [BrowserProcs::removeMessage] \
-helpPressed {.main helpOnName removeWarning} \
-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
}
# Do not delete this line -- regeneration end marker