home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
ccdircheck.tcl
< prev
next >
Wrap
Text File
|
1997-04-24
|
2KB
|
79 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)ccdircheck.tcl /main/hindenburg/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ccdircheck.tcl /main/hindenburg/1 24 Apr 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
# This dialog takes a lists of clearCase directories,
# shows them, and checks them in if ok is pressed.
Class CCDirCheckInDialog : {QuestionDialog} {
constructor
method destructor
method popUp
method checkInDirectories
attribute directories
}
constructor CCDirCheckInDialog {class this name} {
set this [QuestionDialog::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CCDirCheckInDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method CCDirCheckInDialog::popUp {this} {
set message "Check in Directories:\n"
foreach directory [$this directories] {
append message "\n$directory"
}
$this title "Checkin Directories"
$this message $message
$this delHelpButton
$this okPressed "$this checkInDirectories"
$this QuestionDialog::popUp
}
# Ok callback action: check in directories in list.
#
method CCDirCheckInDialog::checkInDirectories {this} {
busy {
vsCommandHandler suspendOutput
set someOk 0
foreach directory [$this directories] {
set checkInCommand [CCCommand::checkIn $directory 1 ""]
if { ![vsCommandHandler execute $checkInCommand] } {
break
}
set someOk 1
}
vsCommandHandler showOutput
#if $someOk {
# .main updateView
#}
wmtkmessage ""
$this delete
}
}
# Do not delete this line -- regeneration end marker