00001 // Class QRadioButtonGroup 00002 // Filename QRadioButtonGroup.h 00003 // FaPra 2003-2004, A5, Alexander Kramer 00004 00005 #ifndef QRadioButtonGroup_h 00006 #define QRadioButtonGroup_h 00007 00008 00009 //! Pre-declaration of QRadioButtonGroup 00010 class QRadioButtonGroup; 00011 00012 #include "QRadioButton.h" 00013 00014 00015 00016 //! Radio Button Group 00017 class QRadioButtonGroup 00018 { 00019 protected: 00020 //! radio buttons in the group 00021 list<QRadioButton*> Items; 00022 00023 public: 00024 //! adds a button to this group 00025 void add( QRadioButton* button ); 00026 00027 //! removes a button from this group 00028 void remove( QRadioButton* button ); 00029 00030 //! sets given radio button as selected 00031 void setAsSelected( QRadioButton* button ); 00032 00033 //! prints itself to the cout 00034 void print(); 00035 00036 //! Constructor 00037 QRadioButtonGroup( ); 00038 00039 //! Destructor 00040 virtual ~QRadioButtonGroup(); 00041 00042 00043 }; 00044 #endif 00045
1.2.18