Go to the documentation of this file.
22 #ifndef MEMENTOCONTROLLER_H
23 #define MEMENTOCONTROLLER_H
24 #include <QPushButton>
104 void undoOperation();
109 void redoOperation();
123 QPushButton* undoButton;
124 QPushButton* redoButton;
131 #endif // MEMENTOCONTROLLER_H
void onConnectComponent() override
void undo()
Notifies other controllers about undoing the lastly executed operation.
void onDisconnectComponent() override
QPushButton * getUndoButton()
Getter for the undo button.
void redo()
Notifies other controllers about redoing the lastly undone operation.
std::shared_ptr< MementoController > MementoControllerPtr
void enableRedoButtonVisualization(bool enable)
Enables or disables the redo button.
MementoController(QPushButton *undoButton, QPushButton *redoButton)
Creates a new MementoController with two given push buttons realizing the undo and redo operations.
void enableUndoButton(bool enable)
Enables or disables the undo button.
void onExitComponent() override
void onInitComponent() override
Subcontroller which handles all user interaction with the undo and redo buttons on the user interface...
This file offers overloads of toIce() and fromIce() functions for STL container types.
Abstract controller providing a set of methods which must be implemented by every controller.
QPushButton * getRedoButton()
Getter for the redo button.
void enableRedoButton(bool enable)
Enables or disables the redo button.