1 #ifndef __ACTIONDRAWPOLYLINE_H__
2 #define __ACTIONDRAWPOLYLINE_H__
4 #include "actioninterface.h"
10 * This class handles polyline creation.
12 * @author James Hammons
14 class ActionDrawPolyline: public ActionInterface
20 SetFirstPoint = 0, /**< Setting the first point. */
21 SetNextPoint /**< Setting the next point. */
25 ActionDrawPolyline(EntityContainer & container, GraphicView & graphicView);
26 ~ActionDrawPolyline();
28 virtual RS2::ActionType rtti();
29 virtual void trigger();
30 virtual void mouseMoveEvent(QMouseEvent * e);
31 virtual void mousePressEvent(QMouseEvent * e);
32 virtual void mouseReleaseEvent(QMouseEvent * e);
33 virtual void updateMouseButtonHints();
34 virtual void updateMouseCursor();
35 virtual void updateToolBar();
36 virtual void showOptions();
37 virtual void hideOptions();
44 /** Start point of the series of lines. Used for close function. */
46 /** Point history (for undo) */
47 //This probably won't work, because of arc segments...
48 QList<Vector *> history;
51 #endif // __ACTIONDRAWPOLYLINE_H__