home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
parentnode.tcl
< prev
next >
Wrap
Text File
|
1996-05-29
|
2KB
|
67 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)parentnode.tcl 1.6
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)parentnode.tcl 1.6 11 Mar 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
require "menupartno.tcl"
Class ParentNode : {MenuPartNode} {
constructor
method destructor
method open
attribute pinnable
attribute arbiters
}
constructor ParentNode {class this name specification} {
set this [MenuPartNode::constructor $class $this $name $specification]
# Start constructor user section
$this hasChildren 1
$this activated {%this open}
# give pinnable a valid value
if {[$this pinnable] == ""} {
$this pinnable 0
}
# End constructor user section
return $this
}
method ParentNode::destructor {this} {
# Start destructor user section
# End destructor user section
$this MenuPartNode::destructor
}
method ParentNode::open {this} {
if {![$this editable]} {
return
}
.main busy TRUE
set definer [[.main editorArea] parentDefiner]
if {[catch {$definer load $this}]} {
require menuparent.tcl
set definer [MenuParentDialog new .main.parentDefiner]
[.main editorArea] parentDefiner $definer
$definer load $this
}
.main busy FALSE
}
# Do not delete this line -- regeneration end marker