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();
/// 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<GeomAPI_Pnt2d>& thePnt);