Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetShapeSelector.h
index 26f3ef2530c641c4e26aa574e83b3446d0e3af3a..98a1e4c34c02c35e8e5aee81ef10e0feb989a7d7 100644 (file)
@@ -15,6 +15,7 @@
 #include <GeomAPI_Shape.h>
 
 #include <TopAbs_ShapeEnum.hxx>
+#include <SelectMgr_ListOfFilter.hxx>
 
 #include <QStringList>
 
@@ -108,7 +109,7 @@ Q_OBJECT
  protected:
   /// Saves the internal parameters to the given feature
   /// \return True in success
-  virtual bool storeValue() const;
+  virtual bool storeValueCustom() const;
 
   /// The methiod called when widget is activated
   virtual void activateCustom();
@@ -142,6 +143,12 @@ Q_OBJECT
   /// Clear attribute
   void clearAttribute();
 
+  /// Fills the given list with all widget filters. It can be used by activation widget for the viewer
+  /// or by checking the selection parameter in addition to check validity of the selection argument
+  /// It creates an object type filter if it has not been created yet and save it in the class field
+  /// \param theFilters a list of filter
+  void selectionFilters(SelectMgr_ListOfFilter& theFilters);
+
   //----------- Class members -------------
  protected:
   /// Label of the widget