Kate
#include <katevireplacemode.h>
Public Member Functions | |
KateViReplaceMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal) | |
~KateViReplaceMode () | |
void | backspace () |
void | commandBackLine () |
void | commandBackWord () |
bool | commandInsertFromLine (int offset) |
bool | commandMoveOneWordLeft () |
bool | commandMoveOneWordRight () |
bool | handleKeypress (const QKeyEvent *e) |
void | overwrittenChar (const QChar &s) |
Public Member Functions inherited from KateViModeBase | |
KateViModeBase () | |
virtual | ~KateViModeBase () |
void | error (const QString &errorMsg) |
Range | findPattern (const QString &pattern, bool backwards, bool caseSensitive, const Cursor &startFrom, int count=-1) const |
QString | getVerbatimKeys () const |
void | message (const QString &msg) |
void | setCount (unsigned int count) |
void | setRegister (QChar reg) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from KateViModeBase | |
void | addJump (KTextEditor::Cursor cursor) |
void | addToNumberUnderCursor (int count) |
bool | deleteRange (KateViRange &r, OperationMode mode=LineWise, bool addToRegister=true) |
KateDocument * | doc () const |
void | fillRegister (const QChar ®, const QString &text, OperationMode flag=CharWise) |
int | findLineStartingWitchChar (const QChar &c, unsigned int count, bool forward=true) const |
Cursor | findNextWordStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
Cursor | findNextWORDStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KateViRange | findPatternForMotion (const QString &pattern, bool backwards, bool caseSensitive, const Cursor &startFrom, int count=1) const |
Cursor | findPrevWordEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
Cursor | findPrevWORDEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
Cursor | findPrevWordStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
Cursor | findPrevWORDStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KateViRange | findSurrounding (const QRegExp &c1, const QRegExp &c2, bool inner=false) const |
KateViRange | findSurroundingBrackets (const QChar &c1, const QChar &c2, bool inner, const QChar &nested1, const QChar &nested2) const |
KateViRange | findSurroundingQuotes (const QChar &c, bool inner=false) const |
Cursor | findWordEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
Cursor | findWORDEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
const QChar | getCharAtVirtualColumn (QString &line, int virtualColumn, int tabWidht) const |
const QChar | getCharUnderCursor () const |
QChar | getChosenRegister (const QChar &defaultReg) const |
unsigned int | getCount () const |
const QString | getLine (int line=-1) const |
KTextEditor::Cursor | getNextJump (KTextEditor::Cursor) |
KTextEditor::Cursor | getPrevJump (KTextEditor::Cursor) |
const QString | getRange (KateViRange &r, OperationMode mode=LineWise) const |
QString | getRegisterContent (const QChar ®) |
OperationMode | getRegisterFlag (const QChar ®) const |
const Range | getWordRangeUnderCursor () const |
const QString | getWordUnderCursor () const |
KateViRange | goLineDown () |
KateViRange | goLineUp () |
KateViRange | goLineUpDown (int lines) |
KateViRange | goVisualLineUpDown (int lines) |
bool | isCounted () |
unsigned int | linesDisplayed () |
void | scrollViewLines (int l) |
bool | startInsertMode () |
bool | startNormalMode () |
bool | startReplaceMode () |
bool | startVisualBlockMode () |
bool | startVisualLineMode () |
bool | startVisualMode () |
void | switchView (Direction direction=Next) |
void | updateCursor (const Cursor &c) const |
void | yankToClipBoard (QChar chosen_register, QString text) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Protected Attributes inherited from KateViModeBase | |
KateViRange | m_commandRange |
unsigned int | m_count |
bool | m_currentMotionWasVisualLineUpOrDown |
QString | m_extraWordCharacters |
QPointer< KTextEditor::Message > | m_infoMessage |
bool | m_iscounted |
QString | m_keysVerbatim |
bool | m_lastMotionWasVisualLineUpOrDown |
int | m_oneTimeCountOverride |
QChar | m_register |
int | m_stickyColumn |
KateView * | m_view |
KateViewInternal * | m_viewInternal |
KateViInputModeManager * | m_viInputModeManager |
Properties inherited from QObject | |
objectName | |
Detailed Description
Commands for the vi replace mode.
Definition at line 35 of file katevireplacemode.h.
Constructor & Destructor Documentation
KateViReplaceMode::KateViReplaceMode | ( | KateViInputModeManager * | viInputModeManager, |
KateView * | view, | ||
KateViewInternal * | viewInternal | ||
) |
Definition at line 27 of file katevireplacemode.cpp.
KateViReplaceMode::~KateViReplaceMode | ( | ) |
Definition at line 35 of file katevireplacemode.cpp.
Member Function Documentation
void KateViReplaceMode::backspace | ( | ) |
Definition at line 192 of file katevireplacemode.cpp.
void KateViReplaceMode::commandBackLine | ( | ) |
Definition at line 222 of file katevireplacemode.cpp.
void KateViReplaceMode::commandBackWord | ( | ) |
Definition at line 207 of file katevireplacemode.cpp.
bool KateViReplaceMode::commandInsertFromLine | ( | int | offset | ) |
Definition at line 39 of file katevireplacemode.cpp.
bool KateViReplaceMode::commandMoveOneWordLeft | ( | ) |
Definition at line 69 of file katevireplacemode.cpp.
bool KateViReplaceMode::commandMoveOneWordRight | ( | ) |
Definition at line 83 of file katevireplacemode.cpp.
|
virtual |
checks if the key is a valid command
- Returns
- true if a command was completed and executed, false otherwise
Implements KateViModeBase.
Definition at line 101 of file katevireplacemode.cpp.
|
inline |
Definition at line 48 of file katevireplacemode.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.