-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 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
#include <climits>
ModuleBase_WidgetFactory::ModuleBase_WidgetFactory(const std::string& theXmlRepresentation,
- ModuleBase_IWorkshop* theWorkshop)
+ ModuleBase_IWorkshop* theWorkshop,
+ const std::string theAttributePrefix)
: myWorkshop(theWorkshop)
{
- myWidgetApi = new Config_WidgetAPI(theXmlRepresentation);
+ myWidgetApi = new Config_WidgetAPI(theXmlRepresentation, theAttributePrefix);
}
ModuleBase_WidgetFactory::~ModuleBase_WidgetFactory()
theTitle =
QString::fromStdString(myWidgetApi->getProperty(CONTAINER_PAGE_NAME)).toStdString().c_str();
}
+ else
+ theTitle = theAttributeId;
}
void ModuleBase_WidgetFactory::getGreedAttribute(std::string& theAttributeId)