home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
newrazorfi.tcl
< prev
next >
Wrap
Text File
|
1997-03-18
|
3KB
|
107 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)newrazorfi.tcl /main/hindenburg/2
# Author: <generated>
# Description: VCM integration file
#---------------------------------------------------------------------------
# SccsId = @(#)newrazorfi.tcl /main/hindenburg/2 18 Mar 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
require_module_file "razorissue.tcl" razor-vcm
# End user added include file section
require_module_file "newvsfiled.tcl" vcm
# Razor creation dialog: name, type, issue list. A select issue button
# popops up an issue selector.
Class NewRazorFileDialog : {NewVSFileDialog} {
constructor
method destructor
method createInterface
method popUpIssueBrowser
method setIssues
method createVSFile
}
constructor NewRazorFileDialog {class this name} {
set this [NewVSFileDialog::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method NewRazorFileDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this NewVSFileDialog::destructor
}
# Add issue list and select issue button.
#
method NewRazorFileDialog::createInterface {this} {
$this NewVSFileDialog::createInterface
$this title "New Razor File"
# Add issues part
HorSeparator new $this.DC.separator
interface DlgRow $this.DC.issueRow {
Label label {
text "Issues:"
}
PushButton selectIssues {
label "Select Issues"
}
}
SingleLineText new $this.DC.issueList
$this.DC.issueRow.selectIssues activated "$this popUpIssueBrowser"
}
method NewRazorFileDialog::popUpIssueBrowser {this} {
$this busy 1
if { ![isCommand .main.issueBrowser] } {
RazorIssueSelector new .main.issueBrowser
}
.main.issueBrowser setSelectedSet [$this.DC.issueList text]
.main.issueBrowser clientObject $this
.main.issueBrowser popUp
}
# Used as callBack of the Issue browser to set the selected issues.
#
method NewRazorFileDialog::setIssues {this issues} {
$this.DC.issueList text $issues
$this busy 0
}
# Create file in Razor.
#
method NewRazorFileDialog::createVSFile {this name type} {
wmtkmessage "Creating Razor file '$name'"
vsCommandHandler suspendOutput
busy {
set razorSystem [[ClientContext::global] currentSystem]
set issues [$this.DC.issueList text]
set razorFile [$razorSystem createVSFile $name $type "" $issues]
.main updateView
}
wmtkmessage ""
vsCommandHandler showOutput
return $razorFile
}
# Do not delete this line -- regeneration end marker