home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
selectvers.tcl
< prev
next >
Wrap
Text File
|
1997-05-21
|
2KB
|
59 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)selectvers.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)selectvers.tcl /main/titanic/3 21 May 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
# This is a dialog for selecting versions of a file.
# It sets message, okPressed and deletes the Help Button.
# After okPressed the method specified by command is called for file,
# with the selected version and options (if non empty) as argument.
Class SelectVersionDialog : {ListDialog} {
constructor
method destructor
method createInterface
attribute file
attribute options
attribute command
}
constructor SelectVersionDialog {class this name} {
set this [ListDialog::constructor $class $this $name]
# Start constructor user section
$this createInterface
# End constructor user section
return $this
}
method SelectVersionDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method SelectVersionDialog::createInterface {this} {
$this message "Select version:"
$this delHelpButton
$this okPressed {
set version [lindex [%this selectedSet] 0]
set options [%this options]
if { $options == "" } {
[%this file] [%this command] $version
} else {
[%this file] [%this command] $version $options
}
%this delete
}
}
# Do not delete this line -- regeneration end marker