Subcontroller which handles all user interaction with the undo and redo buttons on the user interface.
More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/MementoController.h>
|
| void | redo () |
| | Notifies other controllers about redoing the lastly undone operation.
|
| |
| void | undo () |
| | Notifies other controllers about undoing the lastly executed operation.
|
| |
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.
◆ 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 |
◆ enableRedoButton
| void enableRedoButton |
( |
bool | enable | ) |
|
|
slot |
Enables or disables the redo button.
- Parameters
-
| enable | Determines whether to enable or disable the redo button |
◆ enableRedoButtonVisualization
| void enableRedoButtonVisualization |
( |
bool | enable | ) |
|
|
slot |
Enables or disables the redo button.
- Parameters
-
| enable | Determines whether to enable or disable the redo button |
◆ enableUndoButton
| void enableUndoButton |
( |
bool | enable | ) |
|
|
slot |
Enables or disables the undo button.
- Parameters
-
| enable | Determines whether to enable or disable the undo button |
◆ getRedoButton()
| QPushButton * getRedoButton |
( |
| ) |
|
Getter for the redo button.
- Returns
- Push button realizing the redo operation
◆ getUndoButton()
| QPushButton * getUndoButton |
( |
| ) |
|
Getter for the undo button.
- Returns
- Push button realizing the undo operation
◆ 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: