+
+private:
+ /// 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;
+
+private:
+ ModuleBase_IWorkshop* myWorkshop; /// workshop
+ QDialog* myErrorDialog; /// contains the error message
+ QLabel* myErrorLabel; /// contains an error information
+ QString myAcceptToolTip; /// cached tool tip value for enabled Accept action
+ QString myAcceptAllToolTip; /// cached tool tip value for enabled AcceptAll action