diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-09-12 23:39:34 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-09-12 23:39:34 +0200 |
| commit | ac7e437730ecbe32f9e4e168a3ee4a7b7f3cd761 (patch) | |
| tree | cb5b0e413373ed209d092d476f0abf4a0eeb8209 /src/context.hh | |
| parent | 916a0cb52e8637d0e6ec456363ef6412142945da (diff) | |
Move Client responsibilities to InputHandler
InputHandler owns it's UserInterface, and is directly stored by the ClientManager.
Diffstat (limited to 'src/context.hh')
| -rw-r--r-- | src/context.hh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/context.hh b/src/context.hh index 3332392e..056ef68f 100644 --- a/src/context.hh +++ b/src/context.hh @@ -23,7 +23,7 @@ struct Context { Context(); explicit Context(Editor& editor); - Context(InputHandler& input_handler, UserInterface& ui); + Context(InputHandler& input_handler, Editor& editor); ~Context(); Context(const Context&) = delete; @@ -42,7 +42,7 @@ struct Context bool has_input_handler() const { return (bool)m_input_handler; } UserInterface& ui() const; - bool has_ui() const { return (bool)m_ui; } + bool has_ui() const { return (bool)m_input_handler; } void change_editor(Editor& editor); @@ -60,7 +60,6 @@ struct Context private: safe_ptr<Editor> m_editor; safe_ptr<InputHandler> m_input_handler; - safe_ptr<UserInterface> m_ui; int m_numeric_param = 0; |
