1#ifndef SHORTCUTCONTROLLER_H
2#define SHORTCUTCONTROLLER_H
7#include "../View/ui_ShortcutDialog.h"
8#include "../ui_RobotTrajectoryDesignerGuiPluginWidget.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;
Abstract controller providing a set of methods which must be implemented by every controller.
void stopPreviewSignal()
Stop the preview of all trajectories.
void onInitComponent() override
void playPreviewSignal()
Starts a simulation of the current Trajectory.
ShortcutController(QWidget *parent)
Creates a new ShortcutController.
void undo()
Notifies other controllers about undoing the lastly executed operation.
void addedWaypointPressed(bool pressed)
void addedWaypoint(int index, bool insertAfter=true)
Add a waypoint at the waypointIndex.
void changedPerspective(int perspective)
Change the perspective in the robot visualization.
void onDisconnectComponent() override
void changeWaypoint(int index)
Notifies other controllers about the change of the currently selected waypoint.
void enableDeleteChangeShortcut(bool enable)
Enables or disables the delete and change shortcut.
void enableRedoShortcut(bool enable)
Enables or disables the redo shortcut.
void deletedWaypoint(int index)
Delete a waypoint at the waypointIndex.
void playPreviewAllSignal()
Plays the preview of all trajectories.
void redo()
Notifies other controllers about redoing the lastly undone operation.
void enablePreviewAllShortcut(bool enable)
Enables or disables the prview all shortcut.
void open()
Open the shortcutDialog.
void onConnectComponent() override
void enableUndoShortcut(bool enable)
Enables or disables the undo shortcut.
void setCurrentWaypoint(int currentWaypoint)
Setter for the index of the currently selected waypoint.
int getCurrentWaypoint()
Getter for the index of the currently selected waypoint.
void enablePreviewShortcut(bool enable)
Enables or disables the prview shortcut.
void enableAddShortcut(bool enable)
Enables or disables the add shortcut.
void onExitComponent() override
void enableStopPreviewShortcut(bool enable)
Enables or disables the stop preview shortcut.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< ShortcutController > ShortcutControllerPtr