1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_WidgetLabelValue.h
4 // Created: 30 Nov 2016
5 // Author: Natalia ERMOLAEVA
7 #ifndef ModuleBase_WidgetLabelValue_H
8 #define ModuleBase_WidgetLabelValue_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
13 class ModuleBase_LabelValue;
17 * Implementation of model widget for a label control
19 class MODULEBASE_EXPORT ModuleBase_WidgetLabelValue : public ModuleBase_ModelWidget
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);
28 virtual ~ModuleBase_WidgetLabelValue();
30 virtual bool restoreValueCustom();
32 virtual QList<QWidget*> getControls() const;
35 /// Saves the internal parameters to the given feature
36 /// \return True in success
37 virtual bool storeValueCustom();
39 //! Switch On/Off highlighting of the widget
40 virtual void setHighlighted(bool isHighlighted) {}
43 ModuleBase_LabelValue* myLabel; ///< A label control