Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YCheckBox Class Reference

Implementation of the CheckBox widget. More...

#include <YCheckBox.h>

Inheritance diagram for YCheckBox:

YWidget List of all members.

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)

Detailed Description

Implementation of the CheckBox widget.

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 & Destructor Documentation

YCheckBox::YCheckBox const YWidgetOpt opt,
const YCPString label
 

Constructor


Member Function Documentation

YCPValue YCheckBox::changeWidget const YCPSymbol property,
const YCPValue newvalue
[virtual]
 

Implements the ui command changeWidget.

Reimplemented from YWidget.

YCPString YCheckBox::getLabel  ) 
 

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.

virtual YCPValue YCheckBox::getValue  )  [pure virtual]
 

Returns whether the checkbox is checked. This may return 'true' or 'false' or 'nil' for a tristate check box.

YCPValue YCheckBox::queryWidget const YCPSymbol property  )  [virtual]
 

Implements the ui command queryWidget

Reimplemented from YWidget.

void YCheckBox::saveUserInput YMacroRecorder macroRecorder  )  [private, virtual]
 

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.

void YCheckBox::setLabel const YCPString label  )  [virtual]
 

Change the check box label. Overload this, but call YCheckBox::setLabel at the end of your own function.

virtual void YCheckBox::setValue const YCPValue checked  )  [pure virtual]
 

Set the text in the entry to a new value

const char* YCheckBox::shortcutProperty  )  [inline, virtual]
 

The name of the widget property that holds the keyboard shortcut. Inherited from YWidget.

Reimplemented from YWidget.

virtual char* YCheckBox::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.


Member Data Documentation

YCPString YCheckBox::label [protected]
 

The CheckBox label


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6