X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actionselectintersected.h;h=9697d1e5d6cca2559ebf79a9cda43fec6761a6e2;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=4217c8560daf7c5945c71ee472fa0ca0f9900f91;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/actions/rs_actionselectintersected.h b/src/actions/rs_actionselectintersected.h index 4217c85..9697d1e 100644 --- a/src/actions/rs_actionselectintersected.h +++ b/src/actions/rs_actionselectintersected.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_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