5 #include <EditorGlobal.h> 24 class EDITOR_API
Undo :
public QObject
36 static Undo *instance();
40 static void apply(
Action *action);
43 static void push(
Action *action);
66 static void rollback();
75 explicit Undo(QObject *parent);
78 friend class Editor::Presenter;
88 virtual void apply() = 0;
90 virtual void undo() = 0;
92 virtual void redo() = 0;
virtual bool modifiesWorld() const
Indicates whether the action brings any changes to the scene. Actions like selection,...
Definition: Undo.h:107
Undo manager class. This class is used to manage undo/redo operations for user actions in the Editor.
Definition: Undo.h:24
This basic class is used to represent any possible user action.
Definition: Undo.h:82
virtual bool validate()
This method allows action to do some internal cleanup. Return value indicates whether the action is s...
Definition: Undo.h:100