home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
reparchpro.tcl
< prev
next >
Wrap
Text File
|
1997-11-28
|
2KB
|
87 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)reparchpro.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)reparchpro.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 RepArchProjectDialog : {RepArchObjDialog} {
constructor
method destructor
method objType
method objDescription
method popUp
method archive
method archiveFinished
}
constructor RepArchProjectDialog {class this name view} {
set this [RepArchObjDialog::constructor $class $this $name $view]
# Start constructor user section
$this config \
-title "Archive Single Project" \
-helpPressed "$view helpOnName archiveProject"
[$this dirLabel] text "Project Directory"
# End constructor user section
return $this
}
method RepArchProjectDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this RepArchObjDialog::destructor
}
method RepArchProjectDialog::objType {this} {
return "Project"
}
method RepArchProjectDialog::objDescription {this} {
return "project '[[$this dirField] text]'"
}
method RepArchProjectDialog::popUp {this} {
$this RepArchObjDialog::popUp
}
method RepArchProjectDialog::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 "project"]
}
method RepArchProjectDialog::archiveFinished {this exitCode} {
if {$exitCode == 0} {
if [catch {
set proj [$this dumpedObject]
if ![$proj isNil] {
$proj online
}
} error] {
$this RepArchObjDialog::archiveFinished 1
error $error
return
}
}
$this RepArchObjDialog::archiveFinished $exitCode
}
# Do not delete this line -- regeneration end marker