KTextEditor
7#include "completionrecorder.h"
8#include "katepartdebug.h"
9#include "lastchangerecorder.h"
10#include "macrorecorder.h"
11#include "vimode/definitions.h"
12#include <vimode/inputmodemanager.h>
16using namespace KateVi;
18CompletionRecorder::CompletionRecorder(InputModeManager *viInputModeManager)
19 : m_viInputModeManager(viInputModeManager)
23CompletionRecorder::~CompletionRecorder() =
default;
25void CompletionRecorder::logCompletionEvent(
const Completion &completion)
31 if (m_viInputModeManager->macroRecorder()->isRecording()) {
32 m_viInputModeManager->macroRecorder()->record(CompletionEvent);
33 m_currentMacroCompletionsLog.append(completion);
36 m_viInputModeManager->lastChangeRecorder()->record(CompletionEvent);
37 m_currentChangeCompletionsLog.append(completion);
40void CompletionRecorder::start()
42 m_currentMacroCompletionsLog.clear();
45CompletionList CompletionRecorder::stop()
47 return m_currentMacroCompletionsLog;
50void CompletionRecorder::clearCurrentChangeCompletionsLog()
52 m_currentChangeCompletionsLog.clear();
55CompletionList CompletionRecorder::currentChangeCompletionsLog()
57 return m_currentChangeCompletionsLog;
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:25 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.