diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-11-10 23:29:16 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-11-10 23:29:16 +0000 |
| commit | b2407d9dfa1ec1b4a22fba7458d3e185f262edb6 (patch) | |
| tree | 4260755e337f5c74dbd5a8b5b5ed2ee282d116e3 /src/client.hh | |
| parent | d803333e737ba8b29de90dcaaa7279e91fb8f21a (diff) | |
Add ui_options option for UserInterface configuration
ui_options is a std::unordered_map<String, String> that gets
forwarded to the user interface. Add support ncurses_status_on_top.
Diffstat (limited to 'src/client.hh')
| -rw-r--r-- | src/client.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client.hh b/src/client.hh index a7f2d1ed..6da499a3 100644 --- a/src/client.hh +++ b/src/client.hh @@ -7,6 +7,7 @@ #include "safe_ptr.hh" #include "string.hh" #include "utils.hh" +#include "option_manager.hh" namespace Kakoune { @@ -14,7 +15,7 @@ namespace Kakoune class UserInterface; class Window; -class Client : public SafeCountable +class Client : public SafeCountable, public OptionManagerWatcher { public: Client(std::unique_ptr<UserInterface>&& ui, @@ -24,6 +25,8 @@ public: String name); ~Client(); + Client(Client&&) = delete; + // handle all the keys currently available in the user interface void handle_available_input(); @@ -47,6 +50,8 @@ public: const String& get_env_var(const String& name) const; private: + void on_option_changed(const Option& option) override; + DisplayLine generate_mode_line() const; std::unique_ptr<UserInterface> m_ui; |
