]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionblockscreate.h
Last checkin before major refactor...
[architektonas] / src / actions / rs_actionblockscreate.h
1 #ifndef RS_ACTIONBLOCKSCREATE_H
2 #define RS_ACTIONBLOCKSCREATE_H
3
4 #include "rs_previewactioninterface.h"
5
6 /**
7  * This action class can handle user events for creating blocks from
8  * existing entities.
9  *
10  * @author Andrew Mustun
11  */
12 class RS_ActionBlocksCreate: public RS_PreviewActionInterface
13 {
14         public:
15                 /**
16                  * Action States.
17                  */
18                 enum Status {
19                         SetReferencePoint,    /**< Setting the reference point. */
20                         ShowDialog            /**< Showing dialog for name. */
21                 };
22
23         public:
24                 RS_ActionBlocksCreate(RS_EntityContainer & container, GraphicView & graphicView);
25                 ~RS_ActionBlocksCreate();
26
27                 virtual RS2::ActionType rtti();
28                 virtual void init(int status = 0);
29                 virtual void trigger();
30                 virtual void mouseMoveEvent(QMouseEvent * e);
31                 virtual void mouseReleaseEvent(QMouseEvent * e);
32                 virtual void coordinateEvent(Vector * e);
33                 //virtual void commandEvent(RS_CommandEvent * e);
34                 //virtual QStringList getAvailableCommands();
35                 //virtual void showOptions();
36                 //virtual void hideOptions();
37                 virtual void updateMouseButtonHints();
38                 virtual void updateMouseCursor();
39                 virtual void updateToolBar();
40
41         protected:
42                 Vector referencePoint;
43 };
44
45 #endif