X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetBoolValue.cpp;h=87e26a78f5c4b03a9a61ad35adc3e99e95929f08;hb=a2982d2108f929cf9e7f996cfd590c4ce59dc21c;hp=cc0197d577d18d90a5876633cfdf4ce348c92262;hpb=758a57d77b6fa3a0485fa3378a1280c7e87a74aa;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp b/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp index cc0197d57..87e26a78f 100644 --- a/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp +++ b/src/ModuleBase/ModuleBase_WidgetBoolValue.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModuleBase_Widgets.h // Created: 04 June 2014 // Author: Vitaly Smetannikov @@ -24,7 +26,7 @@ ModuleBase_WidgetBoolValue::ModuleBase_WidgetBoolValue(QWidget* theParent, { QString aText = QString::fromStdString(theData->widgetLabel()); QString aToolTip = QString::fromStdString(theData->widgetTooltip()); - bool isChecked = theData->getBooleanAttribute(ANY_WDG_DEFAULT, false); + bool isChecked = theData->getBooleanAttribute(ATTR_DEFAULT, false); myCheckBox = new QCheckBox(aText, theParent); myCheckBox->setToolTip(aToolTip); @@ -45,7 +47,7 @@ QWidget* ModuleBase_WidgetBoolValue::getControl() const bool ModuleBase_WidgetBoolValue::storeValue() const { DataPtr aData = myFeature->data(); - boost::shared_ptr aBool = aData->boolean(attributeID()); + std::shared_ptr aBool = aData->boolean(attributeID()); aBool->setValue(myCheckBox->isChecked()); updateObject(myFeature); return true; @@ -54,7 +56,7 @@ bool ModuleBase_WidgetBoolValue::storeValue() const bool ModuleBase_WidgetBoolValue::restoreValue() { DataPtr aData = myFeature->data(); - boost::shared_ptr aRef = aData->boolean(attributeID()); + std::shared_ptr aRef = aData->boolean(attributeID()); bool isBlocked = myCheckBox->blockSignals(true); myCheckBox->setChecked(aRef->value());