X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IModule.cpp;h=29e89f3efff4863dffa23eccb418c231133f5a7a;hb=c24c2f94491145b9c2cbd0be6c6bc3d157bca9bb;hp=90bb8ede3ad73fa6cadf178f8d2a1d0e03b6e539;hpb=e11ae05578690f15d9da81d97cf979b9c8f536f4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IModule.cpp b/src/ModuleBase/ModuleBase_IModule.cpp index 90bb8ede3..29e89f3ef 100644 --- a/src/ModuleBase/ModuleBase_IModule.cpp +++ b/src/ModuleBase/ModuleBase_IModule.cpp @@ -78,7 +78,7 @@ const char* toString(ModelAPI_ExecState theExecState) #undef TO_STRING } -QString ModuleBase_IModule::getFeatureError(const FeaturePtr& theFeature) +QString ModuleBase_IModule::getFeatureError(const FeaturePtr& theFeature, const bool isCheckGUI) { QString anError; if (!theFeature.get() || !theFeature->data()->isValid() || theFeature->isAction()) @@ -184,11 +184,6 @@ bool ModuleBase_IModule::canRedo() const return aMgr->hasModuleDocument() && aMgr->canRedo() && !aMgr->isOperation(); } -bool ModuleBase_IModule::canCommitOperation() const -{ - return true; -} - void ModuleBase_IModule::onFeatureTriggered() { QAction* aCmd = dynamic_cast(sender()); @@ -228,7 +223,7 @@ bool ModuleBase_IModule::canActivateSelection(const ObjectPtr& theObject) const return !aFOperation || !aFOperation->hasObject(theObject); } -void ModuleBase_IModule::onOperationResumed(ModuleBase_Operation* theOperation) +void ModuleBase_IModule::operationResumed(ModuleBase_Operation* theOperation) { - emit operationResumed(theOperation); + emit resumed(theOperation); }