]> Shamusworld >> Repos - architektonas/blob - src/actions/actionmodifydeletefree.h
Bugfixes related to removing Snapper class.
[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 Entity;
8 class 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(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                 Polyline * polyline;
29                 Entity * e1;
30                 Vector v1;
31                 Entity * e2;
32                 Vector v2;
33 };
34
35 #endif  // __ACTIONMODIFYDELETEFREE_H__