1 #ifndef RS_ACTIONDRAWLINEPARALLEL_H
2 #define RS_ACTIONDRAWLINEPARALLEL_H
5 #include "rs_previewactioninterface.h"
11 * This action class can handle user events to draw parallel
12 * lines, arcs and circles.
14 * @author Andrew Mustun
16 class RS_ActionDrawLineParallel: public RS_PreviewActionInterface
20 SetEntity, /**< Choose original entity. */
21 //SetDistance, /**< Setting distance in the command line. */
22 SetNumber /**< Setting number in the command line. */
23 //SetThrough /**< Setting a point for the parallel to go through. */
27 RS_ActionDrawLineParallel(RS_EntityContainer & container, GraphicView & graphicView);
28 ~RS_ActionDrawLineParallel();
30 virtual RS2::ActionType rtti();
31 virtual void trigger();
32 virtual void mouseMoveEvent(QMouseEvent * e);
33 virtual void mouseReleaseEvent(QMouseEvent * e);
34 virtual void updateMouseButtonHints();
35 virtual void commandEvent(RS_CommandEvent * e);
36 virtual QStringList getAvailableCommands();
37 virtual void hideOptions();
38 virtual void showOptions();
39 virtual void updateMouseCursor();
40 virtual void updateToolBar();
42 void setDistance(double d);
44 void setNumber(int n);
47 /** Closest parallel. */
49 /** Data of new line */
51 /** Distance of the parallel. */
53 /** Number of parallels. */
55 /** Coordinate of the mouse. */
57 /** Original entity. */