home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)newopenloc.tcl 1.6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)newopenloc.tcl 1.6 02 Apr 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "newcustobj.tcl"
-
- Class NewOpenLocDialog : {NewCustObjectDialog} {
- constructor
- method destructor
- method popUp
- attribute editorArea
- }
-
- constructor NewOpenLocDialog {class this name} {
- set this [NewCustObjectDialog::constructor $class $this $name]
- # Start constructor user section
- $this title OpenStrategyUse
- interface DlgColumn $this.DC {
- allowResize 1
- Label L {
- text "Strategy:"
- }
- DropDwnList nameDDL {
- entrySet {}
- rowCount 5
- }
- }
- $this okPressed {
- set name [%this.DC.nameDDL selected]
- %this popDown
- [.main editorArea] newObject $name [%this edit]
- }
- $this helpPressed { .main helpOnName newOpenLocation }
- # End constructor user section
- return $this
- }
-
- method NewOpenLocDialog::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this NewCustObjectDialog::destructor
- }
-
- method NewOpenLocDialog::popUp {this} {
- set names [lsort [[[$this editorArea] strategyType] names]]
- $this.DC.nameDDL entrySet $names
- if {[$this.DC.nameDDL selected] == ""} {
- $this.DC.nameDDL selected [lindex $names 0]
- }
- $this TemplateDialog::popUp
- }
-
- # Do not delete this line -- regeneration end marker
-
-