// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-// File: ModuleBase_WidgetSelector.h
+// File: ModuleBase_WidgetSelector.cpp
// Created: 19 June 2015
// Author: Natalia ERMOLAEVA
#include <ModelAPI_ResultConstruction.h>
+#include <TopoDS_Iterator.hxx>
+
ModuleBase_WidgetSelector::ModuleBase_WidgetSelector(QWidget* theParent,
ModuleBase_IWorkshop* theWorkshop,
const Config_WidgetAPI* theData,
{
clearAttribute();
- QList<ModuleBase_ViewerPrs> aSelected = myWorkshop->selection()->getSelected(
- ModuleBase_ISelection::AllControls);
- bool isDone = setSelection(aSelected, true);
+ QList<ModuleBase_ViewerPrs> aSelected = getFilteredSelected();
+ bool isDone = setSelection(aSelected, false);
emit valuesChanged();
// the updateObject method should be called to flush the updated sigal. The workshop listens it,
// calls validators for the feature and, as a result, updates the Apply button state.
updateFocus();
}
-#include <TopoDS_Iterator.hxx>
-
//********************************************************************
bool ModuleBase_WidgetSelector::acceptSubShape(const GeomShapePtr& theShape,
const ResultPtr& theResult) const
activateSelection(false);
activateFilters(false);
}
+