7#ifndef KATE_ABSTRACT_INPUT_MODE_H
8#define KATE_ABSTRACT_INPUT_MODE_H
11class KateViewInternal;
13#include "ktexteditor/view.h"
17class KateViewInternal;
23enum class caretStyles;
27class KateAbstractInputMode
30 KateAbstractInputMode(KateViewInternal *);
33 virtual ~KateAbstractInputMode() =
default;
36 virtual QString viewModeHuman()
const = 0;
38 virtual QString viewInputModeHuman()
const = 0;
40 virtual void activate() = 0;
41 virtual void deactivate() = 0;
42 virtual void reset() = 0;
44 virtual bool overwrite()
const = 0;
45 virtual void overwrittenChar(
const QChar &) = 0;
46 virtual void clearSelection() = 0;
49 virtual void gotFocus() = 0;
50 virtual void lostFocus() = 0;
52 virtual void readSessionConfig(
const KConfigGroup &config) = 0;
53 virtual void writeSessionConfig(
KConfigGroup &config) = 0;
54 virtual void updateRendererConfig() = 0;
55 virtual void updateConfig() = 0;
56 virtual void readWriteChanged(
bool rw) = 0;
58 virtual void find() = 0;
59 virtual void findSelectedForwards() = 0;
60 virtual void findSelectedBackwards() = 0;
61 virtual void findReplace() = 0;
62 virtual void findNext() = 0;
63 virtual void findPrevious() = 0;
65 virtual void activateCommandLine() = 0;
68 virtual bool blinkCaret()
const = 0;
69 virtual KTextEditor::caretStyles caretStyle()
const = 0;
71 virtual void toggleInsert() = 0;
72 virtual void launchInteractiveCommand(
const QString &command) = 0;
74 virtual QString bookmarkLabel(
int line)
const = 0;
80 int linesDisplayed()
const;
81 void scrollViewLines(
int offset);
84 KateViewInternal *viewInternal()
const
86 return m_viewInternal;
88 KTextEditor::ViewPrivate *view()
const
94 KateViewInternal *m_viewInternal;
95 KTextEditor::ViewPrivate *m_view;
The Cursor represents a position in a Document.
ViewMode
Possible view modes These correspond to various modes the text editor might be in.
InputMode
Possible input modes.
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout).
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 Mon Nov 18 2024 12:11:27 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.