// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-// File: ModuleBase_Widgets.h
+// File: ModuleBase_WidgetBoolValue.cpp
// Created: 04 June 2014
// Author: Vitaly Smetannikov
#include <QCheckBox>
ModuleBase_WidgetBoolValue::ModuleBase_WidgetBoolValue(QWidget* theParent,
- const Config_WidgetAPI* theData,
- const std::string& theParentId)
- : ModuleBase_ModelWidget(theParent, theData, theParentId)
+ const Config_WidgetAPI* theData)
+: ModuleBase_ModelWidget(theParent, theData)
{
QString aText = QString::fromStdString(theData->widgetLabel());
QString aToolTip = QString::fromStdString(theData->widgetTooltip());
{
}
-bool ModuleBase_WidgetBoolValue::storeValueCustom() const
+bool ModuleBase_WidgetBoolValue::storeValueCustom()
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aBool = aData->boolean(attributeID());
return true;
}
-bool ModuleBase_WidgetBoolValue::restoreValue()
+bool ModuleBase_WidgetBoolValue::restoreValueCustom()
{
DataPtr aData = myFeature->data();
std::shared_ptr<ModelAPI_AttributeBoolean> aRef = aData->boolean(attributeID());
aList.append(myCheckBox);
return aList;
}
+
+void ModuleBase_WidgetBoolValue::setHighlighted(bool)
+{
+ return;
+}