summaryrefslogtreecommitdiff
path: root/src/client.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-10-10 21:34:19 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-10-11 00:17:21 +0100
commitc478a97a2f043325dffa9612f69a8df22c81d6a6 (patch)
tree0b68a8a52c1dfbd00c61c156466f0d7155c76843 /src/client.hh
parent74fe8b5e8d9ff7497b2ef98b296268b38c12b24c (diff)
Let InputModes describe themselves for status line display
Diffstat (limited to 'src/client.hh')
-rw-r--r--src/client.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client.hh b/src/client.hh
index a72e207c..b7cbe745 100644
--- a/src/client.hh
+++ b/src/client.hh
@@ -76,6 +76,7 @@ public:
void stop_recording();
Context& context() { return m_context; }
+ const Context& context() const { return m_context; }
const String& name() const { return m_name; }
void set_name(String name) { m_name = std::move(name); }
@@ -85,14 +86,16 @@ public:
UserInterface& ui() const { return *m_ui; }
private:
+ void change_input_mode(InputMode* new_mode);
+
+ DisplayLine generate_mode_line() const;
+
Context m_context;
friend class InputMode;
std::unique_ptr<UserInterface> m_ui;
std::unique_ptr<InputMode> m_mode;
std::vector<std::unique_ptr<InputMode>> m_mode_trash;
- void change_input_mode(InputMode* new_mode);
-
String m_name;
DisplayLine m_status_line;