2.24. UndoGroup¶
2.24.1. Synopsis¶
2.24.2. Detailed Description¶
The undo/redo handler class which allows to group changes to unified undoable blocks in scope of context managers.
-
class
mocha.project.UndoGroup¶
-
UndoGroup.__enter__()¶ Starts an unified actions block.
-
UndoGroup.__exit__(arg__1, arg__2, arg__3)¶ Commits an unified action block. Either rollbacks in case of an unhandled exception.
-
UndoGroup.commit()¶ Commits an unified action block.
-
UndoGroup.redo()¶ Redoes the latest command from the redo stack.
-
UndoGroup.rollback()¶ Rollbacks an unified action block.
-
UndoGroup.undo()¶ Undoes the latest command from the undo stack.