1 // File: ModuleBase_WidgetBoolValue.h
2 // Created: 04 June 2014
3 // Author: Vitaly Smetannikov
5 #ifndef ModuleBase_WidgetBoolValue_H
6 #define ModuleBase_WidgetBoolValue_H
8 #include "ModuleBase.h"
9 #include "ModuleBase_ModelWidget.h"
11 class Config_WidgetAPI;
15 class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue: public ModuleBase_ModelWidget
20 /// \theParent the parent object
21 /// \theData the widget configuation. The attribute of the model widget is obtained from
22 ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData);
24 virtual ~ModuleBase_WidgetBoolValue();
26 /// Saves the internal parameters to the given feature
27 /// \param theFeature a model feature to be changed
28 virtual bool storeValue(FeaturePtr theFeature) const;
30 virtual bool restoreValue(FeaturePtr theFeature);
32 /// Returns list of widget controls
33 /// \return a control list
34 virtual QList<QWidget*> getControls() const;
36 /// Returns the internal parent wiget control, that can be shown anywhere
37 /// \returns the widget
38 QWidget* getControl() const;
41 QCheckBox* myCheckBox;