home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
repunarcor.tcl
< prev
next >
Wrap
Text File
|
1997-11-28
|
2KB
|
81 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)repunarcor.tcl /main/titanic/6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)repunarcor.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 "repunardia.tcl"
Class RepUnarCorporateDialog : {RepUnarDialog} {
constructor
method destructor
method objType
method objDescription
method unarchive
}
constructor RepUnarCorporateDialog {class this name view} {
set this [RepUnarDialog::constructor $class $this $name $view]
# Start constructor user section
$this config \
-title "Unarchive Entire Corporate" \
-helpPressed "$view helpOnName unarchiveCorporate"
interface DlgColumn $this.c.r.b {
spaceType EVEN
horStretchFactor 0
PushButton browse {
horStretchFactor 0
label "Browse..."
}
}
$this.c.r.n.dir editable 1
$this.c.r.b.browse activated "$this browseDirectory"
[$this dirLabel] text "Into Directory"
set rep [$view rep]
set corp [$rep currentCorporate]
if ![$corp isNil] {
set repDir [$rep currentRepDir]
$this setDirectory [file dir $repDir]
}
# End constructor user section
return $this
}
method RepUnarCorporateDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this RepUnarDialog::destructor
}
method RepUnarCorporateDialog::objType {this} {
return "Corporate"
}
method RepUnarCorporateDialog::objDescription {this} {
return "repository archive '[[$this srcField] text]'"
}
method RepUnarCorporateDialog::unarchive {this} {
set rep [[$this view] rep]
set srcFile [[$this srcField] text]
set repParentDir [[$this dirField] text]
return [$rep unarchiveRepositoryDirectory "$this unarchiveFinished" \
$srcFile $repParentDir]
}
# Do not delete this line -- regeneration end marker