+ // Simplified implementation.
+ // It relies on theFilter was made by formatToFilter() function.
+ return theFilter.section(' ', 0, 0);
+}
+
+QStringList ModuleBase_WidgetFileSelector::filterToExtensions(const QString & theFilter)
+{
+ // Simplified implementation.
+ // It relies on theFilter was made by formatToFilter() function.
+ QStringList anExtensions = theFilter.section("(", 1, 1).section(")", 0, 0).split(" ");
+ return anExtensions;
+}
+
+QStringList ModuleBase_WidgetFileSelector::getValidatorFormats() const
+{
+ SessionPtr aMgr = ModelAPI_Session::get();
+ ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
+
+ ModelAPI_ValidatorsFactory::Validators allValidators;
+ aFactory->validators(myFeature->getKind(), myAttributeID, allValidators);
+