Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YQRadioButton.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YQRadioButton.h
00014 
00015   Author:     Mathias Kettner <kettner@suse.de>
00016   Maintainer: Stefan Hundhammer <sh@suse.de>
00017 
00018 /-*/
00019 
00020 
00021 #ifndef YQRadioButton_h
00022 #define YQRadioButton_h
00023 
00024 #include <qgroupbox.h>
00025 #include <ycp/YCPString.h>
00026 
00027 #include "YRadioButton.h"
00028 
00029 
00030 class QRadioButton;
00031 
00032 class YQRadioButton : public QGroupBox, public YRadioButton
00033 {
00034     Q_OBJECT
00035 
00036 public:
00040     YQRadioButton( QWidget *            parent,
00041                    const YWidgetOpt &   opt,
00042                    YRadioButtonGroup *  rbg,
00043                    const YCPString &    label,
00044                    bool                 checked );
00045 
00051     void setEnabling( bool enabled );
00052 
00058     long nicesize( YUIDimension dim );
00059 
00063     void setSize( long newWidth, long newHeight );
00064 
00068     void setValue( const YCPBoolean & checked );
00069 
00073     YCPBoolean getValue();
00074 
00078     void setLabel( const YCPString & label );
00079 
00083     virtual bool setKeyboardFocus();
00084 
00089     QRadioButton * getQtButton();
00090 
00091 protected slots:
00096     void changed ( bool newState );
00097 
00098 
00099 protected:
00100 
00101     //
00102     // Data members
00103     //
00104 
00105     QRadioButton * _qt_radiobutton;
00106 };
00107 
00108 #endif // YQRadioButton_h

Generated on Fri Oct 14 19:03:46 2005 for yast2-qt by doxygen 1.3.6