1 #ifndef __ACTIONDRAWSPLINE_H__
2 #define __ACTIONDRAWSPLINE_H__
5 #include "actioninterface.h"
9 * This action class can handle user events to draw splines.
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDrawSpline: public ActionInterface
21 SetStartpoint, /**< Setting the startpoint. */
22 SetNextPoint /**< Setting the next point. */
26 ActionDrawSpline(EntityContainer & container, GraphicView & graphicView);
27 virtual ~ActionDrawSpline();
29 virtual RS2::ActionType rtti();
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(CommandEvent * e);
37 virtual QStringList getAvailableCommands();
38 virtual void showOptions();
39 virtual void hideOptions();
40 virtual void updateMouseButtonHints();
41 virtual void updateMouseCursor();
42 virtual void updateToolBar();
45 void setDegree(int deg);
47 void setClosed(bool c);
52 * Spline data defined so far.
57 * Polyline entity we're working on.
62 * Point history (for undo)
64 QList<Vector *> history;
67 #endif // __ACTIONDRAWSPLINE_H__