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