]> Shamusworld >> Repos - architektonas/blob - src/actions/actiondrawlinefree.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actiondrawlinefree.h
1 #ifndef __ACTIONDRAWLINEFREE_H__
2 #define __ACTIONDRAWLINEFREE_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 class Polyline;
8
9 /**
10  * This action class can handle user events to draw freehand lines.
11  *
12  * @author James Hammons
13  * @author Andrew Mustun
14  */
15 class ActionDrawLineFree: public ActionInterface
16 {
17         public:
18                 ActionDrawLineFree(EntityContainer & container, GraphicView & graphicView);
19                 ~ActionDrawLineFree();
20
21                 virtual void trigger();
22                 virtual void mouseMoveEvent(QMouseEvent * e);
23                 virtual void mousePressEvent(QMouseEvent * e);
24                 virtual void mouseReleaseEvent(QMouseEvent * e);
25                 virtual void updateMouseButtonHints();
26                 virtual void updateMouseCursor();
27                 virtual void updateToolBar();
28
29         protected:
30                 Vector vertex;
31                 Polyline * polyline;
32 };
33
34 #endif  // __ACTIONDRAWLINEFREE_H__