1 #ifndef RS_ACTIONSELECTINTERSECTED_H
2 #define RS_ACTIONSELECTINTERSECTED_H
4 #include "rs_previewactioninterface.h"
9 * This action class can handle user events to select all entities.
11 * @author Andrew Mustun
13 class RS_ActionSelectIntersected : public RS_PreviewActionInterface {
20 SetPoint1, /**< Setting the 1st corner of the window. */
21 SetPoint2 /**< Setting the 2nd corner of the window. */
25 RS_ActionSelectIntersected(RS_EntityContainer& container,
26 RS_GraphicView& graphicView,
28 ~RS_ActionSelectIntersected() {}
30 static QAction* createGUIAction(RS2::ActionType type, QObject* /*parent*/);
32 virtual RS2::ActionType rtti() {
33 return RS2::ActionSelectIntersected;
36 virtual void init(int status=0);
38 virtual void trigger();
40 virtual void mouseMoveEvent(QMouseEvent* e);
41 virtual void mousePressEvent(QMouseEvent* e);
42 virtual void mouseReleaseEvent(QMouseEvent* e);
44 virtual void updateMouseButtonHints();
45 virtual void updateMouseCursor();
46 virtual void updateToolBar();