1 #ifndef UNDOCONTROLLER_H 2 #define UNDOCONTROLLER_H 4 #include <QUndoCommand> 69 void onCleanChanged(
bool clean);
72 QUndoStack* undoStack;
76 #endif // UNDOCONTROLLER_H Definition: commandlineoptions.h:6
void undoStackChanged(bool clean)
Undo stack has become dirty or clean.
bool isClean() const
Whether any commands have been applied since the project was opened or saved.
Definition: undocontroller.cpp:34
UndoController()
Constructs a new controller for performing undo-able commands.
Definition: undocontroller.cpp:6
Controller for performing undo-able commands.
Definition: undocontroller.h:13
QAction * createRedoAction(QObject *parent, const QString &prefix)
Creates an action for re-doing the most recently undone command.
Definition: undocontroller.cpp:19
void doCommand(QUndoCommand *command)
Applies the passed command, pushing it to the undo stack.
Definition: undocontroller.cpp:29
void setClean()
Marks the undo stack as clean, as if no commands have been applied since the project was opened or sa...
Definition: undocontroller.cpp:39
void clear()
Removes all recent undo-able commands from the undo stack.
Definition: undocontroller.cpp:14
QAction * createUndoAction(QObject *parent, const QString &prefix)
Creates an action for un-doing the most recent command.
Definition: undocontroller.cpp:24