24 #include "../Environment.h"
31 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on init";
33 currentTCPCombobox->clear();
34 currentTCPCombobox->setEnabled(
false);
37 currentTCPCombobox->setFocusPolicy(Qt::StrongFocus);
44 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on connect";
54 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on disconnect";
60 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on exit";
64 currentTCPCombobox(currentTCPCombobox)
73 return this->currentTCPCombobox;
79 if (currentTCPCombobox != NULL)
81 this->currentTCPCombobox = currentTCPCombobox;
97 int index = currentTCPCombobox->findText(trajectory);
100 currentTCPCombobox->setCurrentIndex(
index);
108 if (trajectory != NULL)
110 if (this->currentTCPCombobox->findText(trajectory) == -1)
112 this->currentTCPCombobox->addItem(trajectory);
113 if (this->currentTCPCombobox->count() == 1)
115 this->currentTCPCombobox->setEnabled(
true);
124 int index = currentTCPCombobox->findText(trajectory);
128 currentTCPCombobox->removeItem(
index);
130 if (currentTCPCombobox->count() == 0)
132 currentTCPCombobox->setEnabled(
false);
139 this->currentTCPCombobox->setEnabled(enable);
145 currentTCPCombobox->clear();
146 currentTCPCombobox->setEnabled(
false);