1 #ifndef RS_ACTIONDRAWLINERELANGLE_H
2 #define RS_ACTIONDRAWLINERELANGLE_H
5 #include "rs_previewactioninterface.h"
11 * This action class can handle user events to draw lines with a given angle
14 * @author Andrew Mustun
16 class RS_ActionDrawLineRelAngle: public RS_PreviewActionInterface
20 SetEntity, /**< Choose entity. */
21 SetPos, /**< Choose position. */
22 SetAngle, /**< Set angle in console. */
23 SetLength /**< Set length in console. */
27 RS_ActionDrawLineRelAngle(RS_EntityContainer & container, GraphicView & graphicView, double angle = 0.0, bool fixedAngle = false);
28 ~RS_ActionDrawLineRelAngle();
30 virtual RS2::ActionType rtti();
31 virtual void trigger();
32 virtual void mouseMoveEvent(QMouseEvent * e);
33 virtual void mouseReleaseEvent(QMouseEvent * e);
34 virtual void coordinateEvent(Vector * e);
35 virtual void commandEvent(RS_CommandEvent * e);
36 virtual QStringList getAvailableCommands();
37 virtual void hideOptions();
38 virtual void showOptions();
39 virtual void updateMouseButtonHints();
40 virtual void updateMouseCursor();
41 virtual void updateToolBar();
42 void setAngle(double a);
44 void setLength(double l);
51 /** Chosen position */
53 /** Data of new line */