]> Shamusworld >> Repos - architektonas/blob - src/actions/actiondrawhatch.h
In the middle of major refactoring...
[architektonas] / src / actions / actiondrawhatch.h
1 #ifndef __ACTIONDRAWHATCH_H__
2 #define __ACTIONDRAWHATCH_H__
3
4 #include "rs_hatch.h"
5 #include "actioninterface.h"
6
7 /**
8  * This action class can handle user events to draw hatches.
9  *
10  * @author James Hammons
11  * @author Andrew Mustun
12  */
13 class ActionDrawHatch: public ActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         ShowDialog           /**< Showing the hatch dialog. */
21                 };
22
23         public:
24                 ActionDrawHatch(RS_EntityContainer & container, GraphicView & graphicView);
25                 ~ActionDrawHatch();
26
27                 virtual void init(int status = 0);
28                 virtual void trigger();
29                 virtual void mouseMoveEvent(QMouseEvent * e);
30                 virtual void mouseReleaseEvent(QMouseEvent * e);
31                 virtual void updateMouseButtonHints();
32                 virtual void updateMouseCursor();
33                 virtual void updateToolBar();
34
35         private:
36                 RS_HatchData data;
37                 RS_Hatch * hatch;
38 };
39
40 #endif  // __ACTIONDRAWHATCH_H__