1 #ifndef __ACTIONDRAWLINEANGLE_H__
2 #define __ACTIONDRAWLINEANGLE_H__
5 #include "actioninterface.h"
9 * This action class can handle user events to draw simple lines at a given
12 * @author James Hammons
13 * @author Andrew Mustun
15 class ActionDrawLineAngle: public ActionInterface
22 SetPos, /**< Setting the position. */
23 SetAngle, /**< Setting angle in the command line. */
24 SetLength /**< Setting length in the command line. */
27 ActionDrawLineAngle(RS_EntityContainer & container, GraphicView & graphicView, double angle = 0.0, bool fixedAngle = false);
28 ~ActionDrawLineAngle();
30 virtual RS2::ActionType rtti();
32 virtual void init(int status = 0);
33 virtual void trigger();
34 virtual void mouseMoveEvent(QMouseEvent * e);
35 virtual void mouseReleaseEvent(QMouseEvent * e);
36 void preparePreview();
37 virtual void coordinateEvent(Vector * e);
38 virtual void commandEvent(RS_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 setSnapPoint(int sp);
47 void setAngle(double a);
49 void setLength(double l);
55 * Line data defined so far.
75 * Snap point (start, middle, end).
80 #endif // __ACTIONDRAWLINEANGLE_H__