home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
propdefobj.tcl
< prev
next >
Wrap
Text File
|
1997-03-14
|
3KB
|
97 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)propdefobj.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)propdefobj.tcl /main/titanic/2 14 Mar 1997 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 [list [$this longName] \
[$this ifClass] \
$level]
}
method PropDefObject::infoList {this} {
return [list 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