Salome HOME
Issue #1933:Set auxiliary presentation style
[modules/shaper.git] / src / PartSet / PartSet_WidgetPoint2dDistance.h
index 63fe24778f7b285cd31143a814dec69e4537575f..0ad39f03cda875779d7f4c54de9eefb706db925e 100644 (file)
@@ -10,7 +10,7 @@
 #include "PartSet.h"
 #include "PartSet_MouseProcessor.h"
 
-#include <ModuleBase_WidgetDoubleValue.h>
+#include <ModuleBase_WidgetLabelValue.h>
 
 #include <ModelAPI_CompositeFeature.h>
 
@@ -36,7 +36,7 @@ class QMouseEvent;
 * </point2ddistance>
 * \endcode
 */ 
-class PARTSET_EXPORT PartSet_WidgetPoint2dDistance : public ModuleBase_WidgetDoubleValue,
+class PARTSET_EXPORT PartSet_WidgetPoint2dDistance : public ModuleBase_WidgetLabelValue,
                                                      public PartSet_MouseProcessor
 {
 Q_OBJECT
@@ -50,7 +50,7 @@ Q_OBJECT
 
   virtual ~PartSet_WidgetPoint2dDistance();
 
-  /// Checks if the selection presentation is valid in widget 
+  /// Checks if the selection presentation is valid in widget
   /// \param theValue a selected presentation in the view
   /// \return a boolean value
   virtual bool isValidSelectionCustom(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue);
@@ -86,7 +86,7 @@ protected:
   /// \return true if the widget current value is reset
   virtual bool resetCustom();
 
-  /// Set the second point which defines a value in the widget as 
+  /// 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);
 
@@ -97,10 +97,14 @@ protected:
   virtual double computeValue(const std::shared_ptr<GeomAPI_Pnt2d>& theFirstPnt,
                               const std::shared_ptr<GeomAPI_Pnt2d>& theCurrentPnt);
 
+  /// Saves the internal parameters to the given feature
+  /// \return True in success
+  virtual bool storeValueCustom();
+
 protected:
   /// A reference to workshop
   ModuleBase_IWorkshop* myWorkshop;
-  
+
   /// A name of the first point
   std::string myFirstPntName;