home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cccommentd.tcl
< prev
next >
Wrap
Text File
|
1997-04-17
|
2KB
|
73 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)cccommentd.tcl /main/titanic/2
# Author: <generated>
# Description: VCM integration file
#---------------------------------------------------------------------------
# SccsId = @(#)cccommentd.tcl /main/titanic/2 17 Apr 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require_module_file "vssysdialo.tcl" vcm
# This class provides functionality for a dialog in a clearcase
# system with comments (checkin, out etc.) that performs an action
# on the selected files.
Class CCCommentDialog : {TemplateDialog VSSysDialog} {
method destructor
constructor
method setComment
method createInterface
}
method CCCommentDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this VSSysDialog::destructor
}
constructor CCCommentDialog {class this name} {
set this [TemplateDialog::constructor $class $this $name]
return $this
}
# Sets the default comment.
#
method CCCommentDialog::setComment {this} {
if { [llength [$this selectedFiles]] == 1 } {
set selectedFile [lindex [$this selectedFiles] 0]
set oldComment [$selectedFile getInfo Comments]
$this.col.comments text "$oldComment"
}
}
# Create the comment part and add the necessary
# callbacks.
#
method CCCommentDialog::createInterface {this} {
# subclasses may have defined the column already
if { ![isCommand $this.col ] } {
DlgColumn new $this.col
}
Label new $this.col.label
MultiLineText new $this.col.comments \
-columnCount 80
$this modal 1
$this delHelpButton
$this okPressed {
%this popDown
%this processFiles
}
}
# Do not delete this line -- regeneration end marker