home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
ccremovebr.tcl
< prev
next >
Wrap
Text File
|
1997-05-21
|
2KB
|
78 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)ccremovebr.tcl /main/titanic/3
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)ccremovebr.tcl /main/titanic/3 21 May 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
# Dialog for removal of branch types: a list,
# selected branch type(s) are removed from vob.
Class CCRemoveBranchTypeDialog : {ListDialog} {
constructor
method destructor
method createInterface
method popUp
attribute branches
attribute vobPath
}
constructor CCRemoveBranchTypeDialog {class this name} {
set this [ListDialog::constructor $class $this $name]
# Start constructor user section
$this createInterface
# End constructor user section
return $this
}
method CCRemoveBranchTypeDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method CCRemoveBranchTypeDialog::createInterface {this} {
$this title "Remove Branch Type"
$this modal 1
$this delHelpButton
$this selectionPolicy MULTIPLE
$this message "Select branch(es):"
$this okPressed {
busy {
set vob [%this vobPath]
%this popDown
vsCommandHandler suspendOutput
set ok 1
foreach type [%this selectedSet] {
set removeCommand [CCCommand::destroyBranchType $type $vob]
if { ![vsCommandHandler execute $removeCommand] } {
set ok 0
break
}
}
vsCommandHandler showOutput
if $ok {
%this delete
}
}
}
}
method CCRemoveBranchTypeDialog::popUp {this} {
$this entrySet [$this branches]
$this ListDialog::popUp
}
# Do not delete this line -- regeneration end marker