1 // File: ModuleBase_WidgetLabel.h
2 // Created: 03 Dec 2014
3 // Author: Vitaly SMETANNIKOV
5 #ifndef ModuleBase_WidgetLabel_H
6 #define ModuleBase_WidgetLabel_H
8 #include "ModuleBase.h"
9 #include "ModuleBase_ModelWidget.h"
13 class MODULEBASE_EXPORT ModuleBase_WidgetLabel : public ModuleBase_ModelWidget
17 ModuleBase_WidgetLabel(QWidget* theParent, const Config_WidgetAPI* theData,
18 const std::string& theParentId);
20 virtual ~ModuleBase_WidgetLabel();
22 /// Defines if it is supported to set the value in this widget
23 /// It returns false because this is an info widget
24 virtual bool canSetValue() const { return false; };
26 virtual bool storeValue() const
31 virtual bool restoreValue()
36 virtual QList<QWidget*> getControls() const;
38 QWidget* getControl() const;
40 /// This control doesn't accept focus
41 virtual bool focusTo() { return false; }