home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
reparchmod.tcl
< prev
next >
Wrap
Text File
|
1997-11-28
|
3KB
|
90 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)reparchmod.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)reparchmod.tcl /main/titanic/6 28 Nov 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "reparchobj.tcl"
Class RepArchModelDialog : {RepArchObjDialog} {
constructor
method destructor
method objType
method objDescription
method popUp
method archive
method archiveFinished
}
constructor RepArchModelDialog {class this name view} {
set this [RepArchObjDialog::constructor $class $this $name $view]
# Start constructor user section
$this config \
-title "Archive Model Directory" \
-helpPressed "$view helpOnName archiveModel"
[$this dirLabel] text "Model Directory"
# End constructor user section
return $this
}
method RepArchModelDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this RepArchObjDialog::destructor
}
method RepArchModelDialog::objType {this} {
return "Model"
}
method RepArchModelDialog::objDescription {this} {
return "model '[[$this dirField] text]'"
}
method RepArchModelDialog::popUp {this} {
$this RepArchObjDialog::popUp
}
method RepArchModelDialog::archive {this} {
set rep [[$this view] rep]
set repName [$this currentRepositoryName]
set repDir [$this currentRepositoryDir]
set dstFile [[$this dstField] text]
set objDir [[$this dirField] text]
return [$rep archiveObjectDirectory "$this archiveFinished" \
$dstFile $repName $repDir $objDir "model"]
}
method RepArchModelDialog::archiveFinished {this exitCode} {
if {$exitCode == 0} {
if [catch {
set model [$this dumpedObject]
if {![$model isNil] && [$model reserved]} {
set comment [$model reserveComment]
if {$comment == "Reserved for backup."} {
$model unreserve
}
}
} error] {
$this RepArchObjDialog::archiveFinished 1
error $error
return
}
}
$this RepArchObjDialog::archiveFinished $exitCode
}
# Do not delete this line -- regeneration end marker