19 #ifndef LIB_QUENTIER_UTILITY_QUENTIER_UNDO_COMMAND_H 20 #define LIB_QUENTIER_UTILITY_QUENTIER_UNDO_COMMAND_H 22 #include <quentier/utility/Macros.h> 23 #include <quentier/types/ErrorString.h> 25 #include <QUndoCommand> 60 virtual void undo() Q_DECL_OVERRIDE Q_DECL_FINAL;
61 virtual void redo() Q_DECL_OVERRIDE Q_DECL_FINAL;
63 bool onceUndoExecuted()
const {
return m_onceUndoExecuted; }
69 virtual void undoImpl() = 0;
70 virtual void redoImpl() = 0;
73 bool m_onceUndoExecuted;
78 #endif // LIB_QUENTIER_UTILITY_QUENTIER_UNDO_COMMAND_H The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38
The QuentierUndoCommand class has the sole purpose of working around one quirky aspect of Qt's undo/r...
Definition: QuentierUndoCommand.h:51