]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actioneditcopy.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actioneditcopy.h
1 #ifndef RS_ACTIONEDITCOPY_H
2 #define RS_ACTIONEDITCOPY_H
3
4 #include "rs_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 Andrew Mustun
12  */
13 class RS_ActionEditCopy: public RS_ActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetReferencePoint    /**< Setting the reference point. */
21                 };
22
23         public:
24                 RS_ActionEditCopy(bool copy, RS_EntityContainer & container, RS_GraphicView & graphicView);
25                 ~RS_ActionEditCopy();
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                 /** Copy (true) or cut (false) */
38                 bool copy;
39
40                 Vector referencePoint;
41 };
42
43 #endif