-/*
- * Makes a signal/slot connections between Property Panel
- * and given operation. The given operation becomes a
- * current operation and previous operation if exists
- */
-void XGUI_Workshop::connectWithOperation(ModuleBase_Operation* theOperation)
-{
- QAction* aCommand = 0;
- if (isSalomeMode()) {
- aCommand = salomeConnector()->command(theOperation->getDescription()->operationId());
- } else {
- AppElements_MainMenu* aMenu = myMainWindow->menuObject();
- FeaturePtr aFeature = theOperation->feature();
- if(aFeature)
- aCommand = aMenu->feature(QString::fromStdString(aFeature->getKind()));
- }
- //Abort operation on uncheck the command
- if (aCommand) {
- connect(aCommand, SIGNAL(triggered(bool)), theOperation, SLOT(setRunning(bool)));
- }
-}
-