]> Shamusworld >> Repos - architektonas/blob - src/actions/actioneditpaste.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actioneditpaste.h
1 #ifndef __ACTIONEDITPASTE_H__
2 #define __ACTIONEDITPASTE_H__
3
4 #include "actioninterface.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 James Hammons
12  * @author Andrew Mustun
13  */
14 class ActionEditPaste: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         SetTargetPoint    /**< Setting the reference point. */
22                 };
23
24         public:
25                 ActionEditPaste(EntityContainer & container, GraphicView & graphicView);
26                 ~ActionEditPaste();
27
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 updateMouseButtonHints();
34                 virtual void updateMouseCursor();
35                 virtual void updateToolBar();
36
37         protected:
38                 Vector targetPoint;
39 };
40
41 #endif  // __ACTIONEDITPASTE_H__