1 #ifndef __ACTIONDRAWLINEPOLYGON_H__
2 #define __ACTIONDRAWLINEPOLYGON_H__
4 #include "actioninterface.h"
8 * This action class can handle user events to draw polygons.
10 * @author James Hammons
11 * @author Andrew Mustun
13 class ActionDrawLinePolygon: public ActionInterface
17 SetCenter, /**< Setting center. */
18 SetCorner, /**< Setting corner. */
19 SetNumber /**< Setting number in the command line. */
23 ActionDrawLinePolygon(EntityContainer & container, GraphicView & graphicView);
24 ~ActionDrawLinePolygon();
26 virtual RS2::ActionType rtti();
27 virtual void trigger();
28 virtual void mouseMoveEvent(QMouseEvent * e);
29 virtual void mouseReleaseEvent(QMouseEvent * e);
30 virtual void updateMouseButtonHints();
31 virtual void coordinateEvent(Vector * e);
32 virtual void commandEvent(CommandEvent * e);
33 virtual QStringList getAvailableCommands();
34 virtual void hideOptions();
35 virtual void showOptions();
36 virtual void updateMouseCursor();
37 virtual void updateToolBar();
39 void setNumber(int n);
42 /** Center of polygon */
46 /** Number of edges. */
48 /** Last status before entering text. */
52 #endif // __ACTIONDRAWLINEPOLYGON_H__