1 #ifndef __ACTIONDIMALIGNED_H__
2 #define __ACTIONDIMALIGNED_H__
4 #include "actiondimension.h"
5 #include "dimaligned.h"
8 * This action class can handle user events to draw
11 * @author James Hammons
12 * @author Andrew Mustun
14 class ActionDimAligned: public ActionDimension
21 SetExtPoint1, /**< Setting the 1st ext point. */
22 SetExtPoint2, /**< Setting the 2nd ext point. */
23 SetDefPoint, /**< Setting the common def point */
24 SetText /**< Setting the text label in command line */
28 ActionDimAligned(EntityContainer & container, GraphicView & graphicView);
31 virtual RS2::ActionType rtti();
33 virtual void trigger();
34 void preparePreview();
35 virtual void mouseMoveEvent(QMouseEvent * e);
36 virtual void mouseReleaseEvent(QMouseEvent * e);
37 virtual void coordinateEvent(Vector * e);
38 virtual void commandEvent(CommandEvent * e);
39 virtual QStringList getAvailableCommands();
40 virtual void hideOptions();
41 virtual void showOptions();
42 virtual void updateMouseButtonHints();
46 * Aligned dimension data.
50 /** Last status before entering text. */
54 #endif // __ACTIONDIMALIGNED_H__