1 #ifndef __ACTIONMODIFYROUND_H__
2 #define __ACTIONMODIFYROUND_H__
4 #include "modification.h"
5 #include "actioninterface.h"
11 * This action class can handle user events to round corners.
13 * @author James Hammons
14 * @author Andrew Mustun
16 class ActionModifyRound: public ActionInterface
23 SetEntity1, /**< Choosing the 1st entity. */
24 SetEntity2, /**< Choosing the 2nd entity. */
25 SetRadius, /**< Setting radius in command line. */
26 SetTrim /**< Setting trim flag in command line. */
30 ActionModifyRound(EntityContainer & container, GraphicView & graphicView);
33 virtual RS2::ActionType rtti();
34 virtual void init(int status = 0);
35 virtual void trigger();
36 virtual void mouseMoveEvent(QMouseEvent * e);
37 virtual void mouseReleaseEvent(QMouseEvent * e);
38 virtual void commandEvent(CommandEvent * e);
39 virtual QStringList getAvailableCommands();
40 virtual void hideOptions();
41 virtual void showOptions();
42 virtual void updateMouseButtonHints();
43 virtual void updateMouseCursor();
44 virtual void updateToolBar();
45 void setRadius(double r);
56 /** Last status before entering angle. */
60 #endif // __ACTIONMODIFYROUND_H__