X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_WidgetAPI.cpp;h=eba4ecc16685283c32238ee9cab5569cc894fdb3;hb=aa941d4038c5880146ea98adc84e5d02fc729c49;hp=cc1dfa98629fbcf9116bdee0297b621728861d3b;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/Config/Config_WidgetAPI.cpp b/src/Config/Config_WidgetAPI.cpp index cc1dfa986..eba4ecc16 100644 --- a/src/Config/Config_WidgetAPI.cpp +++ b/src/Config/Config_WidgetAPI.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -26,11 +26,12 @@ #include -Config_WidgetAPI::Config_WidgetAPI(std::string theRawXml) +Config_WidgetAPI::Config_WidgetAPI(std::string theRawXml, const std::string theAttributePrefix) { myDoc = xmlParseDoc(BAD_CAST theRawXml.c_str()); myCurrentNode = xmlDocGetRootElement(myDoc); myFeatureId = getProperty(_ID); + myAttributePrefix = theAttributePrefix; } Config_WidgetAPI::~Config_WidgetAPI() @@ -119,7 +120,7 @@ std::string Config_WidgetAPI::featureId() const std::string Config_WidgetAPI::widgetId() const { - return getProperty(_ID); + return myAttributePrefix + getProperty(_ID); } std::string Config_WidgetAPI::widgetIcon() const