home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
searchstgd.tcl
< prev
next >
Wrap
Text File
|
1997-03-14
|
2KB
|
72 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)searchstgd.tcl /main/titanic/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)searchstgd.tcl /main/titanic/1 14 Mar 1997 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]
lappend list {Decomposition Flags} [$this flags]
lappend list {Diagram Types} [$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