1 #ifndef RS_ACTIONDRAWLINE_H
2 #define RS_ACTIONDRAWLINE_H
5 #include "rs_previewactioninterface.h"
9 * This action class can handle user events to draw
10 * simple lines with the start- and endpoint given.
12 * @author Andrew Mustun
14 class RS_ActionDrawLine: public RS_PreviewActionInterface
22 SetStartpoint = 0, /**< Setting the startpoint. */
23 SetEndpoint /**< Setting the endpoint. */
27 RS_ActionDrawLine(RS_EntityContainer & container, GraphicView & graphicView);
28 virtual ~RS_ActionDrawLine();
30 virtual RS2::ActionType rtti();
32 virtual void init(int status = 0);
33 virtual void trigger();
34 virtual void mouseMoveEvent(QMouseEvent * e);
35 virtual void mouseReleaseEvent(QMouseEvent * e);
36 virtual void coordinateEvent(Vector * e);
37 virtual void commandEvent(RS_CommandEvent * e);
38 virtual QStringList getAvailableCommands();
39 virtual void showOptions();
40 virtual void hideOptions();
41 virtual void updateMouseButtonHints();
42 virtual void updateMouseCursor();
43 virtual void updateToolBar();
48 void ClearHistory(void);
52 * Line data defined so far.
56 * Start point of the series of lines. Used for close function.
60 * Point history (for undo)
62 QList<Vector *> history;