libyui-qt  2.42.4
 All Classes Functions Variables
YQCheckBox Class Reference
Inheritance diagram for YQCheckBox:

Public Member Functions

 YQCheckBox (YWidget *parent, const std::string &label, bool checked)
 
virtual ~YQCheckBox ()
 
virtual YCheckBoxState value ()
 
virtual void setValue (YCheckBoxState state)
 
virtual void setLabel (const std::string &label)
 
virtual void setUseBoldFont (bool bold=true)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Detailed Description

Definition at line 32 of file YQCheckBox.h.

Constructor & Destructor Documentation

YQCheckBox::YQCheckBox ( YWidget *  parent,
const std::string &  label,
bool  checked 
)

Constructor.

Definition at line 41 of file YQCheckBox.cc.

YQCheckBox::~YQCheckBox ( )
virtual

Destructor.

Definition at line 56 of file YQCheckBox.cc.

Member Function Documentation

int YQCheckBox::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 129 of file YQCheckBox.cc.

int YQCheckBox::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 123 of file YQCheckBox.cc.

void YQCheckBox::setEnabled ( bool  enabled)
virtual

Set enabled / disabled state.

Reimplemented from YWidget.

Definition at line 116 of file YQCheckBox.cc.

bool YQCheckBox::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 141 of file YQCheckBox.cc.

void YQCheckBox::setLabel ( const std::string &  label)
virtual

Change the label (the text) on the RadioButton.

Reimplemented from YRadioButton.

Definition at line 99 of file YQCheckBox.cc.

void YQCheckBox::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 135 of file YQCheckBox.cc.

void YQCheckBox::setUseBoldFont ( bool  bold = true)
virtual

Use a bold font.

Reimplemented from YRadioButton.

Definition at line 106 of file YQCheckBox.cc.

void YQCheckBox::setValue ( YCheckBoxState  state)
virtual

Set the CheckBox value (on/off/don't care).

Reimplemented from YCheckBox.

Definition at line 77 of file YQCheckBox.cc.

YCheckBoxState YQCheckBox::value ( )
virtual

Get the current value:

YCheckBox_on CheckBox is checked YCheckBox_off CheckBox is unchecked

YCheckBox_dont_care tri-state: CheckBox is greyed out, neither checked nor unchecked

Reimplemented from YCheckBox.

Definition at line 63 of file YQCheckBox.cc.


The documentation for this class was generated from the following files: