1 #ifndef RS_ACTIONDRAWELLIPSEAXIS_H
2 #define RS_ACTIONDRAWELLIPSEAXIS_H
4 #include "rs_ellipse.h"
5 #include "rs_previewactioninterface.h"
8 * This action class can handle user events to draw ellipses
9 * with a center point and the endpoints of minor and major axis.
11 * @author Andrew Mustun
13 class RS_ActionDrawEllipseAxis: public RS_PreviewActionInterface
20 SetCenter, /**< Settinge the center. */
21 SetMajor, /**< Setting endpoint of major axis. */
22 SetMinor, /**< Setting minor/major ratio. */
23 SetAngle1, /**< Setting start angle. */
24 SetAngle2 /**< Setting end angle. */
28 RS_ActionDrawEllipseAxis(RS_EntityContainer & container, GraphicView & graphicView, bool isArc);
29 ~RS_ActionDrawEllipseAxis();
31 virtual void init(int status = 0);
32 virtual void trigger();
33 virtual void mouseMoveEvent(QMouseEvent * e);
34 virtual void mouseReleaseEvent(QMouseEvent * e);
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();
43 /** Center of ellipse */
45 /** Endpoint of major axis */
47 /** Ratio major / minor */
53 /** Do we produce an arc (true) or full ellipse (false) */