home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
userstgdef.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
71 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)userstgdef.tcl 1.4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)userstgdef.tcl 1.4 29 Jan 1996 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
require "userdefdia.tcl"
# End user added include file section
require "opendefobj.tcl"
Class UserStgDef : {OpenDefObject} {
constructor
method destructor
method infoList
method writeObject
method open
attribute procedure
}
constructor UserStgDef {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 UserStgDef::destructor {this} {
# Start destructor user section
# End destructor user section
$this OpenDefObject::destructor
}
method UserStgDef::infoList {this} {
set list [$this OpenDefObject::infoList]
set list [concat $list \"TCL Procedure\"]
set list [concat $list \"[$this procedure]\"]
return $list
}
method UserStgDef::writeObject {this fid} {
set formatString "%-25s | %s | %s"
puts $fid [format $formatString [$this name] [$this type] \
[$this procedure]]
}
method UserStgDef::open {this} {
if {![$this editable]} {
return
}
.main busy TRUE
set definer [[.main editorArea] userDefiner]
if {[catch {$definer load $this}]} {
set definer [UserDefDialog new .main.userDefiner]
[.main editorArea] userDefiner $definer
$definer load $this
}
.main busy FALSE
}
# Do not delete this line -- regeneration end marker