1 #ifndef RS_ACTIONDRAWLINEPOLYGON_H
2 #define RS_ACTIONDRAWLINEPOLYGON_H
4 #include "rs_previewactioninterface.h"
8 * This action class can handle user events to draw polygons.
10 * @author Andrew Mustun
12 class RS_ActionDrawLinePolygon: public RS_PreviewActionInterface
16 SetCenter, /**< Setting center. */
17 SetCorner, /**< Setting corner. */
18 SetNumber /**< Setting number in the command line. */
22 RS_ActionDrawLinePolygon(RS_EntityContainer & container, GraphicView & graphicView);
23 ~RS_ActionDrawLinePolygon();
25 virtual RS2::ActionType rtti();
26 virtual void trigger();
27 virtual void mouseMoveEvent(QMouseEvent * e);
28 virtual void mouseReleaseEvent(QMouseEvent * e);
29 virtual void updateMouseButtonHints();
30 virtual void coordinateEvent(Vector * e);
31 virtual void commandEvent(RS_CommandEvent * e);
32 virtual QStringList getAvailableCommands();
33 virtual void hideOptions();
34 virtual void showOptions();
35 virtual void updateMouseCursor();
36 virtual void updateToolBar();
38 void setNumber(int n);
41 /** Center of polygon */
45 /** Number of edges. */
47 /** Last status before entering text. */