home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
svdgvuiobj.tcl
< prev
next >
Wrap
Text File
|
1997-10-17
|
3KB
|
109 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)svdgvuiobj.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)svdgvuiobj.tcl /main/titanic/2 17 Oct 1997 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
YesNoWarningDialog new $box \
-title "Confirm Object Delete" \
-message [BrowserProcs::removeMessage] \
-noPressed {%this delete} \
-yesPressed {
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 delCancelButton
$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