X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetBoolValue.h;h=9d0246c1156fa3b3043c85001e6706ca6b9d8ad2;hb=6f1da290c7a4db4432c28887ad9d4073c8d443cb;hp=8753c4cfd5ba91dca9377c8a4a465ce9d8d21253;hpb=aee13db814508b4899bf67f4530d4831c0ddc499;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetBoolValue.h b/src/ModuleBase/ModuleBase_WidgetBoolValue.h index 8753c4cfd..9d0246c11 100644 --- a/src/ModuleBase/ModuleBase_WidgetBoolValue.h +++ b/src/ModuleBase/ModuleBase_WidgetBoolValue.h @@ -10,23 +10,25 @@ class Config_WidgetAPI; class QWidget; -class QLabel; -class QDoubleSpinBox; class QCheckBox; -class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue: public ModuleBase_ModelWidget +class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue : public ModuleBase_ModelWidget { - Q_OBJECT -public: - ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData); +Q_OBJECT + public: + /// Constructor + /// \theParent the parent object + /// \theData the widget configuation. The attribute of the model widget is obtained from + ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData, + const std::string& theParentId); virtual ~ModuleBase_WidgetBoolValue(); /// Saves the internal parameters to the given feature - /// \param theFeature a model feature to be changed - virtual bool storeValue(FeaturePtr theFeature) const; + /// \param theObject a model feature to be changed + virtual bool storeValue() const; - virtual bool restoreValue(FeaturePtr theFeature); + virtual bool restoreValue(); /// Returns list of widget controls /// \return a control list @@ -36,10 +38,8 @@ public: /// \returns the widget QWidget* getControl() const; -private: - std::string myAttributeID; - + private: QCheckBox* myCheckBox; }; -#endif \ No newline at end of file +#endif