]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_IModule.cpp
Salome HOME
Arc problems fixing: 1. reentrant of the tangent arc should not fill center point...
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.cpp
index 942d9ec6584ef3a288b08f1746d3ee1238a7cd8f..fb7805fa68a793a792fa8a10c8cd3d1a97b5d5af 100644 (file)
@@ -69,7 +69,8 @@ void ModuleBase_IModule::launchModal(const QString& theCmdId)
 }
 
 
-void ModuleBase_IModule::launchOperation(const QString& theCmdId)
+void ModuleBase_IModule::launchOperation(const QString& theCmdId,
+                                         const bool isUpdatePropertyPanel)
 {
   if (!myWorkshop->canStartOperation(theCmdId))
     return;
@@ -80,18 +81,15 @@ void ModuleBase_IModule::launchOperation(const QString& theCmdId)
     ModuleBase_ISelection* aSelection = myWorkshop->selection();
     // Initialise operation with preliminary selection
     aFOperation->initSelection(aSelection, myWorkshop->viewer());
-    sendOperation(aFOperation);
+    sendOperation(aFOperation, isUpdatePropertyPanel);
   }
 }
 
 
-void ModuleBase_IModule::sendOperation(ModuleBase_Operation* theOperation)
+void ModuleBase_IModule::sendOperation(ModuleBase_Operation* theOperation,
+                                       const bool isUpdatePropertyPanel)
 {
-  static Events_ID aModuleEvent = Events_Loop::eventByName(EVENT_OPERATION_LAUNCHED);
-  std::shared_ptr<Config_PointerMessage> aMessage =
-      std::shared_ptr<Config_PointerMessage>(new Config_PointerMessage(aModuleEvent, this));
-  aMessage->setPointer(theOperation);
-  Events_Loop::loop()->send(aMessage);
+  workshop()->processLaunchOperation(theOperation, isUpdatePropertyPanel);
 }
 
 Handle(AIS_InteractiveObject) ModuleBase_IModule::createPresentation(const ResultPtr& theResult)