home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)newcontinu.tcl /main/hindenburg/2
- # Author: <generated>
- # Description: VCM integration file
- #---------------------------------------------------------------------------
- # SccsId = @(#)newcontinu.tcl /main/hindenburg/2 18 Mar 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 NewContinuusFileDialog : {NewVSFileDialog} {
- constructor
- method destructor
- method createInterface
- method popUpTaskBrowser
- method createVSFile
- }
-
- constructor NewContinuusFileDialog {class this name} {
- set this [NewVSFileDialog::constructor $class $this $name]
- # Start constructor user section
- # End constructor user section
- return $this
- }
-
- method NewContinuusFileDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this NewVSFileDialog::destructor
- }
-
- method NewContinuusFileDialog::createInterface {this} {
- $this NewVSFileDialog::createInterface
-
- $this title "New Continuus File"
-
- # Add comment part
- interface Label $this.DC.L {
- text "Comment:"
- }
-
- interface MultiLineText $this.DC.comment {
- columnCount 80
- }
-
- # Add comment part, task selection field and select button
- interface DlgRow $this.DC.taskRow {
- spaceType NONE
- Label numberLabel {
- text "Task Number:"
- }
- IntField taskNumber {
- justification CENTER
- }
- PushButton selectTask {
- label "Select Task..."
- }
- }
-
- $this.DC.taskRow.selectTask activated "$this popUpTaskBrowser"
- }
-
-
- # Callback from task browse button which pops up the Continuus Select Task Dialog.
- #
- method NewContinuusFileDialog::popUpTaskBrowser {this} {
- busy {
- vsCommandHandler execute [ContCommand::selectTaskDialog]
- }
- }
-
- method NewContinuusFileDialog::createVSFile {this name type} {
- wmtkmessage "Creating Continuus file '$name'"
-
- vsCommandHandler suspendOutput
- busy {
- set comment [$this.DC.comment text]
- set contSystem [[ClientContext::global] currentSystem]
- set taskNumber [$this.DC.taskRow.taskNumber intValue]
- set contFile [$contSystem createVSFile $name $type "$comment" $taskNumber]
- .main updateView
- }
- wmtkmessage ""
- vsCommandHandler showOutput
-
- return $contFile
- }
-
- # Do not delete this line -- regeneration end marker
-
-