X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionselectwindow.h;h=856281de08f4128326a3517ea260513ae97f58e1;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=7a38550f1873f87545db97aaf3160e56fca7371a;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/actions/rs_actionselectwindow.h b/src/actions/rs_actionselectwindow.h index 7a38550..856281d 100644 --- a/src/actions/rs_actionselectwindow.h +++ b/src/actions/rs_actionselectwindow.h @@ -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