1 #ifndef RS_ACTIONDIMALIGNED_H
2 #define RS_ACTIONDIMALIGNED_H
4 #include "rs_actiondimension.h"
5 #include "rs_dimaligned.h"
8 * This action class can handle user events to draw
11 * @author Andrew Mustun
13 class RS_ActionDimAligned: public RS_ActionDimension
20 SetExtPoint1, /**< Setting the 1st ext point. */
21 SetExtPoint2, /**< Setting the 2nd ext point. */
22 SetDefPoint, /**< Setting the common def point */
23 SetText /**< Setting the text label in command line */
27 RS_ActionDimAligned(RS_EntityContainer & container, GraphicView & graphicView);
28 ~RS_ActionDimAligned();
30 virtual RS2::ActionType rtti();
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(RS_CommandEvent * e);
38 virtual QStringList getAvailableCommands();
39 virtual void hideOptions();
40 virtual void showOptions();
41 virtual void updateMouseButtonHints();
45 * Aligned dimension data.
47 RS_DimAlignedData edata;
49 /** Last status before entering text. */