00001 #ifndef _QCamRadioBox_hpp_
00002 #define _QCamRadioBox_hpp_
00003
00004 #include <qvgroupbox.h>
00005
00006 class QRadioButton;
00007 class QVGroupBox;
00008 class QButtonGroup;
00009 class QHBox;
00010
00015 class QCamRadioBox: public QVGroupBox {
00016 Q_OBJECT
00017 public:
00018 QCamRadioBox(const char * label ,
00019 QWidget * parent,
00020 int numOfbutton ,
00021 int valueList[] ,
00022 const char * labelList[]=NULL ,
00023 int maxPerRow=100 );
00024 ~QCamRadioBox();
00025 int value() const { return currentValue_; }
00026 public slots:
00030 void update(int value);
00031
00032 signals:
00035 void change(int value);
00036 protected slots:
00037 void buttonClicked(int id);
00038 private:
00039 QButtonGroup *bg_;
00040 QHBox ** rowTable_;
00041 QRadioButton ** buttonTable_;
00042 int * valueList_;
00043 int numOfButton_;
00044 int currentValue_;
00045 };
00046
00047 #endif