1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQRadioButton_h
21 #define YQRadioButton_h
23 #include <q3groupbox.h>
24 #include "YRadioButton.h"
32 class YQRadioButton : public Q3GroupBox, public YRadioButton
40 YQRadioButton( YWidget * parent,
45 * Return the "checked" state of the RadioButton.
47 * Reimplemented from YRadioButton.
52 * Set the "checked" state of the RadioButton.
54 * Reimplemented from YRadioButton.
56 virtual void setValue( bool checked );
59 * Change the label (the text) on the RadioButton.
61 * Reimplemented from YRadioButton.
63 virtual void setLabel( const string & label );
68 * Reimplemented from YRadioButton.
70 virtual void setUseBoldFont( bool bold = true );
73 * Set enabled / disabled state.
75 * Reimplemented from YWidget.
77 virtual void setEnabled( bool enabled );
80 * Preferred width of the widget.
82 * Reimplemented from YWidget.
84 virtual int preferredWidth();
87 * Preferred height of the widget.
89 * Reimplemented from YWidget.
91 virtual int preferredHeight();
94 * Set the new size of the widget.
96 * Reimplemented from YWidget.
98 virtual void setSize( int newWidth, int newHeight );
101 * Accept the keyboard focus.
103 * Reimplemented from YWidget.
105 virtual bool setKeyboardFocus();
108 * Return the actual qt button. Used by YQButtonGroup.
110 QRadioButton * getQtButton();
115 * Triggered when the RadioButton is toggled.
117 void changed( bool newState );
120 * Redirect events to this object.
122 bool eventFilter( QObject * obj, QEvent * event );
127 QRadioButton * _qt_radioButton;
130 #endif // YQRadioButton_h