QGDropDownBox.hh

Go to the documentation of this file.
00001 #ifndef _QG_DROP_DOWN_BOX_HH_
00002 #define _QG_DROP_DOWN_BOX_HH_
00003 
00011 #include <string>
00012 #include <vector>
00013 #include <TGComboBox.h>
00014 
00015 class TGTextEntry;
00016 
00017 class QGDropDownBox : public TGComboBox {
00018 public:
00020     QGDropDownBox(const TGWindow *p = 0);
00021     
00023     virtual ~QGDropDownBox();
00024     
00026     void AddEntry(const std::string& entry);
00027     
00029     void EnableTabCompletion();
00030     
00032     std::vector<std::string> FindMatches(const std::string& s);
00033     
00035     std::string GetCommonText(const std::vector<std::string>& v);
00036     
00038     void HandleReturnPressed();
00039     
00041     void QGHandleEvent(Event_t *event);
00042     
00044     void SetReturnTarget(TGTextEntry *textBox);
00045     
00047     void TabComplete();
00048     
00049 private:
00051     std::vector<std::string> fEntries;
00052     
00054     TGTextEntry *fReturnTarget;
00055     
00056     ClassDef(QGDropDownBox, 0)
00057 };
00058 
00059 #endif

Generated on Tue Nov 16 10:49:56 2010 for CUORE Software by  doxygen 1.5.6