QGuiComboBox.hh

Go to the documentation of this file.
00001 
00002 #ifndef _Q_GUI_COMBO_BOX_HH_
00003 #define _Q_GUI_COMBO_BOX_HH_
00004 
00005 #include <TGComboBox.h>
00006 
00007 #include <set>
00008 #include <string>
00009 
00015 class QGuiComboBox: public TGComboBox
00016 {
00017 public:
00019    QGuiComboBox(const TGWindow *parent);
00020 
00022    virtual ~QGuiComboBox();
00023 
00025    virtual void AddEntry(const std::string& entry);
00026    
00028    void HandleTabPressed();
00029 
00030 private:
00031    std::set<std::string> fEntries; 
00034    std::set<std::string> GetMatching(const std::string& part) const;
00035 
00037    std::string GetCommonPart(const std::set<std::string>& entries) const;
00038 
00040    void MakeConnections();
00041 
00042    ClassDef(QGuiComboBox, 0)
00043 };
00044 #endif

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