-public:
- /**
- * Action States.
- */
- enum Status {
- SetFirstCorner, /**< Setting first corner of selection. */
- SetSecondCorner, /**< Setting second corner of selection. */
- SetReferencePoint, /**< Setting the reference point. */
- SetTargetPoint /**< Setting the target point. */
- };
-
-public:
- RS_ActionModifyStretch(RS_EntityContainer& container,
- RS_GraphicView& graphicView);
- ~RS_ActionModifyStretch() {}
-
- static QAction* createGUIAction(RS2::ActionType /*type*/, QObject* /*parent*/);
-
- virtual void init(int status=0);
- virtual void trigger();
-
- virtual void coordinateEvent(RS_CoordinateEvent* e);
- virtual void mouseMoveEvent(QMouseEvent* e);
- virtual void mouseReleaseEvent(QMouseEvent* e);
-
- virtual void updateMouseButtonHints();
- virtual void updateMouseCursor();
- virtual void updateToolBar();
-
-private:
- Vector firstCorner;
- Vector secondCorner;
- Vector referencePoint;
- Vector targetPoint;
+ public:
+ /**
+ * Action States.
+ */
+ enum Status {
+ SetFirstCorner, /**< Setting first corner of selection. */
+ SetSecondCorner, /**< Setting second corner of selection. */
+ SetReferencePoint, /**< Setting the reference point. */
+ SetTargetPoint /**< Setting the target point. */
+ };
+
+ public:
+ RS_ActionModifyStretch(RS_EntityContainer & container, GraphicView & graphicView);
+ ~RS_ActionModifyStretch();
+
+ virtual void init(int status = 0);
+ virtual void trigger();
+ virtual void coordinateEvent(Vector * e);
+ virtual void mouseMoveEvent(QMouseEvent * e);
+ virtual void mouseReleaseEvent(QMouseEvent * e);
+ virtual void updateMouseButtonHints();
+ virtual void updateMouseCursor();
+ virtual void updateToolBar();
+
+ private:
+ Vector firstCorner;
+ Vector secondCorner;
+ Vector referencePoint;
+ Vector targetPoint;