00001 #ifndef __COMBO_BOX_WRAPPER__
00002 #define __COMBO_BOX_WRAPPER__
00003
00004 #include <QtGui/QWidget>
00005 #include <QtGui/QLayout>
00006 #include <QtGui/QComboBox>
00007 #include <QtGui/QLabel>
00008 #include <QtGui/QHBoxLayout>
00009 #include <QtGui/QFrame>
00010
00011
00012 #include <string>
00013 #include <vector>
00014
00015 #include "controlWidgetWrapper.h"
00016
00017 using std::string;
00018 using std::vector;
00019
00020 class ComboBoxWrapper : public ControlWidgetWrapper
00021 {
00022 public:
00023 ComboBoxWrapper(string settingName, QString labelText, vector<string> &choices, string initialChoice, QWidget *parent, QWidget *controlWidget, QLayout *layout);
00024
00025 void getValue(Settings *settings);
00026
00027 QWidget *getWidget() {return comboBox;}
00028
00029 private:
00030 QComboBox *comboBox;
00031
00032
00033 };
00034
00035
00036
00037
00038 #endif