libyui-qt
Loading...
Searching...
No Matches
YQCheckBox Class Reference
Inheritance diagram for YQCheckBox:
Collaboration 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 ()

Constructor & Destructor Documentation

◆ YQCheckBox()

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

Constructor.

◆ ~YQCheckBox()

YQCheckBox::~YQCheckBox ( )
virtual

Destructor.

Member Function Documentation

◆ preferredHeight()

int YQCheckBox::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

◆ preferredWidth()

int YQCheckBox::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

◆ setEnabled()

void YQCheckBox::setEnabled ( bool enabled)
virtual

Set enabled / disabled state.

Reimplemented from YWidget.

◆ setKeyboardFocus()

bool YQCheckBox::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

◆ setLabel()

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

Change the label (the text) on the RadioButton.

Reimplemented from YRadioButton.

◆ setSize()

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

Set the new size of the widget.

Reimplemented from YWidget.

◆ setUseBoldFont()

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

Use a bold font.

Reimplemented from YRadioButton.

◆ setValue()

void YQCheckBox::setValue ( YCheckBoxState state)
virtual

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

Reimplemented from YCheckBox.

◆ value()

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.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt/src/YQCheckBox.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-qt/src/YQCheckBox.cc