X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_WidgetFileSelector.cpp;h=f8c46f4082fb2bc275a5891ef9ec2787c3d78d64;hb=383021cb51c4720904096ca851db5ee79255b402;hp=db26f45a7a982cbe4b5f949d6a95fa012abe0df4;hpb=8f9631c551573523a4dd93f582efd70105bd3c82;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_WidgetFileSelector.cpp b/src/PartSet/PartSet_WidgetFileSelector.cpp index db26f45a7..f8c46f408 100644 --- a/src/PartSet/PartSet_WidgetFileSelector.cpp +++ b/src/PartSet/PartSet_WidgetFileSelector.cpp @@ -11,12 +11,13 @@ #include +#include + PartSet_WidgetFileSelector::PartSet_WidgetFileSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop, - const Config_WidgetAPI* theData, - const std::string& theParentId) -: ModuleBase_WidgetFileSelector(theParent, theData, theParentId) -, myWorkshop(theWorkshop) + const Config_WidgetAPI* theData) +: ModuleBase_WidgetFileSelector(theParent, theData), + myWorkshop(theWorkshop) { } @@ -27,20 +28,20 @@ bool PartSet_WidgetFileSelector::restoreValueCustom() return false; DataPtr aData = myFeature->data(); - AttributeStringPtr aStringAttr = aData->string(attributeID("format")); + AttributeStringPtr aStringAttr = aData->string(ExchangePlugin_ExportFeature::FILE_PATH_ID()); mySelectedFilter = formatToFilter(shortFormatToFullFormat(QString::fromStdString(aStringAttr->value()))); return ModuleBase_WidgetFileSelector::restoreValueCustom(); } -bool PartSet_WidgetFileSelector::storeValueCustom() const +bool PartSet_WidgetFileSelector::storeValueCustom() { // A rare case when plugin was not loaded. if (!myFeature) return false; DataPtr aData = myFeature->data(); - AttributeStringPtr aStringAttr = aData->string(attributeID("format")); + AttributeStringPtr aStringAttr = aData->string(ExchangePlugin_ExportFeature::FILE_FORMAT_ID()); aStringAttr->setValue(filterToShortFormat(mySelectedFilter).toStdString()); return ModuleBase_WidgetFileSelector::storeValueCustom();