+bool XGUI_OperationMgr::isGrantedOperation(ModuleBase_Operation* theOperation)
+{
+ bool isGranted = false;
+
+ QListIterator<ModuleBase_Operation*> anIt(myOperations);
+ anIt.toBack();
+ ModuleBase_Operation* aPreviousOperation = 0;
+ while (anIt.hasPrevious()) {
+ ModuleBase_Operation* anOp = anIt.previous();
+ if (anOp == theOperation) {
+ if (anIt.hasPrevious())
+ aPreviousOperation = anIt.previous();
+ break;
+ }
+ }
+ if (aPreviousOperation)
+ isGranted = aPreviousOperation->isGranted(theOperation->id());
+
+ return isGranted;
+}
+
+bool XGUI_OperationMgr::canStartOperation(const QString& theId, const bool isAdditionallyGranted)