1 #ifndef __ACTIONDRAWLINEHORVERT_H__
2 #define __ACTIONDRAWLINEHORVERT_H__
5 #include "actioninterface.h"
9 * This action class can handle user events to draw
10 * horizontal/vertical lines from a given startpoint
11 * to an endpoint closest to a second given point.
16 class ActionDrawLineHorVert: public ActionInterface
23 SetStartpoint, /**< Setting the 1st point. */
24 SetEndpoint /**< Setting the 2nd point. */
28 ActionDrawLineHorVert(EntityContainer & container, GraphicView & graphicView);
29 ~ActionDrawLineHorVert();
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 updateMouseButtonHints();
37 virtual void updateMouseCursor();
38 virtual void updateToolBar();
52 #endif // __ACTIONDRAWLINEHORVERT_H__