home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Westmount Technology 1994
- #
- # File: @(#)separatorn.tcl 1.8
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)separatorn.tcl 1.8 11 Mar 1996 Copyright 1994 Westmount Technology
-
- # Start user added include file section
- # End user added include file section
-
- require "childnode.tcl"
-
- Class SeparatorNode : {ChildNode} {
- constructor
- method destructor
- method open
- }
-
- constructor SeparatorNode {class this name specification} {
- set this [ChildNode::constructor $class $this $name $specification]
- # Start constructor user section
- $this config -displayName Separator -icon separator_16 \
- -activeIcon separator_16 -activated {%this open}
- # End constructor user section
- return $this
- }
-
- method SeparatorNode::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this ChildNode::destructor
- }
-
- method SeparatorNode::open {this} {
-
- if {![$this editable]} {
- return
- }
-
- .main busy TRUE
- set definer [[.main editorArea] separatorDefiner]
-
- if {[catch {$definer load $this}]} {
- require separatord.tcl
- set definer [SeparatorDialog new .main.separatorDefiner]
- [.main editorArea] separatorDefiner $definer
- $definer load $this
- }
- .main busy FALSE
- }
-
- # Do not delete this line -- regeneration end marker
-
-