class QWidget;
class QLabel;
class QComboBox;
+class QButtonGroup;
/**
* \ingroup GUI
* 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
{
virtual ~ModuleBase_WidgetChoice();
- virtual bool restoreValue();
-
virtual bool focusTo();
/// Returns list of widget controls
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
/// The control
QComboBox* myCombo;
+ QButtonGroup* myButtons;
};
#endif