X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IModule.h;h=acd6b49acef50c0332d35978bfdaf2c63b38693b;hb=39da05659a620750e11c2778a45be6f2dcb17308;hp=de02c0dfe5bf972adddf366c515562960c1a3cfe;hpb=42985955d89fa845790a7e38609f5b6838285147;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IModule.h b/src/ModuleBase/ModuleBase_IModule.h index de02c0dfe..acd6b49ac 100755 --- a/src/ModuleBase/ModuleBase_IModule.h +++ b/src/ModuleBase/ModuleBase_IModule.h @@ -189,7 +189,12 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject //! Returns the feature error if the current state of the feature in the module is not correct //! If the feature is correct, it returns an empty value //! \return string value - virtual QString getFeatureError(const FeaturePtr& theFeature, const bool isCheckGUI = true); + virtual QString getFeatureError(const FeaturePtr& theFeature); + + //! Returns the widget error, get it from the attribute validator and state of the widget + //! If the feature is correct, it returns an empty value + //! \return string value + virtual QString getWidgetError(ModuleBase_ModelWidget* theWidget); /// Returns list of granted operation indices virtual void grantedOperationIds(ModuleBase_Operation* theOperation, QStringList& theIds) const; @@ -207,6 +212,14 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject /// \param thePreviousAttributeID an index of the previous active attribute virtual bool processEnter(const std::string& thePreviousAttributeID) { return false; }; + /// Performs some GUI actions after an operation transaction is opened + /// Default realization is empty + virtual void beforeOperationStarted(ModuleBase_Operation* theOperation) {}; + + /// Performs some GUI actions before an operation transaction is stopped + /// Default realization is empty + virtual void beforeOperationStopped(ModuleBase_Operation* theOperation) {}; + signals: /// Signal which is emitted when operation is launched void operationLaunched();