1 #ifndef RS_ACTIONSELECTWINDOW_H
2 #define RS_ACTIONSELECTWINDOW_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_ActionSelectWindow : public RS_PreviewActionInterface {
20 SetCorner1, /**< Setting the 1st corner of the window. */
21 SetCorner2 /**< Setting the 2nd corner of the window. */
25 RS_ActionSelectWindow(RS_EntityContainer& container,
26 RS_GraphicView& graphicView,
28 ~RS_ActionSelectWindow() {}
30 static QAction* createGUIAction(RS2::ActionType type, QObject* /*parent*/);
32 virtual RS2::ActionType rtti() {
33 return RS2::ActionSelectWindow;
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();