+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
+ (currentOperation());
+ if (aFOperation) {
+ workshop()->errorMgr()->updateActions(aFOperation->feature());
+ }
+ //emit validationStateChanged(theEnabled);
+}
+
+void XGUI_OperationMgr::updateApplyOfOperations(ModuleBase_Operation* theOperation)
+{
+ XGUI_ErrorMgr* anErrorMgr = workshop()->errorMgr();
+ if (theOperation) {
+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
+ if (aFOperation)
+ anErrorMgr->updateAcceptAllAction(aFOperation->feature());
+ //emit nestedStateChanged(theOperation->getDescription()->operationId().toStdString(),
+ // theOperation->isValid());
+ }
+ else {
+ foreach(ModuleBase_Operation* anOperation, myOperations) {
+ if (anOperation)
+ updateApplyOfOperations(anOperation);
+ //emit nestedStateChanged(anOperation->getDescription()->operationId().toStdString(),
+ // anOperation->isValid());
+ }
+ }