Package mrv :: Package maya :: Module undo :: Class Operation
[hide private]
[frames] | no frames]

Class Operation

source code

object --+
         |
        Operation

Simple command class as base for all operations All undoable/redoable operation must support it

Note: only operations may be placed on the undo stack !

Instance Methods [hide private]
 
__init__(self)
Operations will always be placed on the undo queue if undo is available This happens automatically upon creation
source code
 
doIt(self)
Do whatever you do
source code
 
undoIt(self)
Undo whatever you did
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Operations will always be placed on the undo queue if undo is available This happens automatically upon creation
Overrides: object.__init__

Note: assure subclasses call the superclass init !