data: split off inner classes of SearchIndex
This commit is contained in:
@@ -18,10 +18,11 @@ void SearchController::handleMessage(MessageActivateToken* message)
|
||||
{
|
||||
if (!m_ignoreNextMessageActivateToken && message->tokenId)
|
||||
{
|
||||
std::string name = m_graphAccess->getNameForNodeWithId(message->tokenId);
|
||||
std::stringstream ss;
|
||||
ss << '"' << name << ',' << message->tokenId << '"';
|
||||
getView()->setText(ss.str());
|
||||
SearchMatch match;
|
||||
match.fullName = m_graphAccess->getNameForNodeWithId(message->tokenId);
|
||||
match.tokenIds.insert(message->tokenId);
|
||||
|
||||
getView()->setText(match.encodeForQuery());
|
||||
}
|
||||
|
||||
m_ignoreNextMessageActivateToken = false;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define SEARCH_VIEW_H
|
||||
|
||||
#include "component/view/View.h"
|
||||
#include "data/SearchIndex.h"
|
||||
#include "data/search/SearchMatch.h"
|
||||
|
||||
class SearchController;
|
||||
|
||||
@@ -16,7 +16,7 @@ public:
|
||||
|
||||
virtual void setText(const std::string& s) = 0;
|
||||
virtual void setFocus() = 0;
|
||||
virtual void setAutocompletionList(const std::vector<SearchIndex::SearchMatch>& autocompletionList) = 0;
|
||||
virtual void setAutocompletionList(const std::vector<SearchMatch>& autocompletionList) = 0;
|
||||
|
||||
protected:
|
||||
SearchController* getController();
|
||||
|
||||
Reference in New Issue
Block a user