// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-// File: ModuleBase_WidgetShapeSelector.h
+// File: ModuleBase_WidgetShapeSelector.cpp
// Created: 2 June 2014
// Author: Vitaly Smetannikov
#include <ModuleBase_FilterFactory.h>
#include <ModuleBase_Filter.h>
-#include <GeomValidators_ShapeType.h>
-
#include <Config_WidgetAPI.h>
#include <Events_Loop.h>
#include <Events_Message.h>
#include <ModelAPI_AttributeRefAttr.h>
#include <ModelAPI_Validator.h>
#include <ModelAPI_AttributeValidator.h>
-#include <ModelAPI_ShapeValidator.h>
#include <Config_WidgetAPI.h>
#include <Events_Error.h>
}
//********************************************************************
-bool ModuleBase_WidgetShapeSelector::restoreValue()
+bool ModuleBase_WidgetShapeSelector::restoreValueCustom()
{
bool isBlocked = this->blockSignals(true);
updateSelectionName();
void ModuleBase_WidgetShapeSelector::updateFocus()
{
- ObjectPtr anObject = GeomValidators_Tools::getObject(myFeature->attribute(attributeID()));
- if (anObject.get())
- emit focusOutWidget(this);
+ emit focusOutWidget(this);
}
//********************************************************************
//********************************************************************
void ModuleBase_WidgetShapeSelector::storeAttributeValue()
{
+ ModuleBase_WidgetValidated::storeAttributeValue();
+
DataPtr aData = myFeature->data();
AttributePtr anAttribute = myFeature->attribute(attributeID());
//********************************************************************
void ModuleBase_WidgetShapeSelector::restoreAttributeValue(bool theValid)
{
+ ModuleBase_WidgetValidated::restoreAttributeValue(theValid);
+
DataPtr aData = myFeature->data();
AttributePtr anAttribute = myFeature->attribute(attributeID());