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,
23 const std::string& theParentId);
25 virtual ~ModuleBase_WidgetBoolValue();
27 /// Saves the internal parameters to the given feature
28 /// \param theObject a model feature to be changed
29 virtual bool storeValue() const;
31 virtual bool restoreValue();
33 /// Returns list of widget controls
34 /// \return a control list
35 virtual QList<QWidget*> getControls() const;
37 /// Returns the internal parent wiget control, that can be shown anywhere
38 /// \returns the widget
39 QWidget* getControl() const;
42 QCheckBox* myCheckBox;