1 #ifndef RS_ACTIONMODIFYSTRETCH_H
2 #define RS_ACTIONMODIFYSTRETCH_H
4 #include "rs_previewactioninterface.h"
8 * This action class can handle user events to move entities.
10 * @author Andrew Mustun
12 class RS_ActionModifyStretch: public RS_PreviewActionInterface
20 SetFirstCorner, /**< Setting first corner of selection. */
21 SetSecondCorner, /**< Setting second corner of selection. */
22 SetReferencePoint, /**< Setting the reference point. */
23 SetTargetPoint /**< Setting the target point. */
27 RS_ActionModifyStretch(RS_EntityContainer & container, GraphicView & graphicView);
28 ~RS_ActionModifyStretch();
30 virtual void init(int status = 0);
31 virtual void trigger();
32 virtual void coordinateEvent(Vector * e);
33 virtual void mouseMoveEvent(QMouseEvent * e);
34 virtual void mouseReleaseEvent(QMouseEvent * e);
35 virtual void updateMouseButtonHints();
36 virtual void updateMouseCursor();
37 virtual void updateToolBar();
42 Vector referencePoint;