home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
objectobje.tcl
< prev
next >
Wrap
Text File
|
1997-03-14
|
2KB
|
97 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: @(#)objectobje.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)objectobje.tcl /main/titanic/2 14 Mar 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
require "custsort.tcl"
# End user added include file section
require "custbrowso.tcl"
Class ObjectObject : {BrowsObject CustBrowsObject} {
method destructor
constructor
method updateView
method open
attribute browserType
attribute redefined
}
method ObjectObject::destructor {this} {
# Start destructor user section
# End destructor user section
$this CustBrowsObject::destructor
}
constructor ObjectObject {class this name specification} {
set this [BrowsObject::constructor $class $this $name]
set this [CustBrowsObject::constructor $class $this $name]
$this activated {%this open}
$this smallIcon undef_16
$this largeIcon undef_32
while {![lempty $specification]} {
set key [lvarpop specification]
$this $key [lvarpop specification]
}
# give the name of the object the name of the view
$this displayName [$this name]
# type is always ObjectObject
$this type ObjectObject
return $this
}
method ObjectObject::updateView {this} {
# get the icon from the spec to use in the view
set specification [$this objSpec]
while {![lempty $specification]} {
set key [lvarpop specification]
set value [lvarpop specification]
if {$key == "largeIcon"} {
$this largeIcon $value
}
if {$key == "smallIcon"} {
$this smallIcon $value
}
}
if [$this editable] {
set level "[$this specLevel] *"
} else {
set level [$this specLevel]
}
$this label [$this _displayName]
$this details [list [$this browserType] \
$level \
[$this scope]]
}
method ObjectObject::open {this} {
.main busy TRUE
set definer [[.main editorArea] objectDefiner]
if {[catch {$definer load $this}]} {
set definer [ObjectDefineDialog new .main.objectDefiner]
[.main editorArea] objectDefiner $definer
$definer load $this
}
.main busy FALSE
}
# Do not delete this line -- regeneration end marker