|
Uranium
Application Framework
|
Base class for operations that should support undo and redo. More...
Public Member Functions | |
| def | __init__ (self) |
| def | undo (self) |
| Undo the operation. More... | |
| def | redo (self) |
| Redo the operation. More... | |
| def | mergeWith (self, other) |
| Perform operation merging. More... | |
| def | push (self) |
| Push the operation onto the stack. More... | |
Base class for operations that should support undo and redo.
| def UM.Operations.Operation.Operation.mergeWith | ( | self, | |
| other | |||
| ) |
Perform operation merging.
This will be called by OperationStack to perform merging of operations. If this operation can be merged with other, it should return a new operation that is the combination of this operation and other. If it cannot be merged, False should be returned.
| other | Operation The operation to merge with. |
other can be merged, or False if they cannot be merged. | def UM.Operations.Operation.Operation.push | ( | self, | |
| None | |||
| ) |
Push the operation onto the stack.
This is a convenience method that pushes this operation onto the Application's operation stack.
| def UM.Operations.Operation.Operation.redo | ( | self, | |
| None | |||
| ) |
Redo the operation.
This should be reimplemented by subclasses to perform all actions necessary to redo the operation.
| def UM.Operations.Operation.Operation.undo | ( | self, | |
| None | |||
| ) |
Undo the operation.
This should be reimplemented by subclasses to perform all actions necessary to redo the operation.