1 #ifndef __ACTIONDRAWLINEPOLYGON2_H__
2 #define __ACTIONDRAWLINEPOLYGON2_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 ActionDrawLinePolygon2: public ActionInterface
17 SetCorner1, /**< Setting center 1. */
18 SetCorner2, /**< Setting corner 2. */
19 SetNumber /**< Setting number in the command line. */
23 ActionDrawLinePolygon2(EntityContainer & container, GraphicView & graphicView);
24 ~ActionDrawLinePolygon2();
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);
46 /** Number of edges. */
48 /** Last status before entering text. */
52 #endif // __ACTIONDRAWLINEPOLYGON2_H__