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"
15 class MODULEBASE_EXPORT ModuleBase_WidgetLabel : public ModuleBase_ModelWidget
19 ModuleBase_WidgetLabel(QWidget* theParent, const Config_WidgetAPI* theData,
20 const std::string& theParentId);
22 virtual ~ModuleBase_WidgetLabel();
24 /// Defines if it is supported to set the value in this widget
25 /// It returns false because this is an info widget
26 virtual bool canSetValue() const { return false; };
28 virtual bool storeValue() const
33 virtual bool restoreValue()
38 virtual QList<QWidget*> getControls() const;
40 QWidget* getControl() const;
42 /// This control doesn't accept focus
43 virtual bool focusTo() { return false; }