ui: basic search view
- Added a basic SearchView (+ controller and qt implementation) - SearchView can set the active element of other views by dispatching a message. - SearchView adjusts its text when the active element is changed by other views. - Added wrappers for Button and EditBox that allow the usage of simple callback functions.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#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) const = 0;
|
||||
|
||||
protected:
|
||||
SearchController* getController();
|
||||
};
|
||||
|
||||
#endif // SEARCH_VIEW_H
|
||||
Reference in New Issue
Block a user