#include "PartSet.h"
#include <ModuleBase_WidgetMultiSelector.h>
-#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_CompositeFeature.h>
class PartSet_ExternalObjectsMgr;
+class ModuleBase_ViewerPrs;
/**
* \ingroup Modules
/// 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);
/// Creates a backup of the current values of the attribute
/// It should be realized in the specific widget because of different
/// parameters of the current attribute
+ /// \param theAttribute an attribute
/// \param theValid a boolean flag, if restore happens for valid parameters
virtual void restoreAttributeValue(const AttributePtr& theAttribute, const bool theValid);
/// \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);