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 () |
YQCheckBox::YQCheckBox | ( | YWidget * | parent, |
const std::string & | label, | ||
bool | checked ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
|
virtual |
Set enabled / disabled state.
Reimplemented from YWidget.
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
|
virtual |
Change the label (the text) on the RadioButton.
Reimplemented from YRadioButton.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
|
virtual |
Use a bold font.
Reimplemented from YRadioButton.
|
virtual |
Set the CheckBox value (on/off/don't care).
Reimplemented from YCheckBox.
|
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.