home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)searchstgd.tcl 1.3
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)searchstgd.tcl 1.3 24 Jan 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- require "searchdefd.tcl"
- # End user added include file section
-
- require "opendefobj.tcl"
-
- Class SearchStgDef : {OpenDefObject} {
- constructor
- method destructor
- method infoList
- method writeObject
- method open
- attribute flags
- attribute fileTypes
- }
-
- constructor SearchStgDef {class this name specification} {
- set this [OpenDefObject::constructor $class $this $name $specification]
- # Start constructor user section
- $this smallIcon folder_16
- $this largeIcon folder_32
- # End constructor user section
- return $this
- }
-
- method SearchStgDef::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this OpenDefObject::destructor
- }
-
- method SearchStgDef::infoList {this} {
- set list [$this OpenDefObject::infoList]
- set list [concat $list \"Decomposition Flags\"]
- set list [concat $list \"[$this flags]\"]
- set list [concat $list \"Diagram Types\"]
- set list [concat $list \"[$this fileTypes]\"]
- return $list
- }
-
- method SearchStgDef::writeObject {this fid} {
- set formatString "%-25s | %s | %s | %s"
- puts $fid [format $formatString [$this name] [$this type] \
- [$this flags] [$this fileTypes]]
- }
-
- method SearchStgDef::open {this} {
- if {![$this editable]} {
- return
- }
-
- .main busy TRUE
- set definer [[.main editorArea] searchDefiner]
- if {[catch {$definer load $this}]} {
- set definer [SearchDefDialog new .main.searchDefiner]
- [.main editorArea] searchDefiner $definer
- $definer load $this
- }
- .main busy FALSE
- }
-
- # Do not delete this line -- regeneration end marker
-
-