diff options
Diffstat (limited to '')
| -rw-r--r-- | include/InputMediator.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/InputMediator.hpp b/include/InputMediator.hpp index 4aaa6c1..7194ff9 100644 --- a/include/InputMediator.hpp +++ b/include/InputMediator.hpp @@ -4,6 +4,7 @@ #include <QtCore> #include "LuaRuntime.hpp" +#include "keymap/KeymapEvaluator.hpp" #include "utils.hpp" #include "widgets/WebViewStack.hpp" @@ -11,13 +12,16 @@ class InputMediator : public QObject { Q_OBJECT public: - InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime); + InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime, + KeymapEvaluator *keymapEvaluator); + ~InputMediator(); DELEGATE(webViewStack, openUrl, openUrl) DELEGATE(webViewStack, currentUrl, currentUrl) DELEGATE(webViewStack, next, nextWebView) DELEGATE(webViewStack, previous, previousWebView) DELEGATE(webViewStack, closeCurrent, closeCurrentWebView) + DELEGATE(keymapEvaluator, evaluate, evaluateKeymap) private: void evaluateCommand(QString command); @@ -25,4 +29,5 @@ private: private: WebViewStack *webViewStack; LuaRuntime *luaRuntime; + KeymapEvaluator *keymapEvaluator; }; |
