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.
This commit is contained in:
Eberhard Graether
2014-07-17 14:38:18 +02:00
parent 75e1cb7229
commit 4578c109ec
14 changed files with 128 additions and 15 deletions
+3 -3
View File
@@ -9,7 +9,6 @@
#include "utility/math/Vector2.h"
class GuiWidgetWrapper;
class ViewLayout;
class View
{
@@ -17,6 +16,7 @@ public:
template<typename T>
static std::shared_ptr<T> create(ViewLayout* viewLayout);
View(ViewLayout* viewLayout, const Vec2i& minSize);
virtual ~View();
virtual std::string getName() const = 0;
@@ -34,11 +34,11 @@ public:
Vec2i getMinSize() const;
protected:
View(ViewLayout* viewLayout, const Vec2i& minSize); // make public
template <typename ControllerType>
ControllerType* getController();
ViewLayout* getViewLayout() const;
private:
Component* m_component;
ViewLayout* const m_viewLayout;