]> Shamusworld >> Repos - architektonas/blob - src/actions/actionblockscreate.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / actions / actionblockscreate.h
1 #ifndef __ACTIONBLOCKSCREATE_H__
2 #define __ACTIONBLOCKSCREATE_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events for creating blocks from
9  * existing entities.
10  *
11  * @author James Hammons
12  * @author Andrew Mustun
13  */
14 class ActionBlocksCreate: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         SetReferencePoint,    /**< Setting the reference point. */
22                         ShowDialog            /**< Showing dialog for name. */
23                 };
24
25         public:
26                 ActionBlocksCreate(EntityContainer & container, GraphicView & graphicView);
27                 ~ActionBlocksCreate();
28
29                 virtual RS2::ActionType rtti();
30                 virtual void init(int status = 0);
31                 virtual void trigger();
32                 virtual void mouseMoveEvent(QMouseEvent * e);
33                 virtual void mouseReleaseEvent(QMouseEvent * e);
34                 virtual void coordinateEvent(Vector * e);
35                 virtual void updateMouseButtonHints();
36                 virtual void updateMouseCursor();
37                 virtual void updateToolBar();
38
39         protected:
40                 Vector referencePoint;
41 };
42
43 #endif  // __ACTIONBLOCKSCREATE_H__