Salome HOME
Merge branch 'Dev_0.6' of newgeom:newgeom into Dev_0.6
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetLabel.h
1 // File:        ModuleBase_WidgetLabel.h
2 // Created:     03 Dec 2014
3 // Author:      Vitaly SMETANNIKOV
4
5 #ifndef ModuleBase_WidgetLabel_H
6 #define ModuleBase_WidgetLabel_H
7
8 #include "ModuleBase.h"
9 #include "ModuleBase_ModelWidget.h"
10
11 class QLabel;
12
13 class MODULEBASE_EXPORT ModuleBase_WidgetLabel : public ModuleBase_ModelWidget
14 {
15 Q_OBJECT
16  public:
17   ModuleBase_WidgetLabel(QWidget* theParent, const Config_WidgetAPI* theData,
18                             const std::string& theParentId);
19
20   virtual ~ModuleBase_WidgetLabel();
21
22   virtual bool storeValue() const
23   {
24     return true;
25   }
26
27   virtual bool restoreValue()
28   {
29     return true;
30   }
31
32   virtual QList<QWidget*> getControls() const;
33
34   QWidget* getControl() const;
35
36   /// This control doesn't accept focus
37   virtual bool focusTo() { return false; }
38
39 private:
40   QLabel* myLabel;
41 };
42
43 #endif