- 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.
23 lines
378 B
C++
23 lines
378 B
C++
#include "component/view/SearchView.h"
|
|
|
|
#include "component/controller/SearchController.h"
|
|
|
|
SearchView::SearchView(ViewLayout* viewLayout)
|
|
: View(viewLayout, Vec2i(100, 100))
|
|
{
|
|
}
|
|
|
|
SearchView::~SearchView()
|
|
{
|
|
}
|
|
|
|
std::string SearchView::getName() const
|
|
{
|
|
return "SearchView";
|
|
}
|
|
|
|
SearchController* SearchView::getController()
|
|
{
|
|
return View::getController<SearchController>();
|
|
}
|