1 #ifndef __ACTIONDRAWLINERECTANGLE_H__
2 #define __ACTIONDRAWLINERECTANGLE_H__
5 #include "actioninterface.h"
9 * This action class can handle user events to draw rectangles with two corners
12 * @author James Hammons
13 * @author Andrew Mustun
15 class ActionDrawLineRectangle: public ActionInterface
22 SetCorner1, /**< Setting the 1st corner. */
23 SetCorner2 /**< Setting the 2nd corner. */
27 ActionDrawLineRectangle(EntityContainer & container, GraphicView & graphicView);
28 ~ActionDrawLineRectangle();
31 virtual void init(int status = 0);
32 virtual void trigger();
33 virtual void mouseMoveEvent(QMouseEvent * e);
34 virtual void mouseReleaseEvent(QMouseEvent * e);
35 void preparePreview();
36 virtual void coordinateEvent(Vector * e);
37 virtual void commandEvent(CommandEvent * e);
38 virtual QStringList getAvailableCommands();
39 virtual void updateMouseButtonHints();
40 virtual void updateMouseCursor();
41 virtual void updateToolBar();
44 /** Line data for the 4 lines. */
52 #endif // __ACTIONDRAWLINERECTANGLE_H__