TCPSelectionController Class Reference

Subcontroller which handles all user interaction with the active TCP selection in the GUI, communicates with other controllers via signals and slots. More...

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/TCPSelectionController.h>

+ Inheritance diagram for TCPSelectionController:

Public Slots

void addTrajectory (QString trajectory)
 Adds a new trajectory to the combobox of available trajectories.
 
void enableSelectedTCP (bool enable)
 Enables or disables the selected tcp combobox.
 
void removeAllTrajectories ()
 Removes all trajectorie is tcpComboBox.
 
void removeTrajectory (QString trajectory)
 Removes the given trajectory from the TCP selection combo box.
 
void updateSelectedTCP (QString trajectory)
 Updates the currently displayed trajectory of the corresponding TCP.
 

Signals

void changedSelectedTCP (QString trajectory)
 Notifies other controllers about changes of the currently displayed trajectory.
 

Public Member Functions

QComboBox * getCurrentTCPCombobox ()
 Getter for the QComboBox pointer to currentTCPCombobox.
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setCurrentTCPCombobox (QComboBox *currentTCPCombobox)
 Setter for the QComboBox pointer to currentTCPCombobox.
 
 TCPSelectionController (QComboBox *currentTCPCombobox)
 Creates a new TCPSelectionController and assigns a QWidget to handle.
 

Detailed Description

Subcontroller which handles all user interaction with the active TCP selection in the GUI, communicates with other controllers via signals and slots.

Constructor & Destructor Documentation

◆ TCPSelectionController()

TCPSelectionController ( QComboBox * currentTCPCombobox)

Creates a new TCPSelectionController and assigns a QWidget to handle.

Parameters
currentTCPComboboxPointer to the QComboBox whose user interaction is handled by the TCPSelectionController

Member Function Documentation

◆ addTrajectory

void addTrajectory ( QString trajectory)
slot

Adds a new trajectory to the combobox of available trajectories.

Parameters
trajectoryString identifier of the trajectory

◆ changedSelectedTCP

void changedSelectedTCP ( QString trajectory)
signal

Notifies other controllers about changes of the currently displayed trajectory.

Parameters
indexIndex of the trajectory

◆ enableSelectedTCP

void enableSelectedTCP ( bool enable)
slot

Enables or disables the selected tcp combobox.

Parameters
enableDetermines whether to enable or disable the selected tcp combobox

◆ getCurrentTCPCombobox()

QComboBox * getCurrentTCPCombobox ( )

Getter for the QComboBox pointer to currentTCPCombobox.

Returns
A Pointer to the currentTCPCombobox

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual

◆ onExitComponent()

void onExitComponent ( )
overridevirtual

◆ onInitComponent()

void onInitComponent ( )
overridevirtual

◆ removeAllTrajectories

void removeAllTrajectories ( )
slot

Removes all trajectorie is tcpComboBox.

◆ removeTrajectory

void removeTrajectory ( QString trajectory)
slot

Removes the given trajectory from the TCP selection combo box.

Parameters
trajectoryString identifier of the trajectory

◆ setCurrentTCPCombobox()

void setCurrentTCPCombobox ( QComboBox * currentTCPCombobox)

Setter for the QComboBox pointer to currentTCPCombobox.

Parameters
currentTCPComboboxPointer to the QComboBox whose user interaction is handled by the TCPSelectionController

◆ updateSelectedTCP

void updateSelectedTCP ( QString trajectory)
slot

Updates the currently displayed trajectory of the corresponding TCP.

Parameters
trajectoryString identifier of the trajectory

The documentation for this class was generated from the following files: