]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionselectintersected.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionselectintersected.h
index 4217c8560daf7c5945c71ee472fa0ca0f9900f91..9697d1e5d6cca2559ebf79a9cda43fec6761a6e2 100644 (file)
@@ -4,52 +4,41 @@
 #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, RS_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