This change removes the query syntax from the QtSmartSearchbox and all its classes. Now it only autocompletes to one single Token, but the UI functionality for composing a query of multiple elements is still left for later use. The struct SearchMatch is now used in the whole pipeline for passing search results back and forth.
26 lines
553 B
C++
26 lines
553 B
C++
#ifndef SEARCH_VIEW_H
|
|
#define SEARCH_VIEW_H
|
|
|
|
#include "component/view/View.h"
|
|
#include "data/search/SearchMatch.h"
|
|
|
|
class SearchController;
|
|
|
|
class SearchView
|
|
: public View
|
|
{
|
|
public:
|
|
SearchView(ViewLayout* viewLayout);
|
|
virtual ~SearchView();
|
|
|
|
virtual std::string getName() const;
|
|
|
|
virtual void setMatches(const std::vector<SearchMatch>& matches) = 0;
|
|
virtual void setFocus() = 0;
|
|
virtual void setAutocompletionList(const std::vector<SearchMatch>& autocompletionList) = 0;
|
|
|
|
protected:
|
|
SearchController* getController();
|
|
};
|
|
|
|
#endif // SEARCH_VIEW_H
|