1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_WidgetLabel.h
4 // Created: 03 Dec 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef ModuleBase_WidgetLabel_H
8 #define ModuleBase_WidgetLabel_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
17 * Implementation of model widget for a label control
19 class MODULEBASE_EXPORT ModuleBase_WidgetLabel : 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_WidgetLabel(QWidget* theParent, const Config_WidgetAPI* theData);
28 virtual ~ModuleBase_WidgetLabel();
30 /// Defines if it is supported to set the value in this widget
31 /// It returns false because this is an info widget
32 virtual bool canAcceptFocus() const { return false; };
34 virtual bool restoreValueCustom();
36 virtual QList<QWidget*> getControls() const;
38 /// This control doesn't accept focus
39 virtual bool focusTo();
42 /// Saves the internal parameters to the given feature
43 /// \return True in success
44 virtual bool storeValueCustom()