]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/rs_actionselectwindow.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionselectwindow.h
index 7a38550f1873f87545db97aaf3160e56fca7371a..856281de08f4128326a3517ea260513ae97f58e1 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_ActionSelectWindow : public RS_PreviewActionInterface {
-       //Q_OBJECT
-public:
-    /**
-     * Action States.
-     */
-    enum Status {
-        SetCorner1,     /**< Setting the 1st corner of the window.  */
-        SetCorner2      /**< Setting the 2nd corner of the window. */
-    };
-
-public:
-    RS_ActionSelectWindow(RS_EntityContainer& container,
-                         RS_GraphicView& graphicView,
-                         bool select);
-    ~RS_ActionSelectWindow() {}
-
-       static QAction* createGUIAction(RS2::ActionType type, QObject* /*parent*/);
-
-       virtual RS2::ActionType rtti() {
-               return RS2::ActionSelectWindow;
-       }
-
-    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_ActionSelectWindow: public RS_PreviewActionInterface
+{
+       public:
+               /**
+                * Action States.
+                */
+               enum Status {
+                       SetCorner1, /**< Setting the 1st corner of the window.  */
+                       SetCorner2 /**< Setting the 2nd corner of the window. */
+               };
+
+       public:
+               RS_ActionSelectWindow(RS_EntityContainer & container, RS_GraphicView & graphicView, bool select);
+               ~RS_ActionSelectWindow();
+
+               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