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. More...
 
void enableSelectedTCP (bool enable)
 Enables or disables the selected tcp combobox. More...
 
void removeAllTrajectories ()
 Removes all trajectorie is tcpComboBox. More...
 
void removeTrajectory (QString trajectory)
 Removes the given trajectory from the TCP selection combo box. More...
 
void updateSelectedTCP (QString trajectory)
 Updates the currently displayed trajectory of the corresponding TCP. More...
 

Signals

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

Public Member Functions

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

Detailed Description

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

Definition at line 37 of file TCPSelectionController.h.

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

Definition at line 58 of file TCPSelectionController.cpp.

+ Here is the call graph for this function:

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

Definition at line 96 of file TCPSelectionController.cpp.

◆ changedSelectedTCP

void changedSelectedTCP ( QString  trajectory)
signal

Notifies other controllers about changes of the currently displayed trajectory.

Parameters
indexIndex of the trajectory
+ Here is the caller graph for this function:

◆ enableSelectedTCP

void enableSelectedTCP ( bool  enable)
slot

Enables or disables the selected tcp combobox.

Parameters
enableDetermines whether to enable or disable the selected tcp combobox

Definition at line 125 of file TCPSelectionController.cpp.

◆ getCurrentTCPCombobox()

QComboBox * getCurrentTCPCombobox ( )

Getter for the QComboBox pointer to currentTCPCombobox.

Returns
A Pointer to the currentTCPCombobox

Definition at line 65 of file TCPSelectionController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 39 of file TCPSelectionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 48 of file TCPSelectionController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 53 of file TCPSelectionController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 27 of file TCPSelectionController.cpp.

+ Here is the caller graph for this function:

◆ removeAllTrajectories

void removeAllTrajectories ( )
slot

Removes all trajectorie is tcpComboBox.

Definition at line 130 of file TCPSelectionController.cpp.

◆ removeTrajectory

void removeTrajectory ( QString  trajectory)
slot

Removes the given trajectory from the TCP selection combo box.

Parameters
trajectoryString identifier of the trajectory

Definition at line 111 of file TCPSelectionController.cpp.

◆ 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

Definition at line 70 of file TCPSelectionController.cpp.

◆ updateSelectedTCP

void updateSelectedTCP ( QString  trajectory)
slot

Updates the currently displayed trajectory of the corresponding TCP.

Parameters
trajectoryString identifier of the trajectory

Definition at line 86 of file TCPSelectionController.cpp.

+ Here is the caller graph for this function:

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