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;
100 currentTCPCombobox->setCurrentIndex(
index);
110 if (this->currentTCPCombobox->findText(
trajectory) == -1)
112 this->currentTCPCombobox->addItem(
trajectory);
113 if (this->currentTCPCombobox->count() == 1)
115 this->currentTCPCombobox->setEnabled(
true);
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);
void onInitComponent() override
void setCurrentTCPCombobox(QComboBox *currentTCPCombobox)
Setter for the QComboBox pointer to currentTCPCombobox.
void changedSelectedTCP(QString trajectory)
Notifies other controllers about changes of the currently displayed trajectory.
void onDisconnectComponent() override
void removeAllTrajectories()
Removes all trajectorie is tcpComboBox.
void addTrajectory(QString trajectory)
Adds a new trajectory to the combobox of available trajectories.
void updateSelectedTCP(QString trajectory)
Updates the currently displayed trajectory of the corresponding TCP.
void enableSelectedTCP(bool enable)
Enables or disables the selected tcp combobox.
TCPSelectionController(QComboBox *currentTCPCombobox)
Creates a new TCPSelectionController and assigns a QWidget to handle.
QComboBox * getCurrentTCPCombobox()
Getter for the QComboBox pointer to currentTCPCombobox.
void onConnectComponent() override
void onExitComponent() override
void removeTrajectory(QString trajectory)
Removes the given trajectory from the TCP selection combo box.
#define ARMARX_INFO
The normal logging level.
This file offers overloads of toIce() and fromIce() functions for STL container types.