1 | /* |
---|---|
2 | SPDX-FileCopyrightText: KDE Developers |
3 | |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef KATE_VI_INPUT_MODE_FACTORY_H |
8 | #define KATE_VI_INPUT_MODE_FACTORY_H |
9 | |
10 | #include <memory> |
11 | |
12 | #include "kateabstractinputmodefactory.h" |
13 | |
14 | namespace KateVi |
15 | { |
16 | class GlobalState; |
17 | } |
18 | class KateViInputMode; |
19 | |
20 | class KateViInputModeFactory : public KateAbstractInputModeFactory |
21 | { |
22 | friend KateViInputMode; |
23 | |
24 | public: |
25 | KateViInputModeFactory(); |
26 | |
27 | KateAbstractInputMode *createInputMode(KateViewInternal *viewInternal) override; |
28 | |
29 | QString name() override; |
30 | KTextEditor::View::InputMode inputMode() override; |
31 | |
32 | KateConfigPage *createConfigPage(QWidget *) override; |
33 | |
34 | private: |
35 | std::unique_ptr<KateVi::GlobalState> m_viGlobal; |
36 | }; |
37 | |
38 | #endif |
39 |