29 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on init";
39 QObject::connect(undoButton, SIGNAL(clicked()),
this, SLOT(undoOperation()));
42 QObject::connect(redoButton, SIGNAL(clicked()),
this, SLOT(redoOperation()));
48 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on disconnect";
54 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on exit";
58 undoButton(undoButton), redoButton(redoButton)
67 return this->undoButton;
73 return this->redoButton;
77 MementoController::undoOperation()
83 MementoController::redoOperation()
91 this->redoButton->setEnabled(enable);
92 this->redoBool = enable;
100 this->redoButton->setEnabled(enable);
107 this->undoButton->setEnabled(enable);
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
#define ARMARX_INFO
The normal logging level.
This file offers overloads of toIce() and fromIce() functions for STL container types.