1 #ifndef __ACTIONDRAWTEXT_H__
2 #define __ACTIONDRAWTEXT_H__
4 #include "actioninterface.h"
8 * This action class can handle user events to draw texts.
10 * @author James Hammons
11 * @author Andrew Mustun
13 class ActionDrawText: public ActionInterface
20 ShowDialog, /**< Showing the text dialog. */
21 SetPos, /**< Setting the position. */
22 SetText /**< Settting the text in the command line. */
26 ActionDrawText(EntityContainer & container, GraphicView & graphicView);
29 virtual RS2::ActionType rtti();
30 virtual void init(int status = 0);
32 virtual void trigger();
33 void preparePreview();
34 virtual void mouseMoveEvent(QMouseEvent * e);
35 virtual void mouseReleaseEvent(QMouseEvent * e);
36 virtual void coordinateEvent(Vector * e);
37 virtual void commandEvent(CommandEvent * e);
38 virtual QStringList getAvailableCommands();
39 virtual void hideOptions();
40 virtual void showOptions();
41 virtual void updateMouseButtonHints();
42 virtual void updateMouseCursor();
43 virtual void updateToolBar();
44 void setText(const QString & t);
46 void setAngle(double a);
55 #endif // __ACTIONDRAWTEXT_H__