Kate
KateViModeBase Class Reference
#include <katevimodebase.h>

Public Member Functions | |
void | addMapping (const QString &from, const QString &to) |
const QString | getMapping (const QString &from) const |
const QStringList | getMappings () const |
QString | getVerbatimKeys () const |
KateViModeBase () | |
virtual | ~KateViModeBase () |
Protected Member Functions | |
bool | deleteRange (KateViRange &r, bool linewise=true, bool addToRegister=true) |
KateDocument * | doc () const |
void | error (const QString &errorMsg) const |
void | fillRegister (const QChar ®, const QString &text) |
int | findLineStartingWitchChar (const QChar &c, unsigned int count, bool forward=true) const |
KTextEditor::Cursor | findNextWORDStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findNextWordStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findPrevWORDEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findPrevWordEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findPrevWORDStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findPrevWordStart (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KateViRange | findSurrounding (const QRegExp &c1, const QRegExp &c2, bool inner=false) const |
KateViRange | findSurrounding (const QChar &c1, const QChar &c2, bool inner=false) const |
KTextEditor::Cursor | findWORDEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
KTextEditor::Cursor | findWordEnd (int fromLine, int fromColumn, bool onlyCurrentLine=false) const |
const QChar | getCharUnderCursor () const |
QChar | getChosenRegister (const QChar &defaultReg) const |
unsigned int | getCount () const |
const QString | getLine (int lineNumber=-1) const |
const QString | getRange (KateViRange &r, bool linewise=true) const |
QString | getRegisterContent (const QChar ®) const |
KateViRange | goLineDown () |
KateViRange | goLineUp () |
KateViRange | goLineUpDown (int lines) |
void | message (const QString &msg) const |
bool | startInsertMode () |
bool | startNormalMode () |
bool | startVisualLineMode () |
bool | startVisualMode () |
void | updateCursor (const KTextEditor::Cursor &c) const |
Protected Attributes | |
KateViRange | m_commandRange |
unsigned int | m_count |
QString | m_extraWordCharacters |
QString | m_keysVerbatim |
QHash< QString, QString > | m_mappings |
QTimer * | m_mappingTimer |
QChar | m_register |
int | m_stickyColumn |
int | m_timeoutlen |
KateView * | m_view |
KateViewInternal * | m_viewInternal |
KateViInputModeManager * | m_viInputModeManager |
Detailed Description
Definition at line 39 of file katevimodebase.h.
Constructor & Destructor Documentation
KateViModeBase::KateViModeBase | ( | ) | [inline] |
Definition at line 44 of file katevimodebase.h.
virtual KateViModeBase::~KateViModeBase | ( | ) | [inline, virtual] |
Definition at line 45 of file katevimodebase.h.
Member Function Documentation
Definition at line 738 of file katevimodebase.cpp.
bool KateViModeBase::deleteRange | ( | KateViRange & | r, | |
bool | linewise = true , |
|||
bool | addToRegister = true | |||
) | [protected] |
Definition at line 44 of file katevimodebase.cpp.
KateDocument* KateViModeBase::doc | ( | ) | const [inline, protected] |
Definition at line 102 of file katevimodebase.h.
void KateViModeBase::error | ( | const QString & | errorMsg | ) | const [protected] |
Definition at line 723 of file katevimodebase.cpp.
void KateViModeBase::fillRegister | ( | const QChar & | reg, | |
const QString & | text | |||
) | [protected] |
Definition at line 597 of file katevimodebase.cpp.
int KateViModeBase::findLineStartingWitchChar | ( | const QChar & | c, | |
unsigned int | count, | |||
bool | forward = true | |||
) | const [protected] |
Definition at line 538 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findNextWORDStart | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 186 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findNextWordStart | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 124 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findPrevWORDEnd | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 269 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findPrevWordEnd | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 228 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findPrevWORDStart | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 370 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findPrevWordStart | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 306 of file katevimodebase.cpp.
KateViRange KateViModeBase::findSurrounding | ( | const QRegExp & | c1, | |
const QRegExp & | c2, | |||
bool | inner = false | |||
) | const [protected] |
Definition at line 516 of file katevimodebase.cpp.
KateViRange KateViModeBase::findSurrounding | ( | const QChar & | c1, | |
const QChar & | c2, | |||
bool | inner = false | |||
) | const [protected] |
Definition at line 494 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findWORDEnd | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 458 of file katevimodebase.cpp.
KTextEditor::Cursor KateViModeBase::findWordEnd | ( | int | fromLine, | |
int | fromColumn, | |||
bool | onlyCurrentLine = false | |||
) | const [protected] |
Definition at line 417 of file katevimodebase.cpp.
const QChar KateViModeBase::getCharUnderCursor | ( | ) | const [protected] |
Definition at line 111 of file katevimodebase.cpp.
QChar KateViModeBase::getChosenRegister | ( | const QChar & | defaultReg | ) | const [protected] |
- Returns:
- the register given for the command. If no register was given, defaultReg is returned.
Definition at line 579 of file katevimodebase.cpp.
unsigned int KateViModeBase::getCount | ( | ) | const [inline, protected] |
Definition at line 78 of file katevimodebase.h.
const QString KateViModeBase::getLine | ( | int | lineNumber = -1 |
) | const [protected] |
Definition at line 97 of file katevimodebase.cpp.
Definition at line 743 of file katevimodebase.cpp.
const QStringList KateViModeBase::getMappings | ( | ) | const |
Definition at line 748 of file katevimodebase.cpp.
const QString KateViModeBase::getRange | ( | KateViRange & | r, | |
bool | linewise = true | |||
) | const [protected] |
Definition at line 71 of file katevimodebase.cpp.
QString KateViModeBase::getRegisterContent | ( | const QChar & | reg | ) | const [protected] |
Definition at line 586 of file katevimodebase.cpp.
QString KateViModeBase::getVerbatimKeys | ( | ) | const |
- Returns:
- normal mode command accumulated so far
Definition at line 733 of file katevimodebase.cpp.
KateViRange KateViModeBase::goLineDown | ( | ) | [protected] |
Definition at line 602 of file katevimodebase.cpp.
KateViRange KateViModeBase::goLineUp | ( | ) | [protected] |
Definition at line 607 of file katevimodebase.cpp.
KateViRange KateViModeBase::goLineUpDown | ( | int | lines | ) | [protected] |
method for moving up or down one or more lines note: the sticky column is always a virtual column
Definition at line 616 of file katevimodebase.cpp.
void KateViModeBase::message | ( | const QString & | msg | ) | const [protected] |
Definition at line 728 of file katevimodebase.cpp.
bool KateViModeBase::startInsertMode | ( | ) | [protected] |
Definition at line 686 of file katevimodebase.cpp.
bool KateViModeBase::startNormalMode | ( | ) | [protected] |
Definition at line 670 of file katevimodebase.cpp.
bool KateViModeBase::startVisualLineMode | ( | ) | [protected] |
Definition at line 709 of file katevimodebase.cpp.
bool KateViModeBase::startVisualMode | ( | ) | [protected] |
Definition at line 695 of file katevimodebase.cpp.
void KateViModeBase::updateCursor | ( | const KTextEditor::Cursor & | c | ) | const [protected] |
Definition at line 571 of file katevimodebase.cpp.
Member Data Documentation
KateViRange KateViModeBase::m_commandRange [protected] |
Definition at line 94 of file katevimodebase.h.
unsigned int KateViModeBase::m_count [protected] |
Definition at line 95 of file katevimodebase.h.
QString KateViModeBase::m_extraWordCharacters [protected] |
Definition at line 97 of file katevimodebase.h.
QString KateViModeBase::m_keysVerbatim [protected] |
Definition at line 98 of file katevimodebase.h.
QHash<QString, QString> KateViModeBase::m_mappings [protected] |
Definition at line 107 of file katevimodebase.h.
QTimer* KateViModeBase::m_mappingTimer [protected] |
Definition at line 106 of file katevimodebase.h.
QChar KateViModeBase::m_register [protected] |
Definition at line 92 of file katevimodebase.h.
int KateViModeBase::m_stickyColumn [protected] |
Definition at line 100 of file katevimodebase.h.
int KateViModeBase::m_timeoutlen [protected] |
Definition at line 102 of file katevimodebase.h.
KateView* KateViModeBase::m_view [protected] |
Definition at line 109 of file katevimodebase.h.
KateViewInternal* KateViModeBase::m_viewInternal [protected] |
Definition at line 110 of file katevimodebase.h.
Definition at line 111 of file katevimodebase.h.
The documentation for this class was generated from the following files: