Salome HOME
Pipe validator fix
[modules/shaper.git] / src / PartSet / PartSet_WidgetShapeSelector.h
index ddbc8ba43d267171967a3bf20aea45ee0ed76a36..9f8c44da659c2da5c32ae7960639d612eea5936b 100644 (file)
@@ -49,13 +49,13 @@ protected:
   /// Checks the widget validity. By default, it returns true.
   /// \param thePrs a selected presentation in the view
   /// \return a boolean value
-  virtual bool isValidSelectionCustom(const ModuleBase_ViewerPrs& thePrs);
+  virtual bool isValidSelectionCustom(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
 
   /// Return an object and geom shape by the viewer presentation
   /// \param thePrs a selection
   /// \param theObject an output object
   /// \param theShape a shape of the selection
-  virtual void getGeomSelection(const ModuleBase_ViewerPrs& thePrs,
+  virtual void getGeomSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs,
                                 ObjectPtr& theObject,
                                 GeomShapePtr& theShape);
 
@@ -63,7 +63,7 @@ protected:
   /// It should be realized in the specific widget because of different
   /// parameters of the current attribute
   /// \param theValid a boolean flag, if restore happens for valid parameters
-  void restoreAttributeValue(const bool theValid);
+  void restoreAttributeValue(const AttributePtr& theAttribute, const bool theValid);
 
 protected:
   /// A reference to external objects manager