home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
editdesela.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
2KB
|
72 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: @(#)editdesela.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)editdesela.tcl /main/titanic/4 29 Aug 1997 Copyright 1996 Cadre Technologies Inc.
# Start user added include file section
# End user added include file section
require "undocomman.tcl"
Class EditDeselAllCmd : {UndoCommand} {
constructor
method destructor
method do
method redo
method undo
}
constructor EditDeselAllCmd {class this name} {
set this [UndoCommand::constructor $class $this $name]
# Start constructor user section
set deselectEntry [$this editMenu].deselectall
if [isCommand $deselectEntry] {
$this commandName [$deselectEntry label]
} else {
$this commandName "Deselect All"
}
$this setUndoLabel undo
# End constructor user section
return $this
}
method EditDeselAllCmd::destructor {this} {
# Start destructor user section
# End destructor user section
$this UndoCommand::destructor
}
method EditDeselAllCmd::do {this} {
[$this objectSet] contents [[.main flatView] selectedSet]
$this redo
$this busy 0
}
method EditDeselAllCmd::redo {this} {
busy {
[.main flatView] selectedSet ""
.main selectionChanged
}
}
method EditDeselAllCmd::undo {this} {
busy {
set selectedSet ""
[$this objectSet] foreach flatObj {
if {[isCommand $flatObj] && (! [$flatObj filteredOutState])} {
lappend selectedSet $flatObj
}
}
[.main flatView] selectedSet $selectedSet
.main selectionChanged
}
}
# Do not delete this line -- regeneration end marker