#include <YRadioButtonGroup.h>
A group of YRadioButton widgets.
◆ YRadioButtonGroup()
YRadioButtonGroup::YRadioButtonGroup |
( |
YWidget * | parent | ) |
|
|
protected |
◆ ~YRadioButtonGroup()
YRadioButtonGroup::~YRadioButtonGroup |
( |
| ) |
|
|
virtual |
◆ addRadioButton()
Add a RadioButton to this button group. RadioButtons are required to call this in their constructor.
Derived classes are free to overload this, but they should call this base class function in the overloaded function.
◆ currentButton()
Find the currently selected button.
◆ getProperty()
Get a property. Reimplemented from YWidget.
This method may throw exceptions, for example
- if there is no property with that name
Reimplemented from YWidget.
◆ propertySet()
Return this class's property set. This also initializes the property set upon the first call.
Reimplemented from YWidget.
Reimplemented from YWidget.
◆ radioButtonsBegin()
YRadioButtonListConstIterator YRadioButtonGroup::radioButtonsBegin |
( |
| ) |
const |
|
protected |
Return an iterator that points to the first RadioButton of this button group.
Note that RadioButtons in this group may be direct or indirect children of the group, so don't confuse this with YWidget::widgetsBegin().
◆ radioButtonsCount()
int YRadioButtonGroup::radioButtonsCount |
( |
| ) |
const |
|
protected |
Return the number of RadioButtons in this button group.
◆ radioButtonsEnd()
YRadioButtonListConstIterator YRadioButtonGroup::radioButtonsEnd |
( |
| ) |
const |
|
protected |
Return an iterator that points behind the last RadioButton of this button group.
◆ removeRadioButton()
Remove a RadioButton from this button group. RadioButtons are required to call this in their destructor, but only if the button group is not also in the process of being destroyed (otherwise there may be race conditions with child widgets already destroyed):
if ( ! buttonGroup()->beingDestroyed )
buttonGroup()->removeRadioButton( this );
◆ setProperty()
Set a property. Reimplemented from YWidget.
This method may throw exceptions, for example
- if there is no property with that name
- if the expected type and the type mismatch
- if the value is out of range
This function returns 'true' if the value was successfully set and 'false' if that value requires special handling (not in error cases: those are covered by exceptions).
Reimplemented from YWidget.
◆ uncheckOtherButtons()
Unchecks all radio buttons except one. This method can be used by a concrete UI (the Qt UI or the NCurses UI) in the implementation of YRadioButton::setValue().
◆ value()
◆ widgetClass()
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui/src/YRadioButtonGroup.h
- /builddir/build/BUILD/libyui-4.6.0/libyui/src/YRadioButtonGroup.cc