Salome HOME
Deleted check after build for transformations.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetLabelValue.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_WidgetLabelValue.h
4 // Created:     30 Nov 2016
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef ModuleBase_WidgetLabelValue_H
8 #define ModuleBase_WidgetLabelValue_H
9
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
12
13 class ModuleBase_LabelValue;
14
15 /**
16 * \ingroup GUI
17 * Implementation of model widget for a label control
18 */
19 class MODULEBASE_EXPORT ModuleBase_WidgetLabelValue : public ModuleBase_ModelWidget
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   ModuleBase_WidgetLabelValue(QWidget* theParent, const Config_WidgetAPI* theData);
27
28   virtual ~ModuleBase_WidgetLabelValue();
29
30   virtual bool restoreValueCustom();
31
32   virtual QList<QWidget*> getControls() const;
33
34 protected:
35   /// Saves the internal parameters to the given feature
36   /// \return True in success
37   virtual bool storeValueCustom();
38
39   //! Switch On/Off highlighting of the widget
40   virtual void setHighlighted(bool isHighlighted) {}
41
42 protected:
43   ModuleBase_LabelValue* myLabel;  ///< A label control
44 };
45
46 #endif