]> Shamusworld >> Repos - architektonas/blob - src/actions/actioneditcopy.h
Last checkin before major refactor...
[architektonas] / src / actions / actioneditcopy.h
1 #ifndef __ACTIONEDITCOPY_H__
2 #define __ACTIONEDITCOPY_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events for copying or cutting entities
9  * to the clipboard.
10  *
11  * @author James Hammons
12  * @author Andrew Mustun
13  */
14 class ActionEditCopy: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         SetReferencePoint    /**< Setting the reference point. */
22                 };
23
24         public:
25                 ActionEditCopy(bool copy, RS_EntityContainer & container, GraphicView & graphicView);
26                 ~ActionEditCopy();
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                 /** Copy (true) or cut (false) */
39                 bool copy;
40
41                 Vector referencePoint;
42 };
43
44 #endif  // __ACTIONEDITCOPY_H__