aboutsummaryrefslogtreecommitdiff
path: root/src/InputMediator.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/InputMediator.hpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/InputMediator.hpp b/src/InputMediator.hpp
index 87395d5..2cd34f2 100644
--- a/src/InputMediator.hpp
+++ b/src/InputMediator.hpp
@@ -12,23 +12,23 @@ class InputMediator : public QObject {
Q_OBJECT
public:
- InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime,
- KeymapEvaluator *keymapEvaluator);
- ~InputMediator();
+ InputMediator(WebViewStack *web_view_stack, LuaRuntime *lua_runtime,
+ KeymapEvaluator *keymap_evaluator);
+ ~InputMediator() override;
- DELEGATE(webViewStack, openUrl, openUrl)
- DELEGATE(webViewStack, currentUrl, currentUrl)
- DELEGATE(webViewStack, next, nextWebView)
- DELEGATE(webViewStack, previous, previousWebView)
- DELEGATE(webViewStack, closeCurrent, closeCurrentWebView)
- DELEGATE(keymapEvaluator, evaluate, evaluateKeymap)
+ DELEGATE(web_view_stack, open_url, open_url)
+ DELEGATE(web_view_stack, current_url, current_url)
+ DELEGATE(web_view_stack, next, next_web_view)
+ DELEGATE(web_view_stack, previous, previous_web_view)
+ DELEGATE(web_view_stack, close_current, close_current_web_view)
+ DELEGATE(keymap_evaluator, evaluate, evaluate_keymap)
protected:
- void evaluateCommand(QString command);
- void addKeymap(QString mode, QString keyseq, std::function<void()> action);
+ void add_keymap(const QString &mode_string, const QString &keyseq,
+ std::function<void()> action);
private:
- WebViewStack *webViewStack;
- LuaRuntime *luaRuntime;
- KeymapEvaluator *keymapEvaluator;
+ WebViewStack *web_view_stack;
+ LuaRuntime *lua_runtime;
+ KeymapEvaluator *keymap_evaluator;
};