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:
@@ -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();
|
||||
|
||||
@@ -23,8 +23,12 @@ public:
|
||||
|
||||
void push(std::shared_ptr<NameElement> element);
|
||||
void pop();
|
||||
|
||||
std::shared_ptr<NameElement> back() const;
|
||||
std::shared_ptr<NameElement> operator[](size_t pos) const;
|
||||
|
||||
NameHierarchy getRange(size_t first, size_t last) const;
|
||||
|
||||
size_t size() const;
|
||||
|
||||
std::string getQualifiedName() const;
|
||||
|
||||
Reference in New Issue
Block a user