1 #ifndef __ACTIONDRAWLINE_H__
2 #define __ACTIONDRAWLINE_H__
5 #include "actioninterface.h"
9 * This action class can handle user events to draw
10 * simple lines with the start- and endpoint given.
12 * @author James Hammons
13 * @author Andrew Mustun
15 class ActionDrawLine: public ActionInterface
23 SetStartpoint = 0, /**< Setting the startpoint. */
24 SetEndpoint /**< Setting the endpoint. */
28 ActionDrawLine(EntityContainer & container, GraphicView & graphicView);
29 virtual ~ActionDrawLine();
31 virtual RS2::ActionType rtti();
33 virtual void init(int status = 0);
34 virtual void trigger();
35 virtual void mouseMoveEvent(QMouseEvent * e);
36 virtual void mouseReleaseEvent(QMouseEvent * e);
37 virtual void coordinateEvent(Vector * e);
38 virtual void commandEvent(CommandEvent * e);
39 virtual QStringList getAvailableCommands();
40 virtual void showOptions();
41 virtual void hideOptions();
42 virtual void updateMouseButtonHints();
43 virtual void updateMouseCursor();
44 virtual void updateToolBar();
49 void ClearHistory(void);
53 * Line data defined so far.
57 * Start point of the series of lines. Used for close function.
61 * Point history (for undo)
63 QList<Vector *> history;
66 #endif // __ACTIONDRAWLINE_H__