//! Returns the feature error if the current state of the feature in the module is not correct\r
//! If the feature is correct, it returns an empty value\r
//! \return string value\r
- virtual QString getFeatureError(const FeaturePtr& theFeature, const bool isCheckGUI = true);\r
+ virtual QString getFeatureError(const FeaturePtr& theFeature);\r
+\r
+ //! Returns the widget error, get it from the attribute validator and state of the widget\r
+ //! If the feature is correct, it returns an empty value\r
+ //! \return string value\r
+ virtual QString getWidgetError(ModuleBase_ModelWidget* theWidget);\r
\r
/// Returns list of granted operation indices\r
virtual void grantedOperationIds(ModuleBase_Operation* theOperation, QStringList& theIds) const;\r
/// \param thePreviousAttributeID an index of the previous active attribute\r
virtual bool processEnter(const std::string& thePreviousAttributeID) { return false; };\r
\r
+ /// Performs some GUI actions after an operation transaction is opened\r
+ /// Default realization is empty\r
+ virtual void beforeOperationStarted(ModuleBase_Operation* theOperation) {};\r
+\r
+ /// Performs some GUI actions before an operation transaction is stopped\r
+ /// Default realization is empty\r
+ virtual void beforeOperationStopped(ModuleBase_Operation* theOperation) {};\r
+\r
signals:\r
/// Signal which is emitted when operation is launched\r
void operationLaunched();\r