1 #ifndef RS_ACTIONDRAWARC_H
2 #define RS_ACTIONDRAWARC_H
4 #include "rs_previewactioninterface.h"
8 * This action class can handle user events to draw
9 * simple arcs with the center, radius, start- and endangle given.
11 * @author Andrew Mustun
13 class RS_ActionDrawArc: public RS_PreviewActionInterface
20 SetCenter, /**< Setting the center point. */
21 SetRadius, /**< Setting the radius. */
22 SetAngle1, /**< Setting the startpoint. */
23 SetAngle2, /**< Setting the endpoint. */
24 SetIncAngle, /**< Setting the included angle. */
25 SetChordLength /**< Setting carc chord length. */
29 RS_ActionDrawArc(RS_EntityContainer & container, GraphicView & graphicView);
32 virtual RS2::ActionType rtti();
34 virtual void init(int status = 0);
35 virtual void trigger();
36 virtual void mouseMoveEvent(QMouseEvent * e);
37 virtual void mouseReleaseEvent(QMouseEvent * e);
38 virtual void coordinateEvent(Vector * e);
39 virtual void commandEvent(RS_CommandEvent * e);
40 virtual QStringList getAvailableCommands();
41 virtual void hideOptions();
42 virtual void showOptions();
43 virtual void updateMouseButtonHints();
44 virtual void updateMouseCursor();
45 virtual void updateToolBar();
47 void setReversed(bool r);
51 * Arc data defined so far.