home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)ccremovebr.tcl /main/hindenburg/2
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)ccremovebr.tcl /main/hindenburg/2 18 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
-
- # Dialog for removel 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
-
-