ShortcutController Class Reference

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

+ Inheritance diagram for ShortcutController:

Public Slots

void enableAddShortcut (bool enable)
 Enables or disables the add shortcut.
 
void enableDeleteChangeShortcut (bool enable)
 Enables or disables the delete and change shortcut.
 
void enablePreviewAllShortcut (bool enable)
 Enables or disables the prview all shortcut.
 
void enablePreviewShortcut (bool enable)
 Enables or disables the prview shortcut.
 
void enableRedoShortcut (bool enable)
 Enables or disables the redo shortcut.
 
void enableStopPreviewShortcut (bool enable)
 Enables or disables the stop preview shortcut.
 
void enableUndoShortcut (bool enable)
 Enables or disables the undo shortcut.
 
void open ()
 Open the shortcutDialog.
 
void setCurrentWaypoint (int currentWaypoint)
 Setter for the index of the currently selected waypoint.
 

Signals

void addedWaypoint (int index, bool insertAfter=true)
 Add a waypoint at the waypointIndex.
 
void addedWaypointPressed (bool pressed)
 
void changedPerspective (int perspective)
 Change the perspective in the robot visualization.
 
void changeWaypoint (int index)
 Notifies other controllers about the change of the currently selected waypoint.
 
void deletedWaypoint (int index)
 Delete a waypoint at the waypointIndex.
 
void playPreviewAllSignal ()
 Plays the preview of all trajectories.
 
void playPreviewSignal ()
 Starts a simulation of the current Trajectory.
 
void redo ()
 Notifies other controllers about redoing the lastly undone operation.
 
void stopPreviewSignal ()
 Stop the preview of all trajectories.
 
void undo ()
 Notifies other controllers about undoing the lastly executed operation.
 

Public Member Functions

int getCurrentWaypoint ()
 Getter for the index of the currently selected waypoint.
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
 ShortcutController (QWidget *parent)
 Creates a new ShortcutController.
 

Constructor & Destructor Documentation

◆ ShortcutController()

ShortcutController ( QWidget * parent)

Creates a new ShortcutController.

Member Function Documentation

◆ addedWaypoint

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

Add a waypoint at the waypointIndex.

Parameters
indexIndex of the last waypoint
isBreakpointBoolean determining whether to set a breakpoint or not

◆ addedWaypointPressed

void addedWaypointPressed ( bool pressed)
signal

◆ changedPerspective

void changedPerspective ( int perspective)
signal

Change the perspective in the robot visualization.

Parameters
perspectiveInteger representing an enum for the different perspectives

◆ 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

Delete a waypoint at the waypointIndex.

Parameters
indexIndex of the currently selected waypoint

◆ enableAddShortcut

void enableAddShortcut ( bool enable)
slot

Enables or disables the add shortcut.

Parameters
enableDetermines whether to enable or disable the add shortcut

◆ enableDeleteChangeShortcut

void enableDeleteChangeShortcut ( bool enable)
slot

Enables or disables the delete and change shortcut.

Parameters
enableDetermines whether to enable or disable the delete shortcut

◆ enablePreviewAllShortcut

void enablePreviewAllShortcut ( bool enable)
slot

Enables or disables the prview all shortcut.

Parameters
enableDetermines whether to enable or disable the previes shortcut

◆ enablePreviewShortcut

void enablePreviewShortcut ( bool enable)
slot

Enables or disables the prview shortcut.

Parameters
enableDetermines whether to enable or disable the previes shortcut

◆ enableRedoShortcut

void enableRedoShortcut ( bool enable)
slot

Enables or disables the redo shortcut.

Parameters
enableDetermines whether to enable or disable the redo shortcut

◆ enableStopPreviewShortcut

void enableStopPreviewShortcut ( bool enable)
slot

Enables or disables the stop preview shortcut.

Parameters
enableDetermines whether to enable or disable the stop preview shortcut

◆ enableUndoShortcut

void enableUndoShortcut ( bool enable)
slot

Enables or disables the undo shortcut.

Parameters
enableDetermines whether to enable or disable the undo shortcut

◆ getCurrentWaypoint()

int getCurrentWaypoint ( )

Getter for the index of the currently selected waypoint.

Returns
Index of the currently selected waypoint

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual

◆ onExitComponent()

void onExitComponent ( )
overridevirtual

◆ onInitComponent()

void onInitComponent ( )
overridevirtual

◆ open

void open ( )
slot

Open the shortcutDialog.

◆ playPreviewAllSignal

void playPreviewAllSignal ( )
signal

Plays the preview of all trajectories.

◆ playPreviewSignal

void playPreviewSignal ( )
signal

Starts a simulation of the current Trajectory.

◆ redo

void redo ( )
signal

Notifies other controllers about redoing the lastly undone operation.

◆ setCurrentWaypoint

void setCurrentWaypoint ( int currentWaypoint)
slot

Setter for the index of the currently selected waypoint.

Parameters
currentWaypointIndex of the currently selected waypoint

◆ stopPreviewSignal

void stopPreviewSignal ( )
signal

Stop the preview of all trajectories.

◆ undo

void undo ( )
signal

Notifies other controllers about undoing the lastly executed operation.


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