]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Implementation of mechanism of grouping of messages
authornds <natalia.donis@opencascade.com>
Thu, 22 May 2014 13:14:56 +0000 (17:14 +0400)
committernds <natalia.donis@opencascade.com>
Thu, 22 May 2014 13:14:56 +0000 (17:14 +0400)
flush on to the property panel value change

src/ModuleBase/ModuleBase_Operation.cpp
src/ModuleBase/ModuleBase_WidgetPoint2D.cpp

index 313ad4d9b39f39a57e2952bf38f10cefd1c3d083..a513205e17f29df06e41ea74e03e741b441eb308 100644 (file)
@@ -50,6 +50,7 @@ void ModuleBase_Operation::storeReal(double theValue)
   boost::shared_ptr<ModelAPI_Data> aData = myFeature->data();
   boost::shared_ptr<ModelAPI_AttributeDouble> aReal = aData->real(anId.toStdString());
   aReal->setValue(theValue);
+  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED));
 }
 
 void ModuleBase_Operation::storeCustomValue()
index d0ce1b11e50e5d7266f83a467664d6049494a1a0..4d99d01be7fccfd41897cc5c04ea5d594e8f1548 100644 (file)
@@ -6,6 +6,9 @@
 
 #include <Config_Keywords.h>
 
+#include <Events_Loop.h>
+#include <Model_Events.h>
+
 #include <ModelAPI_Feature.h>
 #include <ModelAPI_Data.h>
 #include <GeomDataAPI_Point2D.h>
@@ -68,6 +71,8 @@ bool ModuleBase_WidgetPoint2D::storeValue(boost::shared_ptr<ModelAPI_Feature> th
 
   bool isBlocked = this->blockSignals(true);
   aPoint->setValue(myXSpin->value(), myYSpin->value());
+  Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_FEATURE_UPDATED));
+
   this->blockSignals(isBlocked);
   return true;
 }