SettingController Class Reference

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

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

+ Inheritance diagram for SettingController:

Public Slots

void enableExportButtons (bool enable)
 Enables or disables the export buttons. More...
 
void enableIKSolutionButton (bool enable)
 Enables or disables the new IK solution button. More...
 
void enableImportTCPCollision (bool enable)
 Enables or disables the import, tcp and collision buttons. More...
 
void enableSelectRobotButton (bool enable)
 
void environmentChanged (EnvironmentPtr environment)
 Set the enviroment. More...
 
void retranslateGui ()
 Retranslates the guiSettingTab. More...
 
void selectTCP (int index)
 Changes the currently selected TCP. More...
 
void selectTCP (QString tcp)
 Changes the currently selected TCP. More...
 

Signals

void changedIKSolution ()
 Notifies other controllers about the availability of a new IK solution for the first waypoint. More...
 
void changedLanguage (QString language)
 Notifies other controllers about a change of the language. More...
 
void changedTCP (QString tcp)
 Notifies other controllers about a change of the current TCP. More...
 
void convertToMMM ()
 Notifies other controllers to convert all trajectories to MMM. More...
 
void exportTrajectory ()
 Notifies other controllers to export all trajectories to Trajectory. More...
 
void openImport ()
 Notifies other controllers to open an import dialog. More...
 
void openRobotSelection ()
 Notifies other controllers to open a robot selection dialog. More...
 
void openShortcut ()
 Notifies other controllers to open a shortcut dialog. More...
 
void setActiveColModelName (QString activeColModelName)
 Sets the active collision model name. More...
 
void setBodyColModelsNames (QStringList bodyColModelsNames)
 Sets the body collision models names. More...
 

Public Member Functions

SettingTabPtr getGuiSettingTab ()
 Getter for the SettingTab pointer to guiSettingTab. More...
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setGuiSettingTab (SettingTabPtr guiSettingTab)
 Setter for the SettingTab pointer to guiSettingTab. More...
 
 SettingController (SettingTabPtr guiSettingTab)
 Creates a new SettingController and assigns a SettingTab to handle. More...
 

Detailed Description

Subcontroller which handles all user interaction with the setting tab in the GUI, communicates with other controllers via signals and slots.

Definition at line 42 of file SettingController.h.

Constructor & Destructor Documentation

◆ SettingController()

SettingController ( SettingTabPtr  guiSettingTab)

Creates a new SettingController and assigns a SettingTab to handle.

Parameters
guiSettingTabPointer to the SettingTab whose user interaction is handled by the TransitionController

Definition at line 88 of file SettingController.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ changedIKSolution

void changedIKSolution ( )
signal

Notifies other controllers about the availability of a new IK solution for the first waypoint.

◆ changedLanguage

void changedLanguage ( QString  language)
signal

Notifies other controllers about a change of the language.

Parameters
indexIndex of the language

◆ changedTCP

void changedTCP ( QString  tcp)
signal

Notifies other controllers about a change of the current TCP.

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

◆ convertToMMM

void convertToMMM ( )
signal

Notifies other controllers to convert all trajectories to MMM.

◆ enableExportButtons

void enableExportButtons ( bool  enable)
slot

Enables or disables the export buttons.

Parameters
enableDetermines whether to enable or disable the export buttons

Definition at line 234 of file SettingController.cpp.

+ Here is the caller graph for this function:

◆ enableIKSolutionButton

void enableIKSolutionButton ( bool  enable)
slot

Enables or disables the new IK solution button.

Parameters
enableDetermines whether to enable or disable the ik solution button

Definition at line 229 of file SettingController.cpp.

+ Here is the caller graph for this function:

◆ enableImportTCPCollision

void enableImportTCPCollision ( bool  enable)
slot

Enables or disables the import, tcp and collision buttons.

Parameters
enableDetermines whether to enable or disable the import, tcp and collision buttons

Definition at line 240 of file SettingController.cpp.

◆ enableSelectRobotButton

void enableSelectRobotButton ( bool  enable)
slot

Definition at line 265 of file SettingController.cpp.

◆ environmentChanged

void environmentChanged ( EnvironmentPtr  environment)
slot

Set the enviroment.

Parameters
Thenew enviroment

Definition at line 270 of file SettingController.cpp.

◆ exportTrajectory

void exportTrajectory ( )
signal

Notifies other controllers to export all trajectories to Trajectory.

◆ getGuiSettingTab()

SettingTabPtr getGuiSettingTab ( )

Getter for the SettingTab pointer to guiSettingTab.

Returns
A Pointer to the guiSettingTab

Definition at line 95 of file SettingController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 39 of file SettingController.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 78 of file SettingController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 83 of file SettingController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 29 of file SettingController.cpp.

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

◆ openImport

void openImport ( )
signal

Notifies other controllers to open an import dialog.

◆ openRobotSelection

void openRobotSelection ( )
signal

Notifies other controllers to open a robot selection dialog.

◆ openShortcut

void openShortcut ( )
signal

Notifies other controllers to open a shortcut dialog.

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiSettingTab.

Definition at line 260 of file SettingController.cpp.

◆ selectTCP [1/2]

void selectTCP ( int  index)
slot

Changes the currently selected TCP.

Parameters
indexIndex of the current TCP

Definition at line 118 of file SettingController.cpp.

+ Here is the caller graph for this function:

◆ selectTCP [2/2]

void selectTCP ( QString  tcp)
slot

Changes the currently selected TCP.

Parameters
tcpString identifier of the current TCP

Definition at line 136 of file SettingController.cpp.

◆ setActiveColModelName

void setActiveColModelName ( QString  activeColModelName)
signal

Sets the active collision model name.

Parameters
activeColModelNameActive collision model name

◆ setBodyColModelsNames

void setBodyColModelsNames ( QStringList  bodyColModelsNames)
signal

Sets the body collision models names.

Parameters
activeColModelNameBody collision models names

◆ setGuiSettingTab()

void setGuiSettingTab ( SettingTabPtr  guiSettingTab)

Setter for the SettingTab pointer to guiSettingTab.

Parameters
guiSettingTabPointer to the SettingTab whose user interaction is handled by the SettingController

Definition at line 100 of file SettingController.cpp.


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