home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
svdgvuiobj.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
3KB
|
109 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)svdgvuiobj.tcl 1.9
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)svdgvuiobj.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 SvdGVUiObj : {BrowsUiObj} {
constructor
method destructor
method initializeInfo
method removeObjects
method restoreObjects
method savedGroupVersions
}
global SvdGVUiObj::uiClass
set SvdGVUiObj::uiClass "SavedGroupVersions"
constructor SvdGVUiObj {class this name} {
set this [BrowsUiObj::constructor $class $this $name]
# Start constructor user section
$this uiName "<saved groups>"
$this uiText "saved group versions"
# End constructor user section
return $this
}
method SvdGVUiObj::destructor {this} {
# Start destructor user section
# End destructor user section
$this BrowsUiObj::destructor
}
proc SvdGVUiObj::associations {} {
return {savedGroupVersions}
}
proc SvdGVUiObj::childTypes {assoc} {
if {[lsearch -exact "[SvdGVUiObj::associations]" "$assoc"] == -1} {
return ""
}
return "[BrowserProcs::childTypes $assoc]"
}
proc SvdGVUiObj::infoProperties {} {
return [BrowserProcs::infoProperties]
}
method SvdGVUiObj::initializeInfo {this dummy} {
$this BrowsUiObj::initializeInfo $dummy
$this setInfo Text "[$this uiText] of [[$this parent] getInfo Text]"
}
method SvdGVUiObj::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 savedGroup] removeVersion $obj"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
%this delete
}
$box popUp
}
method SvdGVUiObj::restoreObjects {this} {
set sysV [$this getParent SystemVersion]
set script ""
foreach obj [$wmttoolObj selectedObjSet] {
if {"$script" != ""} {
append script " ;"
}
append script " $sysV restore $obj"
}
$wmttoolObj startCommand tcl "$script" "" "" {1 0} 1
}
method SvdGVUiObj::savedGroupVersions {this} {
set parent [$this parent]
if {[$parent isA SSysVDbObj] || [$parent isA GroupVDbObj]} {
return "[$parent savedGroupVersions]"
}
return ""
}
# Do not delete this line -- regeneration end marker