home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cccreatebr.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
2KB
|
86 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)cccreatebr.tcl /main/titanic/5
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cccreatebr.tcl /main/titanic/5 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
Class CCCreateBranchDialog : {CCCommentDialog} {
constructor
method destructor
method createInterface
method popUp
# The available branches.
#
attribute branches
}
constructor CCCreateBranchDialog {class this name} {
set this [CCCommentDialog::constructor $class $this $name]
# Start constructor user section
$this createInterface
# End constructor user section
return $this
}
method CCCreateBranchDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this CCCommentDialog::destructor
}
method CCCreateBranchDialog::createInterface {this} {
$this title "Create Branch"
# create branch selection part
DlgColumn new $this.col
Label new $this.col.label \
-text "Select Branch Type:"
TextList new $this.col.branches
# create comment part
$this CCCommentDialog::createInterface
# make sure Ok is only enabled if a selection has been made
$this okSensitive 0
$this.col.branches selectionChanged {
[[%this parent] parent] okSensitive 1
}
}
# Prepare interface and pop up.
#
method CCCreateBranchDialog::popUp {this} {
$this selectedFiles [.main selectedObjSet]
# comment label
$this.col.label text "Creation comments:\n"
# put branches in selection list
$this.col.branches entrySet [$this branches]
$this vsMethod {
$file createBranch \
[lindex [$this.col.branches selectedSet] 0] \
[$this.col.comments text]
}
$this needsUpdate 1
$this TemplateDialog::popUp
}
# Do not delete this line -- regeneration end marker