KTextEditor

completionreplayer.h
1/*
2 SPDX-FileCopyrightText: KDE Developers
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEVI_COMPLETIONREPLAYER_H
8#define KATEVI_COMPLETIONREPLAYER_H
9
10#include "completion.h"
11
12#include <QStack>
13
14namespace KTextEditor
15{
16class Cursor;
17}
18
19namespace KateVi
20{
21class InputModeManager;
22
23class CompletionReplayer
24{
25public:
26 explicit CompletionReplayer(InputModeManager *viInputModeManager);
27 ~CompletionReplayer();
28
29 void start(const CompletionList &completions);
30 void stop();
31
32 void replay();
33
34private:
35 Completion nextCompletion();
36 int findNextMergeableBracketPos(const KTextEditor::Cursor startPos) const;
37
38private:
39 InputModeManager *m_viInputModeManager;
40
41 QStack<CompletionList> m_CompletionsToReplay;
42 QStack<int> m_nextCompletionIndex;
43};
44
45}
46
47#endif // KATEVI_COMPLETIONREPLAYER_H
The Cursor represents a position in a Document.
Definition cursor.h:75
Q_SCRIPTABLE Q_NOREPLY void start()
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.