- /// Returns the feature error message
- /// \param theFeature a feature
- /// \return the error message
- QString getFeatureError(const FeaturePtr& theFeature) const;
+ /// It disables the action if the error message is not empty
+ /// The message is set to the header tool tip.
+ /// \param theAction an action to be changed
+ /// \param theError an error state
+ void updateActionState(QAction* theAction, const QString& theError);
+
+ /// It updates the tool tip of the widget controls according to the widget error
+ /// \param theWidget a widget
+ /// \param theError an error state
+ void updateToolTip(ModuleBase_ModelWidget* theWidget, const QString& theError);
+
+ /// Returns casted workshop
+ XGUI_Workshop* workshop() const;
+
+ /// Returns an active widget of the current operation
+ /// \return the widget or zero
+ ModuleBase_ModelWidget* activeWidget() const;