20 #ifndef ModuleBase_WidgetSelectionFilter_H
21 #define ModuleBase_WidgetSelectionFilter_H
23 #include "ModuleBase.h"
24 #include "ModuleBase_ModelWidget.h"
25 #include "ModuleBase_ViewerPrs.h"
27 #include <ModelAPI_FiltersFeature.h>
29 #include <SelectMgr_IndexedMapOfOwner.hxx>
30 #include <AIS_Shape.hxx>
31 #include <AIS_ListOfInteractive.hxx>
69 void onFiltersLaunch();
73 std::string myFeatureName;
97 std::string
filter()
const {
return myFilterID; }
100 QList<ModuleBase_ModelWidget*>
widgets()
const {
114 void onReverse(
bool theCheck);
121 void addItemRow(
QWidget* theParent);
124 std::string myFilterID;
127 FiltersFeaturePtr mySelection;
130 QToolButton* myRevBtn;
133 QList<ModuleBase_ModelWidget*> myWidgets;
144 static FeaturePtr SelectorFeature;
145 static std::string AttributeId;
173 virtual QString
getError(
const bool theValueStateChecked =
true)
const;
185 void onAddFilter(
int);
197 void onShowOnly(
bool theErase);
200 void onObjectUpdated();
204 void updateSelectBtn();
207 void updateNumberSelected();
210 void clearCurrentSelection(
bool toUpdate =
false);
214 void updatePreview(
const TopoDS_Shape& theShape);
217 void redisplayFeature();
223 QList<ModuleBase_FilterItem*> itemsList()
const;
226 QString translate(
const std::string& theString)
const;
229 void storeFilters(
const std::list<std::shared_ptr<ModelAPI_Filter> >& theFilters);
235 QVBoxLayout* myFiltersLayout;
237 QComboBox* myFiltersCombo;
238 QPushButton* mySelectBtn;
240 QCheckBox* myShowBtn;
246 QList<ModuleBase_ViewerPrsPtr> myValues;
249 Handle(AIS_Shape) myPreview;
252 AIS_ListOfInteractive myListIO;
255 FeaturePtr mySelectorFeature;
258 std::string mySelectorAttribute;
261 std::map<std::string, std::shared_ptr<ModelAPI_Filter> > myFilters;
Definition: ModelAPI_Filter.h:34
A widget which reperesents a one filter item in filters list Also it includes filter GUI if it exists...
Definition: ModuleBase_WidgetSelectionFilter.h:87
void deleteItem(ModuleBase_FilterItem *theItem)
The seignal is sent on deletion of the item.
ModuleBase_FilterItem(const std::string &theFilter, ModuleBase_WidgetSelectionFilter *theParent)
Constructor.
Definition: ModuleBase_WidgetSelectionFilter.cpp:148
void reversedItem(ModuleBase_FilterItem *theItem)
The seignal is sent on reversing of the item.
std::string filter() const
Returns filter Id.
Definition: ModuleBase_WidgetSelectionFilter.h:97
QList< ModuleBase_ModelWidget * > widgets() const
Returns list of widgets which reperesent the current filter GUI.
Definition: ModuleBase_WidgetSelectionFilter.h:100
An object which lets to start a Filters operation as a sub-operation of the current one.
Definition: ModuleBase_WidgetSelectionFilter.h:54
~ModuleBase_FilterStarter()
Destructor.
Definition: ModuleBase_WidgetSelectionFilter.h:65
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48