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 "YRadioButton.h"
24 #include <Qt3Support/Q3GroupBox>
31 class YQRadioButton : public Q3GroupBox, public YRadioButton
39 YQRadioButton( YWidget * parent,
44 * Return the "checked" state of the RadioButton.
46 * Reimplemented from YRadioButton.
51 * Set the "checked" state of the RadioButton.
53 * Reimplemented from YRadioButton.
55 virtual void setValue( bool checked );
58 * Change the label (the text) on the RadioButton.
60 * Reimplemented from YRadioButton.
62 virtual void setLabel( const string & label );
67 * Reimplemented from YRadioButton.
69 virtual void setUseBoldFont( bool bold = true );
72 * Set enabled / disabled state.
74 * Reimplemented from YWidget.
76 virtual void setEnabled( bool enabled );
79 * Preferred width of the widget.
81 * Reimplemented from YWidget.
83 virtual int preferredWidth();
86 * Preferred height of the widget.
88 * Reimplemented from YWidget.
90 virtual int preferredHeight();
93 * Set the new size of the widget.
95 * Reimplemented from YWidget.
97 virtual void setSize( int newWidth, int newHeight );
100 * Accept the keyboard focus.
102 * Reimplemented from YWidget.
104 virtual bool setKeyboardFocus();
107 * Return the actual qt button. Used by YQButtonGroup.
109 QRadioButton * getQtButton();
114 * Triggered when the RadioButton is toggled.
116 void changed( bool newState );
119 * Redirect events to this object.
121 bool eventFilter( QObject * obj, QEvent * event );
126 QRadioButton * _qt_radioButton;
129 #endif // YQRadioButton_h