ui: Added second line to search autocompletion list showing namespace or filepath

* Show namespace or filepath in second line of search autocompletions
* Add filepaths relative to .coatidb location
* Rescore matches to acknowledge line split
* Fixed SearchMatch type to be drawn always visible at right edge
This commit is contained in:
Eberhard Graether
2016-10-31 22:41:17 +01:00
parent 8445e705f6
commit a4240def56
21 changed files with 564 additions and 168 deletions
+12
View File
@@ -92,6 +92,18 @@ std::shared_ptr<NameElement> NameHierarchy::operator[](size_t pos) const
return m_elements[pos];
}
NameHierarchy NameHierarchy::getRange(size_t first, size_t last) const
{
NameHierarchy hierarchy;
for (size_t i = first; i < last; i++)
{
hierarchy.push(m_elements[i]);
}
return hierarchy;
}
size_t NameHierarchy::size() const
{
return m_elements.size();