|
Editor API
UnigineEditor public API
|
Undo manager class. This class is used to manage undo/redo operations for user actions in the Editor. More...
#include <UnigineUndo.h>
Inherits QObject.
Signals | |
| void | worldModified () |
| This signal is emitted when an action brings any changes to the scene. More... | |
| void | activity () |
| This signal is emitted when an action has been applied, undone, redone, or pushed to transaction stack. More... | |
Static Public Member Functions | |
| static Undo * | instance () |
| Returns the instance of the Undo class. This method is used to subscribe to signals. More... | |
| static void | apply (Action *action) |
| Applies the specified action. More... | |
| static void | push (Action *action) |
| Pushes the specified action to the transaction stack. More... | |
| static void | undo () |
| Reverts the last action in the stack. More... | |
| static void | redo () |
| Redoes the last action that was undone (reverses the undo method). More... | |
| static void | reset () |
| Clears the undo/redo stack. More... | |
| static void | begin () |
| Begins a transaction (i.e. a sequence of actions applied to be applied or reverted as a whole). Use commit() to apply all actions of the current transaction, or rollback() to revert them. More... | |
| static void | commit () |
| Commits the last transaction (i.e. a sequence of actions applied since the last call of the begin() method). More... | |
| static void | rollback () |
| Reverts the last transaction (i.e. a sequence of actions applied since the last call of the begin() method). More... | |
Undo manager class. This class is used to manage undo/redo operations for user actions in the Editor.
|
signal |
This signal is emitted when an action has been applied, undone, redone, or pushed to transaction stack.
|
static |
Applies the specified action.
| action | Action to be applied. |
|
static |
|
static |
Commits the last transaction (i.e. a sequence of actions applied since the last call of the begin() method).
|
static |
|
static |
Pushes the specified action to the transaction stack.
| action | Action to be pushed. |
|
static |
Redoes the last action that was undone (reverses the undo method).
|
static |
Clears the undo/redo stack.
|
static |
Reverts the last transaction (i.e. a sequence of actions applied since the last call of the begin() method).
|
static |
Reverts the last action in the stack.
|
signal |
This signal is emitted when an action brings any changes to the scene.