X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ModuleConnector.cpp;h=ee5f029d8445a4dd698c781be9e7555f00ae9bc0;hb=13d3f0d8b46a06931cbe8620b8563049eff4a9f6;hp=de204ffb420f67a6dd1ff504ac1207ede78e6dd2;hpb=dfb689721a73f8b65b0f61b593ef6421409bbf7b;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ModuleConnector.cpp b/src/XGUI/XGUI_ModuleConnector.cpp index de204ffb4..ee5f029d8 100644 --- a/src/XGUI/XGUI_ModuleConnector.cpp +++ b/src/XGUI/XGUI_ModuleConnector.cpp @@ -100,8 +100,6 @@ ObjectPtr XGUI_ModuleConnector::findPresentedObject(const AISObjectPtr& theAIS) { XGUI_Displayer* aDisp = myWorkshop->displayer(); ObjectPtr anObject = aDisp->getObject(theAIS); - if (!anObject.get()) - anObject = module()->findPresentedObject(theAIS); return anObject; } @@ -120,3 +118,17 @@ bool XGUI_ModuleConnector::canStartOperation(QString theId) return myWorkshop->operationMgr()->canStartOperation(theId); } +ModuleBase_Operation* XGUI_ModuleConnector::findStartedOperation(const QString& theId) +{ + return myWorkshop->operationMgr()->findOperation(theId); +} + +bool XGUI_ModuleConnector::canStopOperation(ModuleBase_Operation* theOperation) +{ + return myWorkshop->operationMgr()->canStopOperation(theOperation); +} + +void XGUI_ModuleConnector::abortOperation(ModuleBase_Operation* theOperation) +{ + myWorkshop->operationMgr()->abortOperation(theOperation); +}