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