home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)cccreatebr.tcl /main/hindenburg/3
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)cccreatebr.tcl /main/hindenburg/3 19 Mar 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require_module_file "cccommentd.tcl" clearcase-vcm
-
- 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
-
-