diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-04-03 13:39:20 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-04-03 13:39:20 +0000 |
| commit | f3dd65fbf193ef4e53a58919cb14264b376cd1b0 (patch) | |
| tree | 82abc79eced732f55f82c6aa2c130afe20632a46 /src/window.hh | |
| parent | c8447658c0997aeddbe2b6e77283492830869b02 (diff) | |
add an OptionManager class and use it to manage tabstops
OptionManager map names to options, and may delegate option resolution
to it's parent if it does not contains the asked for option. That way
Buffers can override global options, and Windows can override Buffer
options.
Diffstat (limited to 'src/window.hh')
| -rw-r--r-- | src/window.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.hh b/src/window.hh index 9105d04a..7e77c6ee 100644 --- a/src/window.hh +++ b/src/window.hh @@ -9,6 +9,7 @@ #include "highlighter.hh" #include "highlighter_group.hh" #include "hook_manager.hh" +#include "option_manager.hh" namespace Kakoune { @@ -38,7 +39,8 @@ public: HighlighterGroup& highlighters() { return m_highlighters; } - HookManager& hook_manager() { return m_hook_manager; } + HookManager& hook_manager() { return m_hook_manager; } + OptionManager& option_manager() { return m_option_manager; } private: friend class Buffer; @@ -57,6 +59,7 @@ private: HighlighterGroup m_highlighters; HookManager m_hook_manager; + OptionManager m_option_manager; }; } |
