#include <YRadioButton.h>
Inheritance diagram for YRadioButton:
Public Member Functions | |
YRadioButton (const YWidgetOpt &opt, const YCPString &label, YRadioButtonGroup *rbg) | |
virtual char * | widgetClass () |
virtual | ~YRadioButton () |
YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
YCPValue | queryWidget (const YCPSymbol &property) |
virtual void | setValue (const YCPBoolean &checked)=0 |
virtual YCPBoolean | getValue ()=0 |
virtual void | setLabel (const YCPString &label) |
YCPString | getLabel () |
void | buttonGroupIsDead () |
YRadioButtonGroup * | buttonGroup () |
const char * | shortcutProperty () |
const char * | userInputProperty () |
Protected Attributes | |
YCPString | label |
YRadioButtonGroup * | radiobuttongroup |
Private Member Functions | |
virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
RadioButton
A radio button is not usefull alone. Radio buttons are group such that the user can select one radio button of a group. It is much like a selection box, but radio buttons can be dispersed over the dialog. Radio buttons must be contained in a RadioButtonGroup
.
|
Creates a new text entry with a label and an initial text. Enters it into the radio button group rbg. |
|
Cleans up. Removes the button from the radio button group |
|
Get a pointer to the radio button group this button belongs to. |
|
This function is called from YRadioButtonGroup~YRadioButtonGroup and tells that the pointer to the radiobuttongroup is not longer valid. |
|
Implements the ui command changeWidget. Reimplemented from YWidget. |
|
Get the current label of the text entry. This method cannot be overidden. The value of the label cannot be changed other than by calling setLabel, i.e. not by the ui. Therefore setLabel stores the current label in label. |
|
get the text currently entered in the text entry |
|
Implements the ui command queryWidget Reimplemented from YWidget. |
|
Save the widget's user input to a macro recorder. Intentionally declared as "private" so all macro recording internals are handled by the abstract libyui level, not by a specific UI. Reimplemented from YWidget. |
|
change the label of the text entry. Overload this, but call YRadioButton::setLabel at the end of your own function. |
|
Set the text in the entry to a new value |
|
The name of the widget property that holds the keyboard shortcut. Inherited from YWidget. Reimplemented from YWidget. |
|
The name of the widget property that will return user input. Inherited from YWidget. Reimplemented from YWidget. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
The CheckBox label |
|
The radio button group this button belongs to |