1 #ifndef __ACTIONDRAWLINEPARALLEL_H__
2 #define __ACTIONDRAWLINEPARALLEL_H__
5 #include "actioninterface.h"
11 * This action class can handle user events to draw parallel lines, arcs and
14 * @author James Hammons
15 * @author Andrew Mustun
17 class ActionDrawLineParallel: public ActionInterface
21 SetEntity, /**< Choose original entity. */
22 //SetDistance, /**< Setting distance in the command line. */
23 SetNumber /**< Setting number in the command line. */
24 //SetThrough /**< Setting a point for the parallel to go through. */
28 ActionDrawLineParallel(EntityContainer & container, GraphicView & graphicView);
29 ~ActionDrawLineParallel();
31 virtual RS2::ActionType rtti();
32 virtual void trigger();
33 virtual void mouseMoveEvent(QMouseEvent * e);
34 virtual void mouseReleaseEvent(QMouseEvent * e);
35 virtual void updateMouseButtonHints();
36 virtual void commandEvent(CommandEvent * e);
37 virtual QStringList getAvailableCommands();
38 virtual void hideOptions();
39 virtual void showOptions();
40 virtual void updateMouseCursor();
41 virtual void updateToolBar();
43 void setDistance(double d);
45 void setNumber(int n);
48 /** Closest parallel. */
50 /** Data of new line */
52 /** Distance of the parallel. */
54 /** Number of parallels. */
56 /** Coordinate of the mouse. */
58 /** Original entity. */
62 #endif // __ACTIONDRAWLINEPARALLEL_H__