Salome HOME
bos #24513 - Merge branch 'CR24513'
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelectionFilter.h
index 7ecc0e4ed002aabb947fcf544db5edfdc9146a77..08350f45db867158f4a2bf9c5fa9a9f57ded9d30 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -41,6 +41,8 @@ class QVBoxLayout;
 class QPushButton;
 class QCheckBox;
 
+class ModelAPI_Filter;
+
 class ModuleBase_IWorkshop;
 
 /**
@@ -220,6 +222,12 @@ private:
   /// Return currently created filter items
   QList<ModuleBase_FilterItem*> itemsList() const;
 
+  /// Translate a string
+  QString translate(const std::string& theString) const;
+
+  /// Store translated names of filters and their instances
+  void storeFilters(const std::list<std::shared_ptr<ModelAPI_Filter> >& theFilters);
+
 private:
   ModuleBase_IWorkshop* myWorkshop;
 
@@ -248,6 +256,9 @@ private:
 
   /// Attribute name which will get result of filtering
   std::string mySelectorAttribute;
+
+  /// Translated name and the corresponding filter
+  std::map<std::string, std::shared_ptr<ModelAPI_Filter> > myFilters;
 };