home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cccheckout.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
2KB
|
77 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)cccheckout.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cccheckout.tcl /main/titanic/4 29 Aug 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require_module_file "cccommentd.tcl" clearcase
# 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