]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actioneditpaste.h
Last checkin before major refactor...
[architektonas] / src / actions / rs_actioneditpaste.h
1 #ifndef RS_ACTIONEDITPASTE_H
2 #define RS_ACTIONEDITPASTE_H
3
4 #include "rs_previewactioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events for pasting entities from
9  * the clipboard into the current document.
10  *
11  * @author Andrew Mustun
12  */
13 class RS_ActionEditPaste: public RS_PreviewActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetTargetPoint    /**< Setting the reference point. */
21                 };
22
23         public:
24                 RS_ActionEditPaste(RS_EntityContainer & container, GraphicView & graphicView);
25                 ~RS_ActionEditPaste();
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 coordinateEvent(Vector * e);
32                 virtual void updateMouseButtonHints();
33                 virtual void updateMouseCursor();
34                 virtual void updateToolBar();
35
36         protected:
37                 Vector targetPoint;
38 };
39
40 #endif