QGuiDropDownList.hh
00001
00002 #ifndef _QGUI_DROP_DOWN_LIST_HH_
00003 #define _QGUI_DROP_DOWN_LIST_HH_
00004
00005 #include "QGuiCompositeFrame.hh"
00006
00007 #include <string>
00008 #include <vector>
00009
00010 class TGComboBox;
00011
00022 class QGuiDropDownList: public QGuiCompositeFrame
00023 {
00024 public:
00026 QGuiDropDownList(const TGWindow* parent);
00027
00029 virtual ~QGuiDropDownList();
00030
00032 void SetList(const std::vector<std::string>& items);
00033
00039 Bool_t Allowed(const std::string& entry);
00040
00046 Bool_t SetSelected(const std::string& entry);
00047
00048 const std::string& GetSelected() const;
00049
00050 void ValueChanged() { Emit("ValueChanged()"); }
00051
00052 void Lock(Bool_t doLock);
00053 private:
00054 TGComboBox* fCombo;
00055
00057 std::vector<std::string> fItems;
00058
00059 ClassDef(QGuiDropDownList,0)
00060 };
00061
00062 #endif