1 #ifndef __ACTIONMODIFYMOVEROTATE_H__
2 #define __ACTIONMODIFYMOVEROTATE_H__
4 #include "modification.h"
5 #include "actioninterface.h"
9 * This action class can handle user events to move and at the same
10 * time rotate entities.
12 * @author James Hammons
13 * @author Andrew Mustun
15 class ActionModifyMoveRotate: public ActionInterface
22 SetReferencePoint, /**< Setting the reference point. */
23 SetTargetPoint, /**< Setting the target point. */
24 ShowDialog, /**< Showing the options dialog. */
25 SetAngle /**< Setting angle in command line. */
29 ActionModifyMoveRotate(EntityContainer & container, GraphicView & graphicView);
30 ~ActionModifyMoveRotate();
32 virtual RS2::ActionType rtti();
33 virtual void init(int status = 0);
34 virtual void trigger();
35 virtual void mouseMoveEvent(QMouseEvent * e);
36 virtual void mouseReleaseEvent(QMouseEvent * e);
37 virtual void coordinateEvent(Vector * e);
38 virtual void commandEvent(CommandEvent * e);
39 virtual QStringList getAvailableCommands();
40 virtual void hideOptions();
41 virtual void showOptions();
42 virtual void updateMouseButtonHints();
43 virtual void updateMouseCursor();
44 virtual void updateToolBar();
45 void setAngle(double a);
52 /** Last status before entering angle. */
62 #endif // __ACTIONMODIFYMOVEROTATE_H__