Public Member Functions | |
QGuiComboBox (const TGWindow *parent) | |
ctor | |
virtual | ~QGuiComboBox () |
dtor | |
virtual void | AddEntry (const std::string &entry) |
add an entry to the combo box | |
void | HandleTabPressed () |
slot function triggered when tab is pressed | |
Private Member Functions | |
std::set< std::string > | GetMatching (const std::string &part) const |
std::string | GetCommonPart (const std::set< std::string > &entries) const |
void | MakeConnections () |
Private Attributes | |
std::set< std::string > | fEntries |
std::set< std::string > QGuiComboBox::GetMatching | ( | const std::string & | part | ) | const [private] |
std::string QGuiComboBox::GetCommonPart | ( | const std::set< std::string > & | entries | ) | const [private] |
get the longest substring common to all entries
Referenced by HandleTabPressed().
void QGuiComboBox::MakeConnections | ( | ) | [private] |
perform signal/slot connections
Referenced by QGuiComboBox().
std::set<std::string> QGuiComboBox::fEntries [private] |
available entries
Referenced by AddEntry(), and GetMatching().