7#ifndef KATEVI_EMULATED_COMMAND_BAR_COMMANDMODE_H
8#define KATEVI_EMULATED_COMMAND_BAR_COMMANDMODE_H
10#include "activemode.h"
24class EmulatedCommandBar;
25class MatchHighlighter;
26class InteractiveSedReplaceMode;
28class InputModeManager;
30class CommandMode :
public ActiveMode
33 CommandMode(EmulatedCommandBar *emulatedCommandBar,
34 MatchHighlighter *matchHighlighter,
35 InputModeManager *viInputModeManager,
36 KTextEditor::ViewPrivate *view,
38 InteractiveSedReplaceMode *interactiveSedReplaceMode,
39 Completer *completer);
40 ~CommandMode()
override
43 bool handleKeyPress(
const QKeyEvent *keyEvent)
override;
44 void editTextChanged(
const QString &newText)
override;
45 CompletionStartParams completionInvoked(Completer::CompletionInvocation invocationType)
override;
46 void completionChosen()
override;
47 void deactivate(
bool wasAborted)
override;
51 CompletionStartParams activateCommandCompletion();
52 CompletionStartParams activateCommandHistoryCompletion();
53 CompletionStartParams activateSedFindHistoryCompletion();
54 CompletionStartParams activateSedReplaceHistoryCompletion();
55 QString withoutRangeExpression();
59 bool isCursorInFindTermOfSed();
60 bool isCursorInReplaceTermOfSed();
68 struct ParsedSedExpression {
69 bool parsedSuccessfully;
80 CommandMode::ParsedSedExpression parseAsSedExpression();
81 int commandBeforeCursorBegin();
83 InteractiveSedReplaceMode *m_interactiveSedReplaceMode;
84 Completer *m_completer;
An Editor command line command.
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 Fri Nov 29 2024 11:53:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.