1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
24 #include "YCheckBox.h"
29 class YQCheckBox : public Q3GroupBox, public YCheckBox
38 YQCheckBox( YWidget * parent,
45 virtual ~YQCheckBox();
48 * Get the current value:
50 * YCheckBox_on CheckBox is checked
51 * YCheckBox_off CheckBox is unchecked
53 * YCheckBox_dont_care tri-state: CheckBox is greyed out,
54 * neither checked nor unchecked
56 * Reimplemented from YCheckBox.
58 virtual YCheckBoxState value();
61 * Set the CheckBox value (on/off/don't care).
63 * Reimplemented from YCheckBox.
65 virtual void setValue( YCheckBoxState state );
68 * Change the label (the text) on the RadioButton.
70 * Reimplemented from YRadioButton.
72 virtual void setLabel( const string & label );
77 * Reimplemented from YRadioButton.
79 virtual void setUseBoldFont( bool bold = true );
82 * Set enabled / disabled state.
84 * Reimplemented from YWidget.
86 virtual void setEnabled( bool enabled );
89 * Preferred width of the widget.
91 * Reimplemented from YWidget.
93 virtual int preferredWidth();
96 * Preferred height of the widget.
98 * Reimplemented from YWidget.
100 virtual int preferredHeight();
103 * Set the new size of the widget.
105 * Reimplemented from YWidget.
107 virtual void setSize( int newWidth, int newHeight );
110 * Accept the keyboard focus.
112 * Reimplemented from YWidget.
114 virtual bool setKeyboardFocus();
120 * Triggered when the on/off status is changed
122 void stateChanged ( int newState );
127 QCheckBox * _qt_checkBox;
130 #endif // YQCheckBox_h