}
-void ModuleBase_IModule::launchOperation(const QString& theCmdId)
+void ModuleBase_IModule::launchOperation(const QString& theCmdId,
+ const bool isUpdatePropertyPanel)
{
if (!myWorkshop->canStartOperation(theCmdId))
return;
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)