home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
newcontinu.tcl
< prev
next >
Wrap
Text File
|
1997-11-21
|
3KB
|
97 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)newcontinu.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)newcontinu.tcl /main/titanic/4 21 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 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"
$this helpPressed {.main helpOnName newContinuusFile}
}
# 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