- if(myTypeCombo->count() == 0 || theShapesToFilter.IsEmpty())
- return;
- TopAbs_ShapeEnum aReferenceType =
- ModuleBase_WidgetShapeSelector::shapeType(myTypeCombo->currentText());
- NCollection_List<TopoDS_Shape>::Iterator anIter(theShapesToFilter);
- for (; anIter.More(); anIter.Next()) {
- TopoDS_Shape aShape = anIter.Value();
- if (aShape.IsNull() || aShape.ShapeType() != aReferenceType)
- continue;
- theResult.Append(aShape);
+ QList<QWidget*> result;
+ //result << myTypeCombo;
+ result << myListControl;
+ return result;
+}
+
+//********************************************************************
+void ModuleBase_WidgetMultiSelector::onSelectionTypeChanged()
+{
+ activateSelection(true);
+ activateFilters(true);
+ QList<ModuleBase_ViewerPrs> anEmptyList;
+ // This method will call Selection changed event which will call onSelectionChanged
+ // To clear mySelection, myListControl and storeValue()
+ // So, we don't need to call it
+ myWorkshop->setSelected(anEmptyList);
+}
+
+void ModuleBase_WidgetMultiSelector::updateFocus()
+{
+ // Set focus to List control in order to make possible
+ // to use Tab key for transfer the focus to next widgets
+ myListControl->setCurrentRow(myListControl->model()->rowCount() - 1);
+ myListControl->setFocus();
+}
+
+//********************************************************************
+void ModuleBase_WidgetMultiSelector::updateSelectionName()
+{
+}
+
+//********************************************************************
+QIntList ModuleBase_WidgetMultiSelector::getShapeTypes() const
+{
+ QIntList aShapeTypes;
+
+ if (myTypeCombo->count() > 1 && myIsUseChoice) {
+ aShapeTypes.append(ModuleBase_Tools::shapeType(myTypeCombo->currentText()));