Go to the documentation of this file. 1 #ifndef SHORTCUTCONTROLLER_H
2 #define SHORTCUTCONTROLLER_H
5 #include <QKeySequence>
7 #include "../ui_RobotTrajectoryDesignerGuiPluginWidget.h"
8 #include "../View/ui_ShortcutDialog.h"
104 void addedWaypointSlot();
105 void deletedWaypointSlot();
106 void changeWaypointSlot();
107 void playPreviewSlot();
108 void playPreviewAllSlot();
109 void stopPreviewSlot();
110 void changedPerspectiveTopSlot();
111 void changedPerspectiveFrontSlot();
112 void changedPerspectiveBackSlot();
113 void changedPerspectiveLeftSlot();
114 void changedPerspectiveRightSlot();
115 void changedPerspectiveHighAngleSlot();
116 void undoOperation();
117 void redoOperation();
181 QShortcut* deactivateSetWaypoint;
182 QShortcut* setWaypoint;
183 QShortcut* deleteWaypoint;
184 QShortcut* changeWaypointShortcut;
185 QShortcut* playPreview;
186 QShortcut* playPreviewAll;
187 QShortcut* stopPreview;
188 QShortcut* setPerspectiveTop;
189 QShortcut* setPerspectiveFront;
190 QShortcut* setPerspectiveBack;
191 QShortcut* setPerspectiveLeft;
192 QShortcut* setPerspectiveRight;
193 QShortcut* setPerspectiveHighAngle;
194 QShortcut* undoShortcut;
195 QShortcut* redoShortcut;
196 Ui::ShortcutDialog ui;
197 QDialog* shortcutDialog;
207 #endif // SHORTCUTCONTROLLER_H
void undo()
Notifies other controllers about undoing the lastly executed operation.
void stopPreviewSignal()
Stop the preview of all trajectories.
ShortcutController(QWidget *parent)
Creates a new ShortcutController.
void changedPerspective(int perspective)
Change the perspective in the robot visualization.
int getCurrentWaypoint()
Getter for the index of the currently selected waypoint.
void onConnectComponent() override
void enableAddShortcut(bool enable)
Enables or disables the add shortcut.
std::shared_ptr< ShortcutController > ShortcutControllerPtr
void enableDeleteChangeShortcut(bool enable)
Enables or disables the delete and change shortcut.
void onExitComponent() override
void setCurrentWaypoint(int currentWaypoint)
Setter for the index of the currently selected waypoint.
void playPreviewAllSignal()
Plays the preview of all trajectories.
void addedWaypointPressed(bool pressed)
void redo()
Notifies other controllers about redoing the lastly undone operation.
void onInitComponent() override
void deletedWaypoint(int index)
Delete a waypoint at the waypointIndex.
void enableStopPreviewShortcut(bool enable)
Enables or disables the stop preview shortcut.
void enableRedoShortcut(bool enable)
Enables or disables the redo shortcut.
void addedWaypoint(int index, bool insertAfter=true)
Add a waypoint at the waypointIndex.
void enablePreviewShortcut(bool enable)
Enables or disables the prview shortcut.
void playPreviewSignal()
Starts a simulation of the current Trajectory.
void open()
Open the shortcutDialog.
void changeWaypoint(int index)
Notifies other controllers about the change of the currently selected waypoint.
void onDisconnectComponent() override
void enablePreviewAllShortcut(bool enable)
Enables or disables the prview all shortcut.
This file offers overloads of toIce() and fromIce() functions for STL container types.
Abstract controller providing a set of methods which must be implemented by every controller.
void enableUndoShortcut(bool enable)
Enables or disables the undo shortcut.