28 ARMARX_INFO <<
"RobotTrajectoryDesigner: ToolBarController on init";
38 ARMARX_INFO <<
"RobotTrajectoryDesigner: ToolBarController on connect";
41 QObject::connect(guiToolbar.get()->getToolBar()->setWaypointButton, SIGNAL(clicked()),
42 this, SLOT(setWaypoint()));
45 QObject::connect(guiToolbar.get()->getToolBar()->deleteWaypointButton, SIGNAL(clicked()),
46 this, SLOT(deleteWaypoint()));
49 QObject::connect(guiToolbar.get()->getToolBar()->changeWaypointButton, SIGNAL(clicked()),
50 this, SLOT(changeWaypoint()));
53 QObject::connect(guiToolbar.get()->getToolBar()->playPreviewButton, SIGNAL(clicked()),
54 this, SLOT(playPreview()));
57 QObject::connect(guiToolbar.get()->getToolBar()->playPreviewAllButton, SIGNAL(clicked()),
58 this, SLOT(playAllPreview()));
61 QObject::connect(guiToolbar.get()->getToolBar()->stopPreviewButton, SIGNAL(clicked()),
62 this, SLOT(stopPreview()));
68 ARMARX_INFO <<
"RobotTrajectoryDesigner: ToolBarController on disconnect";
73 ARMARX_INFO <<
"RobotTrajectoryDesigner: ToolBarController on exit";
77 guiToolbar(guiToolbar),
86 return this->guiToolbar;
91 this->guiToolbar = guiToolbar;
96 return this->currentWaypoint;
101 if (currentWaypoint >= 0)
103 this->currentWaypoint = currentWaypoint;
107 void ToolBarController::setWaypoint()
112 void ToolBarController::deleteWaypoint()
117 void ToolBarController::changeWaypoint()
119 emit changeWaypoint(this->currentWaypoint);
122 void ToolBarController::playAllPreview()
127 void ToolBarController::playPreview()
132 void ToolBarController::stopPreview()
139 throw (
"not yet implemented");
144 guiToolbar->getToolBar()->changeWaypointButton->setEnabled(enable);
145 guiToolbar->getToolBar()->deleteWaypointButton->setEnabled(enable);
150 guiToolbar->getToolBar()->setWaypointButton->setEnabled(enable);
155 guiToolbar->getToolBar()->playPreviewAllButton->setEnabled(enable);
160 guiToolbar->getToolBar()->playPreviewButton->setEnabled(enable);
165 guiToolbar->getToolBar()->stopPreviewButton->setEnabled(enable);