diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-01-29 13:49:01 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-01-29 13:49:01 +0100 |
| commit | 38a67e72bcd8e142824f431e04f2d9ad100cffda (patch) | |
| tree | 464f7589601270a6e453e62cb07111a46c1262ba /src/input_handler.hh | |
| parent | 94bbf47cd45e48b0f0f46971a82c6bc85965ac81 (diff) | |
Do not pass a context to InputHandler methods
Diffstat (limited to 'src/input_handler.hh')
| -rw-r--r-- | src/input_handler.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh index 6a9536c0..6b260dcb 100644 --- a/src/input_handler.hh +++ b/src/input_handler.hh @@ -39,23 +39,23 @@ public: ~InputHandler(); // switch to insert mode - void insert(Context& context, InsertMode mode); + void insert(InsertMode mode); // repeat last insert mode key sequence - void repeat_last_insert(Context& context); + void repeat_last_insert(); // enter prompt mode, callback is called on each change, // abort or validation with corresponding PromptEvent value // returns to normal mode after validation if callback does // not change the mode itself void prompt(const String& prompt, Completer completer, - PromptCallback callback, Context& context); + PromptCallback callback); // enter menu mode, callback is called on each selection change, // abort or validation with corresponding MenuEvent value // returns to normal mode after validation if callback does // not change the mode itself void menu(const memoryview<String>& choices, - MenuCallback callback, Context& context); + MenuCallback callback); // execute callback on next keypress and returns to normal mode // if callback does not change the mode itself @@ -63,7 +63,7 @@ public: // read and process all inputs available in context // user interface - void handle_available_inputs(Context& context); + void handle_available_inputs(); Context& context() { return m_context; } private: |
