logic: random fixes and improvements

* added new logos to setup ui
* changed wording in status messages and bundle nodes
* removed ununsed Vector.h
* save NameHierarchy to SearchMatch
* fixed NameHierarchyElement retrieval for name elements without parent
* fixed match weight to score last letters higher
This commit is contained in:
Eberhard Graether
2015-10-06 16:21:03 +02:00
parent 8d3112d5a9
commit 0fba3f5cf9
32 changed files with 107 additions and 98 deletions
+9 -5
View File
@@ -38,21 +38,20 @@ std::string SearchMatch::searchMatchesToString(const std::vector<SearchMatch>& m
for (size_t i = 0; i < matches.size(); i++)
{
ss << '@' << matches[i].fullName;
ss << '@' << matches[i].getFullName();
}
return ss.str();
}
SearchMatch::SearchMatch()
: fullName("")
, typeName("")
: typeName("")
, searchType(SEARCH_NONE)
{
}
SearchMatch::SearchMatch(const std::string& query)
: fullName(query)
: nameHierarchy(query)
, typeName("")
, searchType(SEARCH_NONE)
{
@@ -65,7 +64,7 @@ bool SearchMatch::isValid() const
void SearchMatch::print(std::ostream& ostream) const
{
ostream << weight << '\t' << fullName << std::endl << '\t';
ostream << weight << '\t' << nameHierarchy.getFullName() << std::endl << '\t';
size_t i = 0;
for (size_t index : indices)
{
@@ -80,6 +79,11 @@ void SearchMatch::print(std::ostream& ostream) const
ostream << std::endl;
}
std::string SearchMatch::getFullName() const
{
return nameHierarchy.getFullName();
}
std::string SearchMatch::getNodeTypeAsString() const
{
return Node::getTypeString(nodeType);