X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetBoolValue.h;h=b100c4ffe4cd43b6886a42aeb93c75f12fb36372;hb=d481e13e400f2ea0e35c25884e73ccddaffd0f70;hp=cf41b6b89cb01d46e6947f83d4ed4bed12c86658;hpb=38afbd899a8645c83e17f2c24a17a2b7414911b4;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetBoolValue.h b/src/ModuleBase/ModuleBase_WidgetBoolValue.h index cf41b6b89..b100c4ffe 100644 --- a/src/ModuleBase/ModuleBase_WidgetBoolValue.h +++ b/src/ModuleBase/ModuleBase_WidgetBoolValue.h @@ -14,33 +14,36 @@ class Config_WidgetAPI; class QWidget; class QCheckBox; +/** +* \ingroup GUI +* Implementation of widget for boolean input (check box) +*/ class MODULEBASE_EXPORT ModuleBase_WidgetBoolValue : public ModuleBase_ModelWidget { Q_OBJECT public: /// Constructor - /// \theParent the parent object - /// \theData the widget configuation. The attribute of the model widget is obtained from + /// \param theParent the parent object + /// \param theData the widget configuation. The attribute of the model widget is obtained from + /// \param theParentId is Id of a parent of the current attribute ModuleBase_WidgetBoolValue(QWidget* theParent, const Config_WidgetAPI* theData, const std::string& theParentId); virtual ~ModuleBase_WidgetBoolValue(); - /// Saves the internal parameters to the given feature - /// \param theObject a model feature to be changed - virtual bool storeValue() const; + virtual QList getControls() const; - virtual bool restoreValue(); + virtual void setHighlighted(bool isHighlighted); - /// Returns list of widget controls - /// \return a control list - virtual QList getControls() const; +protected: + /// Saves the internal parameters to the given feature + /// \return True in success + virtual bool storeValueCustom() const; - /// Returns the internal parent wiget control, that can be shown anywhere - /// \returns the widget - QWidget* getControl() const; + virtual bool restoreValueCustom(); private: + /// The check box QCheckBox* myCheckBox; };