]> Shamusworld >> Repos - architektonas/blob - src/actions/actionmodifydeletefree.h
Last checkin before major refactor...
[architektonas] / src / actions / actionmodifydeletefree.h
1 #ifndef __ACTIONMODIFYDELETEFREE_H__
2 #define __ACTIONMODIFYDELETEFREE_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 class RS_Entity;
8 class RS_Polyline;
9
10 /**
11  * This action class can handle user events to delete entities.
12  *
13  * @author James Hammons
14  * @author Andrew Mustun
15  */
16 class ActionModifyDeleteFree: public ActionInterface
17 {
18         public:
19                 ActionModifyDeleteFree(RS_EntityContainer & container, GraphicView & graphicView);
20                 ~ActionModifyDeleteFree();
21
22                 virtual void init(int status = 0);
23                 virtual void trigger();
24                 virtual void mouseReleaseEvent(QMouseEvent * e);
25                 virtual void updateMouseButtonHints();
26
27         private:
28                 RS_Polyline * polyline;
29                 RS_Entity * e1;
30                 Vector v1;
31                 RS_Entity * e2;
32                 Vector v2;
33 };
34
35 #endif  // __ACTIONMODIFYDELETEFREE_H__