1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_WidgetBoolValue.h
4 // Created: 04 June 2014
5 // Author: Vitaly Smetannikov
7 #ifndef ModuleBase_WidgetBoolValue_H
8 #define ModuleBase_WidgetBoolValue_H
10 #include "ModuleBase.h"
11 #include "ModuleBase_ModelWidget.h"
13 class Config_WidgetAPI;
19 * Implementation of widget for boolean input (check box)
21 class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue : public ModuleBase_ModelWidget
26 /// \param theParent the parent object
27 /// \param theData the widget configuation. The attribute of the model widget is obtained from
28 /// \param theParentId is Id of a parent of the current attribute
29 ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData,
30 const std::string& theParentId);
32 virtual ~ModuleBase_WidgetBoolValue();
34 virtual bool restoreValue();
36 virtual QList<QWidget*> getControls() const;
38 QWidget* getControl() const;
41 /// Saves the internal parameters to the given feature
42 /// \return True in success
43 virtual bool storeValueCustom() const;
47 QCheckBox* myCheckBox;