Salome HOME
Error label is added to solver
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetErrorLabel.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_WidgetErrorLabel.h
4 // Created:     03 Dec 2014
5 // Author:      Vitaly SMETANNIKOV
6
7 #ifndef ModuleBase_WidgetErrorLabel_H
8 #define ModuleBase_WidgetErrorLabel_H
9
10 #include "ModuleBase.h"
11 #include "ModuleBase_WidgetLabel.h"
12
13 class QLabel;
14
15 /**
16 * \ingroup GUI
17 * Implementation of model widget for a label with error message
18 */
19 class MODULEBASE_EXPORT ModuleBase_WidgetErrorLabel : public ModuleBase_WidgetLabel
20 {
21 Q_OBJECT
22  public:
23   /// Constructor
24   /// \param theParent the parent object
25   /// \param theData the widget configuation. The attribute of the model widget is obtained from
26   /// \param theParentId is Id of a parent of the current attribute
27   ModuleBase_WidgetErrorLabel(QWidget* theParent, const Config_WidgetAPI* theData,
28                             const std::string& theParentId);
29
30   virtual ~ModuleBase_WidgetErrorLabel();
31
32   virtual bool restoreValueCustom();
33
34 private:
35   QString myDefaultStyle;
36 };
37
38 #endif