23 #include "../Environment.h"
29 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on init";
31 currentTCPCombobox->clear();
32 currentTCPCombobox->setEnabled(
false);
35 currentTCPCombobox->setFocusPolicy(Qt::StrongFocus);
41 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on connect";
44 QObject::connect(currentTCPCombobox, SIGNAL(activated(
int)),
50 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on disconnect";
55 ARMARX_INFO <<
"RobotTrajectoryDesigner: TCPSelectionController on exit";
59 currentTCPCombobox(currentTCPCombobox)
67 return this->currentTCPCombobox;
72 if (currentTCPCombobox != NULL)
74 this->currentTCPCombobox = currentTCPCombobox;
88 int index = currentTCPCombobox->findText(trajectory);
91 currentTCPCombobox->setCurrentIndex(
index);
98 if (trajectory != NULL)
100 if (this->currentTCPCombobox->findText(trajectory) == -1)
102 this->currentTCPCombobox->addItem(trajectory);
103 if (this->currentTCPCombobox->count() == 1)
105 this->currentTCPCombobox->setEnabled(
true);
113 int index = currentTCPCombobox->findText(trajectory);
117 currentTCPCombobox->removeItem(
index);
119 if (currentTCPCombobox->count() == 0)
121 currentTCPCombobox->setEnabled(
false);
127 this->currentTCPCombobox->setEnabled(enable);
132 currentTCPCombobox->clear();
133 currentTCPCombobox->setEnabled(
false);