libyui
|
Public Member Functions | |
virtual | ~YRadioButtonGroup () |
virtual const char * | widgetClass () const |
YRadioButton * | currentButton () const |
YRadioButton * | value () const |
virtual void | addRadioButton (YRadioButton *radioButton) |
virtual void | removeRadioButton (YRadioButton *radioButton) |
void | uncheckOtherButtons (YRadioButton *radioButton) |
virtual bool | setProperty (const string &propertyName, const YPropertyValue &val) |
virtual YPropertyValue | getProperty (const std::string &propertyName) |
virtual const YPropertySet & | propertySet () |
Protected Member Functions | |
YRadioButtonGroup (YWidget *parent) | |
YRadioButtonListConstIterator | radioButtonsBegin () const |
YRadioButtonListConstIterator | radioButtonsEnd () const |
int | radioButtonsCount () const |
YRadioButtonGroup::YRadioButtonGroup | ( | YWidget * | parent | ) | [protected] |
Constructor.
YRadioButtonGroup::~YRadioButtonGroup | ( | ) | [virtual] |
Destructor.
void YRadioButtonGroup::addRadioButton | ( | YRadioButton * | radioButton | ) | [virtual] |
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.
YRadioButton * YRadioButtonGroup::currentButton | ( | ) | const |
Find the currently selected button.
virtual YPropertyValue YRadioButtonGroup::getProperty | ( | const std::string & | propertyName | ) | [virtual] |
Get a property. Reimplemented from YWidget.
This method may throw exceptions, for example
const YPropertySet & YRadioButtonGroup::propertySet | ( | ) | [virtual] |
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().
int YRadioButtonGroup::radioButtonsCount | ( | ) | const [protected] |
Return the number of RadioButtons in this button group.
YRadioButtonListConstIterator YRadioButtonGroup::radioButtonsEnd | ( | ) | const [protected] |
Return an iterator that points behind the last RadioButton of this button group.
void YRadioButtonGroup::removeRadioButton | ( | YRadioButton * | radioButton | ) | [virtual] |
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 );
bool YRadioButtonGroup::setProperty | ( | const string & | propertyName, |
const YPropertyValue & | val | ||
) | [virtual] |
Set a property. Reimplemented from YWidget.
This method may throw exceptions, for example
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.
void YRadioButtonGroup::uncheckOtherButtons | ( | YRadioButton * | radioButton | ) |
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().
YRadioButton* YRadioButtonGroup::value | ( | ) | const [inline] |
The same as currentButton() above for convenience.
virtual const char* YRadioButtonGroup::widgetClass | ( | ) | const [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.