#include <YCheckBox.h>
Inheritance diagram for YCheckBox:
Public Member Functions | |
YCheckBox (const YWidgetOpt &opt, const YCPString &label) | |
virtual char * | widgetClass () |
YCPValue | changeWidget (const YCPSymbol &property, const YCPValue &newvalue) |
YCPValue | queryWidget (const YCPSymbol &property) |
virtual void | setValue (const YCPValue &checked)=0 |
virtual YCPValue | getValue ()=0 |
virtual void | setLabel (const YCPString &label) |
YCPString | getLabel () |
const char * | shortcutProperty () |
Protected Attributes | |
YCPString | label |
Private Member Functions | |
virtual void | saveUserInput (YMacroRecorder *macroRecorder) |
CheckBox
A checkbox widget has two states: Checked and not checked. It returns no user input but you can query and change its state via the Value
property.
|
Constructor |
|
Implements the ui command changeWidget. Reimplemented from YWidget. |
|
Get the current check box label. 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. |
|
Returns whether the checkbox is checked. This may return 'true' or 'false' or 'nil' for a tristate check box. |
|
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 check box label. Overload this, but call YCheckBox::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. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YWidget. |
|
The CheckBox label |