home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)userstgdef.tcl /main/titanic/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)userstgdef.tcl /main/titanic/1 14 Mar 1997 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]
- lappend list {TCL Procedure} [$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
-
-