Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQCheckBox Class Reference

#include <YQCheckBox.h>

Inheritance diagram for YQCheckBox:

YCheckBox YWidget List of all members.

Public Member Functions

 YQCheckBox (QWidget *parent, const YWidgetOpt &opt, const YCPString &label, bool initiallyChecked)
void setEnabling (bool enabled)
long nicesize (YUIDimension dim)
void setSize (long newWidth, long newHeight)
void setValue (const YCPValue &checked)
YCPValue getValue ()
void setLabel (const YCPString &label)
virtual bool setKeyboardFocus ()
bool isTristate ()
void setTristate (bool tristate)

Protected Attributes

QCheckBox * _qt_checkbox
bool _dont_care

Private Slots

void stateChanged (int newState)

Constructor & Destructor Documentation

YQCheckBox::YQCheckBox QWidget *  parent,
const YWidgetOpt opt,
const YCPString label,
bool  initiallyChecked
 

Constructor.


Member Function Documentation

YCPValue YQCheckBox::getValue  )  [virtual]
 

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

Implements YCheckBox.

bool YQCheckBox::isTristate  ) 
 

Returns whether tristate condition is set ( i.e. neither on nor off )

long YQCheckBox::nicesize YUIDimension  dim  )  [virtual]
 

Minimum size the widget should have to make it look and feel nice.

Implements YWidget.

void YQCheckBox::setEnabling bool  enabled  )  [virtual]
 

Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input.

Reimplemented from YWidget.

bool YQCheckBox::setKeyboardFocus  )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

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

Changes the label of the text entry.

Reimplemented from YCheckBox.

void YQCheckBox::setSize long  newWidth,
long  newHeight
[virtual]
 

Sets the new size of the widget.

Reimplemented from YWidget.

void YQCheckBox::setTristate bool  tristate  ) 
 

Set tristate condition

void YQCheckBox::setValue const YCPValue checked  )  [virtual]
 

Sets the checked-state of the checkbox

Implements YCheckBox.

void YQCheckBox::stateChanged int  newState  )  [private, slot]
 

Triggered when the on/off status is changed


Member Data Documentation

bool YQCheckBox::_dont_care [protected]
 

Flag that indicates tristate condition: neither on nor off

QCheckBox* YQCheckBox::_qt_checkbox [protected]
 

Pointer to the qt widget that actually does the job


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:03 2005 for yast2-qt by  doxygen 1.4.4