Go to the documentation of this file.
28 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on init";
37 QObject::connect(undoButton, SIGNAL(clicked()),
this, SLOT(undoOperation()));
40 QObject::connect(redoButton, SIGNAL(clicked()),
this, SLOT(redoOperation()));
45 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on disconnect";
50 ARMARX_INFO <<
"RobotTrajectoryDesigner: MementoController on exit";
54 undoButton(undoButton),
55 redoButton(redoButton)
63 return this->undoButton;
68 return this->redoButton;
71 void MementoController::undoOperation()
76 void MementoController::redoOperation()
83 this->redoButton->setEnabled(enable);
84 this->redoBool = enable;
91 this->redoButton->setEnabled(enable);
97 this->undoButton->setEnabled(enable);
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.
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
This file offers overloads of toIce() and fromIce() functions for STL container types.
QPushButton * getRedoButton()
Getter for the redo button.
void enableRedoButton(bool enable)
Enables or disables the redo button.