Subcontroller which handles all user interaction with the undo and redo buttons on the user interface. Communicates with other controllers to realize the memento pattern.
More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/MementoController.h>
|
void | redo () |
| Notifies other controllers about redoing the lastly undone operation. More...
|
|
void | undo () |
| Notifies other controllers about undoing the lastly executed operation. More...
|
|
Subcontroller which handles all user interaction with the undo and redo buttons on the user interface. Communicates with other controllers to realize the memento pattern.
Definition at line 35 of file MementoController.h.
◆ MementoController()
Creates a new MementoController with two given push buttons realizing the undo and redo operations.
- Parameters
-
undoButton | Push button realizing the undo operation |
redoButton | Push button realizing the redo operation |
Definition at line 53 of file MementoController.cpp.
◆ enableRedoButton
void enableRedoButton |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the redo button.
- Parameters
-
enable | Determines whether to enable or disable the redo button |
Definition at line 81 of file MementoController.cpp.
◆ enableRedoButtonVisualization
void enableRedoButtonVisualization |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the redo button.
- Parameters
-
enable | Determines whether to enable or disable the redo button |
Definition at line 87 of file MementoController.cpp.
◆ enableUndoButton
void enableUndoButton |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the undo button.
- Parameters
-
enable | Determines whether to enable or disable the undo button |
Definition at line 95 of file MementoController.cpp.
◆ getRedoButton()
QPushButton * getRedoButton |
( |
| ) |
|
Getter for the redo button.
- Returns
- Push button realizing the redo operation
Definition at line 66 of file MementoController.cpp.
◆ getUndoButton()
QPushButton * getUndoButton |
( |
| ) |
|
Getter for the undo button.
- Returns
- Push button realizing the undo operation
Definition at line 61 of file MementoController.cpp.
◆ onConnectComponent()
void onConnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onDisconnectComponent()
void onDisconnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onExitComponent()
◆ onInitComponent()
◆ redo
Notifies other controllers about redoing the lastly undone operation.
◆ undo
Notifies other controllers about undoing the lastly executed operation.
The documentation for this class was generated from the following files: