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