| 1 | /* |
| 2 | SPDX-FileCopyrightText: KDE Developers |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #ifndef KATE_ABSTRACT_INPUT_MODE_FACTORY_H |
| 8 | #define KATE_ABSTRACT_INPUT_MODE_FACTORY_H |
| 9 | |
| 10 | class KateAbstractInputMode; |
| 11 | class KateViewInternal; |
| 12 | |
| 13 | class KConfig; |
| 14 | class KateConfigPage; |
| 15 | |
| 16 | #include "ktexteditor/view.h" |
| 17 | #include <QString> |
| 18 | class QWidget; |
| 19 | |
| 20 | class KateAbstractInputModeFactory |
| 21 | { |
| 22 | public: |
| 23 | KateAbstractInputModeFactory(); |
| 24 | |
| 25 | virtual ~KateAbstractInputModeFactory(); |
| 26 | virtual KateAbstractInputMode *createInputMode(KateViewInternal *viewInternal) = 0; |
| 27 | |
| 28 | virtual QString name() = 0; |
| 29 | virtual KTextEditor::View::InputMode inputMode() = 0; |
| 30 | |
| 31 | virtual KateConfigPage *createConfigPage(QWidget *) = 0; |
| 32 | }; |
| 33 | |
| 34 | #endif |
| 35 | |