home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)ccnewbranch.tcl /main/hindenburg/3
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)ccnewbranch.tcl /main/hindenburg/3 18 Mar 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
-