home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)newccfiled.tcl /main/titanic/4
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)newccfiled.tcl /main/titanic/4 25 Nov 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require_module_file "newvsfiled.tcl" vcm
-
- Class NewCCFileDialog : {NewVSFileDialog} {
- constructor
- method destructor
- method createInterface
- method createVSFile
- }
-
- constructor NewCCFileDialog {class this name} {
- set this [NewVSFileDialog::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method NewCCFileDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this NewVSFileDialog::destructor
- }
-
-
- # Add creation comments to the dialog.
- #
- method NewCCFileDialog::createInterface {this} {
- $this NewVSFileDialog::createInterface
-
- # Adjust the interface
- $this title "New ClearCase File"
-
- Label new $this.DC.L -text "Creation comments:"
- MultiLineText new $this.DC.CCFileComment -columnCount 80
- $this helpPressed { .main helpOnName newClearcaseFile }
- }
-
-
- # Create the ClearCase file.
- #
- method NewCCFileDialog::createVSFile {this name type} {
- wmtkmessage "Creating ClearCase file '$name'"
-
- vsCommandHandler suspendOutput
- busy {
- set comment [$this.DC.CCFileComment text]
- set ccSystem [[ClientContext::global] currentSystem]
- set ccFile [$ccSystem createVSFile $name $type "$comment"]
-
- .main updateView
- }
- wmtkmessage ""
- vsCommandHandler showOutput
-
- return $ccFile
- }
-
- # Do not delete this line -- regeneration end marker
-
-