home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
crfiledefd.tcl
< prev
next >
Wrap
Text File
|
1996-08-27
|
3KB
|
92 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)crfiledefd.tcl /main/hindenburg/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)crfiledefd.tcl /main/hindenburg/1 27 Aug 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "opendefdia.tcl"
Class CrFileDefDialog : {OpenDefDialog} {
constructor
method destructor
method createInterface
method clearInterface
method fromInterface
method toInterface
}
constructor CrFileDefDialog {class this name} {
set this [OpenDefDialog::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method CrFileDefDialog::destructor {this} {
# Start destructor user section
# End destructor user section
$this OpenDefDialog::destructor
}
method CrFileDefDialog::createInterface {this} {
interface NoteBkPage $this.definitionNBP {
label Definition
DlgColumn DC {
Label nameL { text Name: }
SingleLineText nameSLT {}
Label qualL { text "Diagram Qualifier:" }
DropDwnComboBox qualCB {
entrySet {}
rowCount 5
}
Label fileL { text "Diagram Name:" }
DropDwnComboBox fileCB {
entrySet {}
rowCount 5
}
Label typeL { text "Diagram Type:" }
DropDwnList typeDDL {
entrySet {}
rowCount 5
}
}
}
$this dPage $this.definitionNBP.DC
[$this dPage].qualCB entrySet {{} $item $itemQual $diagItem $diagQual}
[$this dPage].fileCB entrySet \
{$itemName $itemQualName $diagName $diagQualName $dataType}
[$this dPage].typeDDL entrySet {$diagType cad ccd dfd etd mgd std ucd}
}
method CrFileDefDialog::clearInterface {this} {
set dPage [$this dPage]
$this OpenDefDialog::clearInterface
$dPage.qualCB text [lindex [$dPage.qualCB entrySet] 0]
$dPage.fileCB text [lindex [$dPage.fileCB entrySet] 0]
$dPage.typeDDL selected [lindex [$dPage.typeDDL entrySet] 0]
}
method CrFileDefDialog::fromInterface {this} {
[$this curObject] fileType [[$this dPage].typeDDL selected]
[$this curObject] fileQualifier [[$this dPage].qualCB text]
[$this curObject] fileName [[$this dPage].fileCB text]
return ""
}
method CrFileDefDialog::toInterface {this} {
[$this dPage].typeDDL selected [[$this curObject] fileType]
[$this dPage].qualCB text [[$this curObject] fileQualifier]
[$this dPage].fileCB text [[$this curObject] fileName]
}
# Do not delete this line -- regeneration end marker