7#ifndef KATE_VI_INPUT_MODE_H
8#define KATE_VI_INPUT_MODE_H
12#include "kateabstractinputmode.h"
14#include <vimode/inputmodemanager.h>
19class EmulatedCommandBar;
21class KateViInputModeFactory;
23class KTEXTEDITOR_EXPORT KateViInputMode :
public KateAbstractInputMode
25 explicit KateViInputMode(KateViewInternal *viewInternal, KateVi::GlobalState *global);
26 friend KateViInputModeFactory;
30 QString viewModeHuman()
const override;
32 QString viewInputModeHuman()
const override;
34 void activate()
override;
35 void deactivate()
override;
36 void reset()
override;
39 void overwrittenChar(
const QChar &)
override;
41 void clearSelection()
override;
44 void gotFocus()
override;
45 void lostFocus()
override;
47 void readSessionConfig(
const KConfigGroup &config)
override;
49 void updateRendererConfig()
override;
50 void updateConfig()
override;
51 void readWriteChanged(
bool rw)
override;
54 void findSelectedForwards()
override;
55 void findSelectedBackwards()
override;
56 void findReplace()
override;
58 void findPrevious()
override;
60 void activateCommandLine()
override;
63 bool blinkCaret()
const override;
64 KTextEditor::caretStyles caretStyle()
const override;
66 void toggleInsert()
override;
67 void launchInteractiveCommand(
const QString &command)
override;
69 QString bookmarkLabel(
int line)
const override;
72 void showViModeEmulatedCommandBar();
74 inline KateVi::GlobalState *globalState()
const
78 inline KateVi::InputModeManager *viInputModeManager()
const
80 return m_viModeManager.get();
82 inline bool isActive()
const
86 void setCaretStyle(
const KTextEditor::caretStyles caret);
90 KateVi::GlobalState *m_viGlobal;
91 KTextEditor::caretStyles m_caret;
93 bool m_nextKeypressIsOverriddenShortCut;
96 bool m_relLineNumbers;
99 std::unique_ptr<KateVi::InputModeManager> m_viModeManager;
ViewMode
Possible view modes These correspond to various modes the text editor might be in.
InputMode
Possible input modes.
A KateViewBarWidget that attempts to emulate some of the features of Vim's own command bar,...
QAction * findNext(const QObject *recvr, const char *slot, QObject *parent)
void keyPress(QWidget *widget, Qt::Key key, Qt::KeyboardModifiers modifier, int delay)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.