Files
Sourcetrail/src/lib/component/view/SearchView.h
T
Eberhard Graether 4578c109ec ui: added find shortcut to set focus in search view
The shortcut is added to the new Find menubar item and dispatches a MessageFind, which is handled by the
SearchController. QtSearchView assures via the ViewLayout that the view is visible when setting focus on the search box.
2014-07-17 14:38:18 +02:00

24 lines
493 B
C++

#ifndef SEARCH_VIEW_H
#define SEARCH_VIEW_H
#include "component/view/View.h"
class SearchController;
class SearchView : public View
{
public:
SearchView(ViewLayout* viewLayout);
virtual ~SearchView();
virtual std::string getName() const;
virtual void setText(const std::string& s) = 0;
virtual void setFocus() = 0;
virtual void setAutocompletionList(const std::vector<std::string>& autocompletionList) = 0;
protected:
SearchController* getController();
};
#endif // SEARCH_VIEW_H