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. More...
 
void enableDeleteChangeShortcut (bool enable)
 Enables or disables the delete and change shortcut. More...
 
void enablePreviewAllShortcut (bool enable)
 Enables or disables the prview all shortcut. More...
 
void enablePreviewShortcut (bool enable)
 Enables or disables the prview shortcut. More...
 
void enableRedoShortcut (bool enable)
 Enables or disables the redo shortcut. More...
 
void enableStopPreviewShortcut (bool enable)
 Enables or disables the stop preview shortcut. More...
 
void enableUndoShortcut (bool enable)
 Enables or disables the undo shortcut. More...
 
void open ()
 Open the shortcutDialog. More...
 
void setCurrentWaypoint (int currentWaypoint)
 Setter for the index of the currently selected waypoint. More...
 

Signals

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

Public Member Functions

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

Detailed Description

Definition at line 13 of file ShortcutController.h.

Constructor & Destructor Documentation

◆ ShortcutController()

ShortcutController ( QWidget *  parent)

Creates a new ShortcutController.

Definition at line 66 of file ShortcutController.cpp.

+ Here is the call graph for this function:

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

Definition at line 119 of file ShortcutController.cpp.

◆ enableDeleteChangeShortcut

void enableDeleteChangeShortcut ( bool  enable)
slot

Enables or disables the delete and change shortcut.

Parameters
enableDetermines whether to enable or disable the delete shortcut

Definition at line 113 of file ShortcutController.cpp.

◆ enablePreviewAllShortcut

void enablePreviewAllShortcut ( bool  enable)
slot

Enables or disables the prview all shortcut.

Parameters
enableDetermines whether to enable or disable the previes shortcut

Definition at line 93 of file ShortcutController.cpp.

◆ enablePreviewShortcut

void enablePreviewShortcut ( bool  enable)
slot

Enables or disables the prview shortcut.

Parameters
enableDetermines whether to enable or disable the previes shortcut

Definition at line 124 of file ShortcutController.cpp.

◆ enableRedoShortcut

void enableRedoShortcut ( bool  enable)
slot

Enables or disables the redo shortcut.

Parameters
enableDetermines whether to enable or disable the redo shortcut

Definition at line 103 of file ShortcutController.cpp.

◆ enableStopPreviewShortcut

void enableStopPreviewShortcut ( bool  enable)
slot

Enables or disables the stop preview shortcut.

Parameters
enableDetermines whether to enable or disable the stop preview shortcut

Definition at line 98 of file ShortcutController.cpp.

◆ enableUndoShortcut

void enableUndoShortcut ( bool  enable)
slot

Enables or disables the undo shortcut.

Parameters
enableDetermines whether to enable or disable the undo shortcut

Definition at line 108 of file ShortcutController.cpp.

◆ getCurrentWaypoint()

int getCurrentWaypoint ( )

Getter for the index of the currently selected waypoint.

Returns
Index of the currently selected waypoint

Definition at line 74 of file ShortcutController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 33 of file ShortcutController.cpp.

+ Here is the caller graph for this function:

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 56 of file ShortcutController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 61 of file ShortcutController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 5 of file ShortcutController.cpp.

+ Here is the caller graph for this function:

◆ open

void open ( )
slot

Open the shortcutDialog.

Definition at line 87 of file ShortcutController.cpp.

◆ 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

Definition at line 79 of file ShortcutController.cpp.

◆ 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: