- ModuleBase_Operation* anOperation = createOperation(aFeatureId);
- anOperation->setFeature(theFeature);
- sendOperation(anOperation);
+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
+ (createOperation(aFeatureId));
+ if (aFOperation) {
+ aFOperation->setFeature(theFeature);
+ sendOperation(aFOperation);
+ }
+}
+
+bool ModuleBase_IModule::canActivateSelection(const ObjectPtr& theObject) const
+{
+ ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
+ (myWorkshop->currentOperation());
+ return !aFOperation || !aFOperation->hasObject(theObject);
+}
+
+void ModuleBase_IModule::operationResumed(ModuleBase_Operation* theOperation)
+{
+ emit resumed(theOperation);