ToolBarController Class Reference

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

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

+ Inheritance diagram for ToolBarController:

Public Slots

void enableAddButton (bool enable)
 Enables or disables the add button. More...
 
void enableDeleteChangeButton (bool enable)
 Enables or disables the delete and change button. More...
 
void enablePreviewAllButton (bool enable)
 Enables or disables the prview all button. More...
 
void enablePreviewButton (bool enable)
 Enables or disables the prview button. More...
 
void enableStopButton (bool enable)
 Enables or disables the prview all button. More...
 
void retranslateGui ()
 Retranslates the guiToolbar. More...
 
void setCurrentWaypoint (int currentWaypoint)
 Setter for the index of the currently selected waypoint. More...
 

Signals

void addedWaypoint (int index, bool insertAfter=true)
 Notifies other controllers about the addition of a waypoint at the current position of the TCP control unit after the last waypoint. More...
 
void changeWaypoint (int index)
 Notifies other controllers about the change of the currently selected waypoint. More...
 
void deletedWaypoint (int index)
 Notifies other controllers about the deletion of the currently selected waypoint. More...
 
void notifyAllPreview ()
 Plays the preview of all trajectories. More...
 
void notifyPreview ()
 Plays the preview of the current trajectory. More...
 
void notifyStopPreview ()
 stop the preview of the trajectories More...
 

Public Member Functions

int getCurrentWaypoint ()
 Getter for the index of the currently selected waypoint. More...
 
ToolBarPtr getGuiToolbar ()
 Getter for the ToolBar pointer to guiToolbar. More...
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setGuiToolbar (ToolBarPtr guiToolbar)
 Setter for the ToolBar pointer to guiToolbar. More...
 
 ToolBarController (ToolBarPtr guiToolbar)
 Creates a new ToolBarController and assigns a ToolBar to handle. More...
 

Detailed Description

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

Definition at line 35 of file ToolBarController.h.

Constructor & Destructor Documentation

◆ ToolBarController()

ToolBarController ( ToolBarPtr  guiToolbar)

Creates a new ToolBarController and assigns a ToolBar to handle.

Parameters
guiToolbarPointer to the ToolBar whose user interaction is handled by the ToolBarController

Definition at line 76 of file ToolBarController.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addedWaypoint

void addedWaypoint ( int  index,
bool  insertAfter = true 
)
signal

Notifies other controllers about the addition of a waypoint at the current position of the TCP control unit after the last waypoint.

Parameters
constraintsConstraints of the Waypoint: InsertAfter

◆ changeWaypoint

void changeWaypoint ( int  index)
signal

Notifies other controllers about the change of the currently selected waypoint.

Parameters
indexIndex of the currently selected waypoint

◆ deletedWaypoint

void deletedWaypoint ( int  index)
signal

Notifies other controllers about the deletion of the currently selected waypoint.

Parameters
indexIndex of the currently selected waypoint

◆ enableAddButton

void enableAddButton ( bool  enable)
slot

Enables or disables the add button.

Parameters
enableDetermines whether to enable or disable the add button

Definition at line 148 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ enableDeleteChangeButton

void enableDeleteChangeButton ( bool  enable)
slot

Enables or disables the delete and change button.

Parameters
enableDetermines whether to enable or disable the delete button

Definition at line 142 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ enablePreviewAllButton

void enablePreviewAllButton ( bool  enable)
slot

Enables or disables the prview all button.

Parameters
enableDetermines whether to enable or disable the previes button

Definition at line 153 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ enablePreviewButton

void enablePreviewButton ( bool  enable)
slot

Enables or disables the prview button.

Parameters
enableDetermines whether to enable or disable the previes button

Definition at line 158 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ enableStopButton

void enableStopButton ( bool  enable)
slot

Enables or disables the prview all button.

Parameters
enableDetermines whether to enable or disable the previes button

Definition at line 163 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ getCurrentWaypoint()

int getCurrentWaypoint ( )

Getter for the index of the currently selected waypoint.

Returns
Index of the currently selected waypoint

Definition at line 94 of file ToolBarController.cpp.

◆ getGuiToolbar()

ToolBarPtr getGuiToolbar ( )

Getter for the ToolBar pointer to guiToolbar.

Returns
A Pointer to the guiToolbar

Definition at line 84 of file ToolBarController.cpp.

◆ notifyAllPreview

void notifyAllPreview ( )
signal

Plays the preview of all trajectories.

◆ notifyPreview

void notifyPreview ( )
signal

Plays the preview of the current trajectory.

◆ notifyStopPreview

void notifyStopPreview ( )
signal

stop the preview of the trajectories

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 36 of file ToolBarController.cpp.

+ Here is the caller graph for this function:

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 66 of file ToolBarController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 71 of file ToolBarController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 26 of file ToolBarController.cpp.

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

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiToolbar.

Definition at line 137 of file ToolBarController.cpp.

◆ setCurrentWaypoint

void setCurrentWaypoint ( int  currentWaypoint)
slot

Setter for the index of the currently selected waypoint.

Parameters
currentWaypointIndex of the currently selected waypoint

Definition at line 99 of file ToolBarController.cpp.

◆ setGuiToolbar()

void setGuiToolbar ( ToolBarPtr  guiToolbar)

Setter for the ToolBar pointer to guiToolbar.

Parameters
guiToolbarPointer to the ToolBar whose user interaction is handled by the ToolBarController

Definition at line 89 of file ToolBarController.cpp.


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