X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetPoint2dDistance.h;h=7d6a497c6058f55a89af09552decfa518f6ce373;hb=c55b14977783111c8b418b416c7f6c2fa545c5e5;hp=50c2626a4d4f499c7c342191ed5dec13239cfeb9;hpb=d0e122f8a53eee773269e778db3115c36070dbf1;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetPoint2dDistance.h b/src/PartSet/PartSet_WidgetPoint2dDistance.h index 50c2626a4..7d6a497c6 100644 --- a/src/PartSet/PartSet_WidgetPoint2dDistance.h +++ b/src/PartSet/PartSet_WidgetPoint2dDistance.h @@ -18,7 +18,7 @@ class ModuleBase_IViewWindow; class QMouseEvent; /** -* \ingroup Module +* \ingroup Modules * Implementation of model widget for widget which provides input of a distance between two points * In XML file can be defined as following: * \code @@ -47,8 +47,8 @@ Q_OBJECT virtual ~PartSet_WidgetPoint2dDistance(); - /// The methiod called when widget is activated - virtual void activate(); + /// Fills the widget with default values + virtual void reset(); /// The methiod called when widget is deactivated virtual void deactivate(); @@ -66,18 +66,22 @@ Q_OBJECT /// Set sketch instance void setSketch(CompositeFeaturePtr theSketch) { mySketch = theSketch; } - protected slots: - /// Process of mouse release +public slots: + /// Process of mouse move /// \param theWnd a pointer to a window /// \param theEvent a mouse event - void onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + void onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); - /// Process of mouse move + protected slots: + /// Process of mouse release /// \param theWnd a pointer to a window /// \param theEvent a mouse event - void onMouseMove(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); + void onMouseRelease(ModuleBase_IViewWindow* theWnd, QMouseEvent* theEvent); protected: + /// The methiod called when widget is activated + virtual void activateCustom(); + /// Set the second point which defines a value in the widget as a distance with a first point defined by feature void setPoint(FeaturePtr theFeature, const std::shared_ptr& thePnt);