qubx :: table :: TableUndo :: Class TableUndo
[hide private]
[frames] | no frames]

Class TableUndo

source code

object --+
         |
        TableUndo

Binds a Table to a qubx.undo.UndoStack.

Simply create a TableUndo object, and all edits are pushed to the undo stack. You still have to seal_undo to mark each restore point (that way several edits can be sealed as a single undo).

To disassociate the table and the undoStack, call .dispose().

Instance Methods [hide private]
 
__init__(self, table, undoStack)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
dispose(self)
Disassociates the table from the undoStack.
source code
 
onInsert(self, i, undoing) source code
 
onRemoving(self, i, undoing) source code
 
onSet(self, i, field, val, prev, undoing) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  ref
  table
  undoStack

Inherited from object: __class__

Method Details [hide private]

__init__(self, table, undoStack)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

dispose(self)

source code 

Disassociates the table from the undoStack. No more undos are pushed.