1 #ifndef _QG_DROP_DOWN_BOX_HH_
2 #define _QG_DROP_DOWN_BOX_HH_
13 #include <TGComboBox.h>
32 std::vector<std::string>
FindMatches(
const std::string& s);
Drop down box with tab-complete.
void QGHandleEvent(Event_t *event)
Handle event.
TGTextEntry * fReturnTarget
Text box to change to when return is pressed.
void SetReturnTarget(TGTextEntry *textBox)
Set return target.
QGDropDownBox(const TGWindow *p=0)
Constructor.
std::vector< std::string > FindMatches(const std::string &s)
Find a match to a string.
virtual ~QGDropDownBox()
Destructor.
void AddEntryS(const std::string &entry)
Add entry.
std::vector< std::string > fEntries
Collection of entries.
void TabComplete()
Tab complete.
std::string GetCommonText(const std::vector< std::string > &v)
Get common text.
void EnableTabCompletion()
Enable tab completion.
void HandleReturnPressed()
Handle tab pressed.