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 00013 #include "QRadioButton.h" 00014 00015 //! Radio Button Group 00016 class QRadioButtonGroup 00017 { 00018 protected: 00019 //! radio buttons in the group 00020 list<QRadioButton*> Items; 00021 00022 public: 00023 //! adds a button to this group 00024 void add( QRadioButton* button ); 00025 00026 //! removes a button from this group 00027 void remove( QRadioButton* button ); 00028 00029 //! sets given radio button as selected 00030 void setAsSelected( QRadioButton* button ); 00031 00032 //! prints itself to the cout 00033 void print(); 00034 00035 //! Constructor 00036 QRadioButtonGroup( ); 00037 00038 //! Destructor 00039 virtual ~QRadioButtonGroup(); 00040 00041 00042 }; 00043 #endif 00044
1.2.18