#include "rs_previewactioninterface.h"
#include "vector.h"
-
/**
* This action class can handle user events to select all entities.
*
* @author Andrew Mustun
*/
-class RS_ActionSelectIntersected : public RS_PreviewActionInterface {
- //Q_OBJECT
-public:
- /**
- * Action States.
- */
- enum Status {
- SetPoint1, /**< Setting the 1st corner of the window. */
- SetPoint2 /**< Setting the 2nd corner of the window. */
- };
-
-public:
- RS_ActionSelectIntersected(RS_EntityContainer& container,
- RS_GraphicView& graphicView,
- bool select);
- ~RS_ActionSelectIntersected() {}
-
- static QAction* createGUIAction(RS2::ActionType type, QObject* /*parent*/);
-
- virtual RS2::ActionType rtti() {
- return RS2::ActionSelectIntersected;
- }
-
- virtual void init(int status=0);
-
- virtual void trigger();
-
- virtual void mouseMoveEvent(QMouseEvent* e);
- virtual void mousePressEvent(QMouseEvent* e);
- virtual void mouseReleaseEvent(QMouseEvent* e);
-
- virtual void updateMouseButtonHints();
- virtual void updateMouseCursor();
- virtual void updateToolBar();
-
-protected:
- Vector v1;
- Vector v2;
-
- bool select;
+class RS_ActionSelectIntersected: public RS_PreviewActionInterface
+{
+ public:
+ /**
+ * Action States.
+ */
+ enum Status {
+ SetPoint1, /**< Setting the 1st corner of the window. */
+ SetPoint2 /**< Setting the 2nd corner of the window. */
+ };
+
+ public:
+ RS_ActionSelectIntersected(RS_EntityContainer & container, GraphicView & graphicView, bool select);
+ ~RS_ActionSelectIntersected();
+
+ virtual RS2::ActionType rtti();
+ virtual void init(int status = 0);
+ virtual void trigger();
+ virtual void mouseMoveEvent(QMouseEvent * e);
+ virtual void mousePressEvent(QMouseEvent * e);
+ virtual void mouseReleaseEvent(QMouseEvent * e);
+ virtual void updateMouseButtonHints();
+ virtual void updateMouseCursor();
+ virtual void updateToolBar();
+
+ protected:
+ Vector v1;
+ Vector v2;
+
+ bool select;
};
#endif