home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1996
- #
- # File: @(#)editdesela.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)editdesela.tcl /main/hindenburg/2 15 Oct 1996 Copyright 1996 Cayenne Software 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
- # 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 {! [$flatObj filteredOutState]} {
- lappend selectedSet $flatObj
- }
- }
- [.main flatView] selectedSet $selectedSet
- .main selectionChanged
- }
- }
-
- # Do not delete this line -- regeneration end marker
-
-