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.
24 lines
493 B
C++
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
|