Files
Sourcetrail/src/lib/component/view/SearchView.h
T
Eberhard Graether 1b445d4c3a src: removed query syntax
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.
2015-09-02 11:52:07 +02:00

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