home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cadre Technologies Inc. 1996
- #
- # File: @(#)propdefobj.tcl /main/hindenburg/1
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)propdefobj.tcl /main/hindenburg/1 16 Oct 1996 Copyright 1996 Cadre Technologies Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "custdefsob.tcl"
-
- Class PropDefObject : {CustDefsObject} {
- constructor
- method destructor
- method updateView
- method infoList
- method writeObject
- method open
- attribute shortName
- attribute longName
- attribute ifClass
- attribute ifOptions
- attribute ifMembers
- }
-
- constructor PropDefObject {class this name specification} {
- set this [CustDefsObject::constructor $class $this $name $specification]
- # Start constructor user section
- $this smallIcon folder_16
- $this largeIcon folder_32
- $this conversionSet "PROPDEF id"
- $this id $this
- # End constructor user section
- return $this
- }
-
- method PropDefObject::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this CustDefsObject::destructor
- }
-
- method PropDefObject::updateView {this} {
-
- if [$this editable] {
- set level "[$this specLevel] *"
- } else {
- set level [$this specLevel]
- }
-
- $this label [$this shortName]
- $this details "\"[$this longName]\"
- \"[$this ifClass]\"
- \"$level\""
- }
-
- method PropDefObject::infoList {this} {
-
- return "Name \{[$this shortName]\} \
- {Long Name} \{[$this longName]\} \
- {Interface Class} \{[$this ifClass]\} \
- {Interface Options} \{[$this ifOptions]\} \
- {Interface Members} \{[$this ifMembers]\} \
- {Specification Level} [$this specLevel] "
- }
-
- method PropDefObject::writeObject {this fid} {
-
- set formatString "%-15s | %-20s | %-15s | %s | %s"
- regsub -all {[#!|\]} [$this ifOptions] \\\\& escapedIfOptions
- puts $fid [format $formatString [$this shortName] [$this longName] \
- [$this ifClass] $escapedIfOptions [$this ifMembers]]
- }
-
- method PropDefObject::open {this} {
-
- if {![$this editable]} {
- return
- }
-
- .main busy TRUE
- set definer [[.main editorArea] propDefiner]
- if {[catch {$definer load $this}]} {
- set definer [PropDefDialog new .main.propDefiner]
- [.main editorArea] propDefiner $definer
- $definer load $this
- }
- .main busy FALSE
- }
-
- # Do not delete this line -- regeneration end marker
-
-