aeidon.agents.RegisterAgent¶
Source: aeidon/agents/register.py
Anchestors: aeidon.delegate.Delegate, builtins.object
- class aeidon.agents.RegisterAgent¶
Managing revertable actions.
Methods¶
- RegisterAgent.__init__(master)¶
Initialize a RegisterAgent instance.
- RegisterAgent.can_redo(count=1)¶
Return True if one or more actions can be redone.
- RegisterAgent.can_undo(count=1)¶
Return True if one or more actions can be undone.
- RegisterAgent.cut_reversion_stacks()¶
Cut undo and redo stacks to their maximum lengths.
- RegisterAgent.emit_action_signal(register)¶
Emit an action signal for the most recent registered action.
- RegisterAgent.group_actions(register, count, description)¶
Group the registered actions as one item in the stack.
- RegisterAgent.redo(count=1)¶
Redo count amount of actions from the redoable stack.
- RegisterAgent.register_action(action)¶
Register action as done, undone or redone.
- RegisterAgent.set_action_description(register, description)¶
Set the description of the most recent registered action.
- RegisterAgent.undo(count=1)¶
Undo count amount of actions from the undoable stack.