00001 #ifndef _QCamComboBox_hpp_
00002 #define _QCamComboBox_hpp_
00003
00004 #include <qcombobox.h>
00005
00009 class QCamComboBox: public QComboBox {
00010 Q_OBJECT
00011 public:
00012 QCamComboBox(const char * label ,
00013 QWidget * parent,
00014 int numOfbutton ,
00015 int valueList[] ,
00016 const char * labelList[]=NULL );
00017 ~QCamComboBox();
00018 int value() const { return currentValue_; }
00019 public slots:
00020
00024 void update(int value);
00025
00026 signals:
00029 void change(int value);
00030 protected slots:
00031 void buttonClicked(int id);
00032 private:
00033 int * valueList_;
00034 int numOfButton_;
00035 int currentValue_;
00036 };
00037
00038 #endif