}
}
}
+ myOperationMgr->validateCurrentOperation();
}
//******************************************************
{
//std::set<ObjectPtr> aFeatures = theMsg->objects();
}
-
+
//******************************************************
void XGUI_Workshop::onOperationStarted()
{
showPropertyPanel();
QString aXmlRepr = aOperation->getDescription()->xmlRepresentation();
- ModuleBase_WidgetFactory aFactory = ModuleBase_WidgetFactory(aXmlRepr.toStdString(), myModuleConnector);
+ ModuleBase_WidgetFactory aFactory = ModuleBase_WidgetFactory(aXmlRepr.toStdString(),
+ myModuleConnector);
myPropertyPanel->cleanContent();
aFactory.createWidget(myPropertyPanel->contentWidget());
aCommands = salomeConnector()->commandList();
} else {
XGUI_MainMenu* aMenuBar = myMainWindow->menuObject();
- foreach (XGUI_Workbench* aWb, aMenuBar->workbenches()) {
- foreach(XGUI_Command* aCmd, aWb->features())
- aCommands.append(aCmd);
+ foreach(XGUI_Command* aCmd, aMenuBar->features()) {
+ aCommands.append(aCmd);
}
}
return aCommands;
myOperationMgr, SLOT(onWidgetActivated(ModuleBase_ModelWidget*)));
connect(myOperationMgr, SIGNAL(activateNextWidget(ModuleBase_ModelWidget*)),
myPropertyPanel, SLOT(onActivateNextWidget(ModuleBase_ModelWidget*)));
+ connect(myOperationMgr, SIGNAL(operationValidated(bool)),
+ myPropertyPanel, SLOT(setAcceptEnabled(bool)));
+
}
//******************************************************