#include <ModuleBase_IWorkshop.h>
#include <ModuleBase_IViewer.h>
#include <ModuleBase_Tools.h>
-#include <ModuleBase_FilterFactory.h>
#include <ModuleBase_Filter.h>
#include <ModuleBase_IModule.h>
#include <ModuleBase_ViewerPrs.h>
#include <ModuleBase_IconFactory.h>
+#include <Config_Translator.h>
#include <Config_WidgetAPI.h>
#include <Events_Loop.h>
#include <Events_Message.h>
#include <ModelAPI_AttributeValidator.h>
#include <Config_WidgetAPI.h>
-#include <Events_Error.h>
#include <GeomAPI_Shape.h>
QFormLayout* aLayout = new QFormLayout(this);
ModuleBase_Tools::adjustMargins(aLayout);
- QString aLabelText = QString::fromStdString(theData->widgetLabel());
+ QString aLabelText = translate(theData->widgetLabel());
QString aLabelIcon = QString::fromStdString(theData->widgetIcon());
myLabel = new QLabel(aLabelText, this);
if (!aLabelIcon.isEmpty())
myLabel->setPixmap(ModuleBase_IconFactory::loadPixmap(aLabelIcon));
- QString aToolTip = QString::fromStdString(theData->widgetTooltip());
+ QString aToolTip = translate(theData->widgetTooltip());
myTextLine = new QLineEdit(this);
QString anObjName = QString::fromStdString(attributeID());
myTextLine->setObjectName(anObjName);
//********************************************************************
bool ModuleBase_WidgetShapeSelector::storeValueCustom()
{
- // the value is stored on the selection changed signal processing
+ // the value is stored on the selection changed signal processing
return true;
}
}
//********************************************************************
-QIntList ModuleBase_WidgetShapeSelector::getShapeTypes() const
+QIntList ModuleBase_WidgetShapeSelector::shapeTypes() const
{
QIntList aShapeTypes;
foreach(QString aType, myShapeTypes) {