home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
ccnewbranch.tcl
< prev
next >
Wrap
Text File
|
1997-04-17
|
2KB
|
73 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)ccnewbranch.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ccnewbranch.tcl /main/titanic/3 17 Apr 1997 Copyright 1997 Cayenne Software Inc.
# SccsId = @(#)ccnewbranch.tcl /main/titanic/3 17 Apr 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
# This dialog permits to specify the name
# and creation comments for a new branch.
# If OK is pressed the branch is created in vobPath.
Class CCNewBranchDialog : {TemplateDialog} {
constructor
method destructor
method createInterface
attribute vobPath
}
constructor CCNewBranchDialog {class this name} {
set this [TemplateDialog::constructor $class $this $name]
# Start constructor user section
$this createInterface
# End constructor user section
return $this
}
method CCNewBranchDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method CCNewBranchDialog::createInterface {this} {
interface DlgColumn $this.column {
Label label1 {
text "Name of new branch:"
}
SingleLineText branch {
}
Label label2 {
text "Creation comments:"
}
MultiLineText comments {
}
}
$this title "Create Branch Type"
$this modal 1
$this delHelpButton
$this okPressed {
busy {
set vob [%this vobPath]
set type [%this.column.branch text]
set comment [%this.column.comments text]
set createCommand [CCCommand::newBranchType $type $comment $vob]
if [vsCommandHandler execute $createCommand] {
%this delete
}
}
}
}
# Do not delete this line -- regeneration end marker