1 #ifndef RS_ACTIONDRAWLINERECTANGLE_H
2 #define RS_ACTIONDRAWLINERECTANGLE_H
5 #include "rs_previewactioninterface.h"
9 * This action class can handle user events to draw
10 * rectangles with two corners given.
12 * @author Andrew Mustun
14 class RS_ActionDrawLineRectangle: public RS_PreviewActionInterface
21 SetCorner1, /**< Setting the 1st corner. */
22 SetCorner2 /**< Setting the 2nd corner. */
26 RS_ActionDrawLineRectangle(RS_EntityContainer & container, GraphicView & graphicView);
27 ~RS_ActionDrawLineRectangle();
30 virtual void init(int status = 0);
31 virtual void trigger();
32 virtual void mouseMoveEvent(QMouseEvent * e);
33 virtual void mouseReleaseEvent(QMouseEvent * e);
34 void preparePreview();
35 virtual void coordinateEvent(Vector * e);
36 virtual void commandEvent(RS_CommandEvent * e);
37 virtual QStringList getAvailableCommands();
38 virtual void updateMouseButtonHints();
39 virtual void updateMouseCursor();
40 virtual void updateToolBar();
44 * Line data for the 4 lines.