YRadioButtonGroup Class Reference
Implementation of the RadioButtonGroup widget.
More...
#include <YRadioButtonGroup.h>
Inheritance diagram for YRadioButtonGroup:
List of all members.
Detailed Description
Implementation of the RadioButtonGroup widget.
RadioButtonGroup
- term child the child widget `RadioButtonGroup( `id( rb ), `VBox( ... ) ) RadioButton1.ycp Frame2.ycp
A RadioButtonGroup
is a container widget that has neither impact on the layout nor has it a graphical representation. It is just used to logically group RadioButtons together so the one-out-of-many selection strategy can be ensured.
Radio button groups may be nested. Looking bottom up we can say that a radio button belongs to the radio button group that is nearest to it. If you give the RadioButtonGroup
widget an id, you can use it to query and set which radio button is currently selected.
Member Typedef Documentation
Constructor & Destructor Documentation
YRadioButtonGroup::YRadioButtonGroup |
( |
const YWidgetOpt & |
opt |
) |
|
|
|
Creates a new and empty radio button group. |
YRadioButtonGroup::~YRadioButtonGroup |
( |
|
) |
[virtual] |
|
Member Function Documentation
void YRadioButtonGroup::addRadioButton |
( |
YRadioButton * |
button |
) |
[virtual] |
|
|
Implements the ui command changeWidget.
Reimplemented from YWidget. |
YRadioButton * YRadioButtonGroup::currentButton |
( |
|
) |
const [protected] |
|
|
Find the currently selected button |
bool YRadioButtonGroup::isRadioButtonGroup |
( |
|
) |
const [virtual] |
|
|
Returns true, since this is a radio button group
Reimplemented from YWidget. |
|
Implements the ui command queryWidget
Reimplemented from YWidget. |
void YRadioButtonGroup::removeRadioButton |
( |
YRadioButton * |
button |
) |
[virtual] |
|
|
Removes a radio button from the button group. If you overload this function ui specific, call YRadioButtonGroup::removeRadioButton() as well! Don't delete the removed radio button in this function! It's not ours. We just have a pointer to it. It's parent widget will deletes it when neccessary. |
bool YRadioButtonGroup::setCurrentButton |
( |
const YCPValue & |
id |
) |
[protected] |
|
|
Make another of the buttons currently selected |
void YRadioButtonGroup::uncheckOtherButtons |
( |
const YRadioButton * |
radiobutton |
) |
|
|
|
Unchecks all radio buttons except one. This method can be used by an actual ui ( for example ncurses ) in the implementation of setValue() of the Radiobutton |
virtual char* YRadioButtonGroup::widgetClass |
( |
|
) |
[inline, virtual] |
|
|
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YContainerWidget. |
Member Data Documentation
|
List of all RadioButtons contained in this group. The buttons do not _live_ here, so we don't delete them after use. |
The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by
1.4.6