home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)crfiledefd.tcl /main/titanic/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)crfiledefd.tcl /main/titanic/2 16 Jul 1997 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}
- set diagTypes "\$diagType [lsort [concat [BrowserProcs::graphTypes]\
- [BrowserProcs::matrixTypes]]]"
- [$this dPage].typeDDL entrySet $diagTypes
- }
-
- 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
-
-