home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
represtore.tcl
< prev
next >
Wrap
Text File
|
1997-09-04
|
4KB
|
128 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)represtore.tcl /main/titanic/11
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)represtore.tcl /main/titanic/11 4 Sep 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require "stepcolumn.tcl"
require "repunarcor.tcl"
require "repunarpro.tcl"
require "repunarmod.tcl"
require "represtcor.tcl"
require "represtpro.tcl"
require "represtmod.tcl"
# End user added include file section
require "reptooldia.tcl"
Class RepRestoreDialog : {RepToolDialog} {
constructor
method destructor
method unarchiveObject
method restoreObject
method getUnarchiveDlg
method setUnarchiveDlg
method removeUnarchiveDlg
method getRestoreDlg
method setRestoreDlg
method removeRestoreDlg
attribute object
attribute unarchiveDlg
attribute restoreDlg
}
constructor RepRestoreDialog {class this name view i_object} {
set this [RepToolDialog::constructor $class $this $name $view]
$this object $i_object
$this unarchiveDlg [Dictionary new]
$this restoreDlg [Dictionary new]
# Start constructor user section
$this delCancelButton
set object $i_object
switch -- $object {
Corporate { set title "Restore Entire Corporate" }
Project { set title "Restore Single Project" }
Model { set title "Restore Single Model" }
}
$this config \
-title $title \
-helpPressed { [%this view] helpOnName restoreRepository }
StepColumn new $this.steps
$this.steps addStep Unarchive. Unarchive... \
"Unarchives a $object archive file into\
\na $object subdirectory of the repository\
\ndirectory." \
"$this unarchiveObject $object"
$this.steps addStep Restore. Restore... \
"Restores the $object tables from the $object's\
\nDBDUMP directory in the repository directory." \
"$this restoreObject $object"
# End constructor user section
return $this
}
method RepRestoreDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this RepToolDialog::destructor
}
method RepRestoreDialog::unarchiveObject {this object} {
set dlg [$this getUnarchiveDlg $object]
if {$dlg == ""} {
set dlgName RepUnar${object}Dialog
set dlg [$dlgName new [$this view].$dlgName [$this view]]
$this setUnarchiveDlg $object $dlg
}
$dlg popUp
}
method RepRestoreDialog::restoreObject {this object} {
set dlg [$this getRestoreDlg $object]
if {$dlg == ""} {
set dlgName RepRest${object}Dialog
set dlg [$dlgName new [$this view].$dlgName [$this view]]
$this setRestoreDlg $object $dlg
}
$dlg popUp
}
# Do not delete this line -- regeneration end marker
method RepRestoreDialog::getUnarchiveDlg {this object} {
return [[$this unarchiveDlg] set $object]
}
method RepRestoreDialog::setUnarchiveDlg {this object newUnarchiveDlg} {
[$this unarchiveDlg] set $object $newUnarchiveDlg
}
method RepRestoreDialog::removeUnarchiveDlg {this object} {
[$this unarchiveDlg] unset $object
}
method RepRestoreDialog::getRestoreDlg {this object} {
return [[$this restoreDlg] set $object]
}
method RepRestoreDialog::setRestoreDlg {this object newRestoreDlg} {
[$this restoreDlg] set $object $newRestoreDlg
}
method RepRestoreDialog::removeRestoreDlg {this object} {
[$this restoreDlg] unset $object
}