home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
vbeditmenu.tcl
< prev
next >
Wrap
Text File
|
1997-10-07
|
2KB
|
78 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)vbeditmenu.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)vbeditmenu.tcl /main/titanic/4 7 Oct 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class VBEditMenuProcs : {Object} {
constructor
method destructor
}
constructor VBEditMenuProcs {class this name} {
set this [Object::constructor $class $this $name]
# Start constructor user section
# End constructor user section
return $this
}
method VBEditMenuProcs::destructor {this} {
# Start destructor user section
# End destructor user section
}
proc VBEditMenuProcs::selectAll {{nodes ""}} {
if {$nodes == ""} {
set nodes [[.main infoView] root]
}
foreach node $nodes {
$node selectState 1
set children [$node childSet]
if ![lempty $children] {
VBEditMenuProcs::selectAll $children
}
}
.main selectionChanged
}
proc VBEditMenuProcs::invertSelection {{nodes ""}} {
if {$nodes == ""} {
set nodes [[.main infoView] root]
}
foreach node $nodes {
if [$node selectState] {
$node selectState 0
} else {
$node selectState 1
}
set children [$node childSet]
if ![lempty $children] {
VBEditMenuProcs::invertSelection $children
}
}
.main selectionChanged
}
proc VBEditMenuProcs::paste {} {
if {! [[.main infoView] pasteFromClipboard]} {
wmtkinfo "No matching clipboard format found."
return
}
}
# Do not delete this line -- regeneration end marker