38 wxTreeItemIdValue cookie;
46 wxTreeItemId match =
findItem(value[0] ==
' ' ? value.substr(1).Lower() : value.Lower(), child);
85 wxTreeItemIdValue cookie;
93 wxTreeItemId match =
findItem(value, child);
104 return wxTreeItemId();
123 wxTreeItemIdValue cookie;
135 return wxArrayString();
153 wxArrayString stringArray;
164 if ((data && data->
tooltip.Lower().find(enteredText) != std::string::npos)
165 ||
m_associatedCtrl->GetItemText(node).Lower().find(enteredText) != std::string::npos)
168 else if (
m_associatedCtrl->GetItemText(node).Lower().find(enteredText) != std::string::npos)
172 wxTreeItemIdValue cookie;
183 for (
size_t i = 0; i < childArray.size(); i++)
184 stringArray.Add(childArray[i]);
virtual bool selectItem(const wxString &value) override
This method searches and selects the item with the passed label in the associated tree.
virtual wxArrayString getCandidates(const wxString &enteredText) override
This method returns an array of strings containing possible candidates for the passed search string.
wxTreeCtrl * m_associatedCtrl
wxTreeItemId findItem(const wxString &value, wxTreeItemId node)
This method searches for the tree item, whose label corresponds to the passed string.
wxArrayString getChildCandidates(const wxString &enteredText, wxTreeItemId node)
This method returns an array of strings containing possible candiates for the passed search string,...