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
+26
View File
@@ -121,6 +121,32 @@ Id HierarchyCache::getLastVisibleParentNodeId(Id nodeId) const
return nodeId;
}
size_t HierarchyCache::getIndexOfLastVisibleParentNode(Id nodeId) const
{
HierarchyNode* node = nullptr;
HierarchyNode* parent = getNode(nodeId);
size_t idx = 0;
bool visible = false;
while (parent)
{
node = parent;
parent = node->getParent();
if (node->isVisible())
{
visible = true;
}
else if (visible)
{
idx++;
}
}
return idx;
}
void HierarchyCache::addAllChildIdsForNodeId(Id nodeId, std::vector<Id>* nodeIds, std::vector<Id>* edgeIds) const
{
HierarchyNode* node = getNode(nodeId);