#include <ModuleBase_WidgetFeature.h>
+#include <ModuleBase_WidgetValueFeature.h>
+#include <ModuleBase_WidgetValue.h>
+
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
{
}
+bool ModuleBase_WidgetFeature::setValue(ModuleBase_WidgetValue* theValue)
+{
+ bool isDone = false;
+
+ if (theValue) {
+ ModuleBase_WidgetValueFeature* aFeatureValue =
+ dynamic_cast<ModuleBase_WidgetValueFeature*>(theValue);
+ if (aFeatureValue)
+ isDone = setFeature(aFeatureValue->feature());
+ }
+ return isDone;
+}
+
bool ModuleBase_WidgetFeature::setFeature(const FeaturePtr& theFeature)
{
if (!theFeature || !myFeatureKinds.contains(theFeature->getKind().c_str()))
ModuleBase_WidgetFeature* that = (ModuleBase_WidgetFeature*) this;
aRef->setFeature(myFeature);
theFeature->execute();
- Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED));
+ Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
return true;
}