home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)cccheckout.tcl /main/hindenburg/2
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)cccheckout.tcl /main/hindenburg/2 18 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require_module_file "cccommentd.tcl" clearcase-vcm
-
- # This is the checkout dialog for ClearCase files.
-
- Class CCCheckOutDialog : {CCCommentDialog} {
- constructor
- method destructor
- method setTitle
- method popUp
-
- # Indicates whether this must be a dialog for reserved or unreserved checkouts.
- #
- attribute reserved
- }
-
- constructor CCCheckOutDialog {class this name} {
- set this [CCCommentDialog::constructor $class $this $name]
- # Start constructor user section
- $this createInterface
- # End constructor user section
- return $this
- }
-
- method CCCheckOutDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CCCommentDialog::destructor
- }
-
-
- # Set the title according to reserved.
- #
- method CCCheckOutDialog::setTitle {this} {
- if [$this reserved] {
- $this title "Checkout reserved"
- } else {
- $this title "Checkout unreserved"
- }
- }
-
-
- # Prepare interface and pop up.
- #
- method CCCheckOutDialog::popUp {this} {
- $this selectedFiles [.main selectedObjSet]
- $this setTitle
-
- # make comment label
- $this.col.label text \
- "Checkout comments for [$this selectionDescription]:\n"
-
- # specify the action
- $this vsMethod {
- $file checkOut [$this.col.comments text] [$this reserved]
- }
-
- $this needsUpdate 1
-
- $this TemplateDialog::popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-