home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)selectvers.tcl /main/hindenburg/2
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)selectvers.tcl /main/hindenburg/2 18 Mar 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
-
-