X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetChoice.h;h=8e25ee1f935cee0b94ea01007976b923b3105328;hb=aebde79eb2410f5e7699ee44254173b442727df7;hp=f5b9ce5468d3a11f0b20a06e622848445d92bb72;hpb=b25922145a97fccf8d2613d0ef52a283d3ce0987;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetChoice.h b/src/ModuleBase/ModuleBase_WidgetChoice.h index f5b9ce546..8e25ee1f9 100644 --- a/src/ModuleBase/ModuleBase_WidgetChoice.h +++ b/src/ModuleBase/ModuleBase_WidgetChoice.h @@ -13,6 +13,7 @@ class QWidget; class QLabel; class QComboBox; +class QButtonGroup; /** * \ingroup GUI @@ -25,6 +26,12 @@ class QComboBox; * string_list="Cut Fuse Common" * /> * \endcode +* Aditionally can be used: +* A key "widget_type". It can have values "combobox" or "radiobuttons". +* By default it uses "combobox". +* A key "buttons_dir" which is applicable only for "radiobuttons" mode. +* It defines direction of radiobuttons layout. it can be "vertical" or "horizontal" +* Default value is "vertical" */ class MODULEBASE_EXPORT ModuleBase_WidgetChoice : public ModuleBase_ModelWidget { @@ -39,8 +46,6 @@ Q_OBJECT virtual ~ModuleBase_WidgetChoice(); - virtual bool restoreValue(); - virtual bool focusTo(); /// Returns list of widget controls @@ -50,7 +55,9 @@ Q_OBJECT protected: /// Saves the internal parameters to the given feature /// \return True in success - virtual bool storeValue() const; + virtual bool storeValueCustom() const; + + virtual bool restoreValueCustom(); private slots: /// Slot called on combo box index change @@ -62,6 +69,7 @@ private: /// The control QComboBox* myCombo; + QButtonGroup* myButtons; }; #endif