• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kate

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes

KateViNormalMode Class Reference

Commands for the vi normal mode. More...

#include <katevinormalmode.h>

Inheritance diagram for KateViNormalMode:
Inheritance graph
[legend]

List of all members.

Public Slots

void mappingTimerTimeOut ()

Public Member Functions

 KateViNormalMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
virtual ~KateViNormalMode ()
void addCurrentPositionToJumpList ()
void addMapping (const QString &from, const QString &to)
bool commandAbort ()
bool commandAddToNumber ()
bool commandAlignLine ()
bool commandAlignLines ()
bool commandCentreViewOnCursor ()
bool commandChange ()
bool commandChangeCase ()
bool commandChangeLine ()
bool commandChangeToEOL ()
bool commandDelete ()
bool commandDeleteChar ()
bool commandDeleteCharBackward ()
bool commandDeleteLine ()
bool commandDeleteToEOL ()
bool commandEnterInsertMode ()
bool commandEnterInsertModeAppend ()
bool commandEnterInsertModeAppendEOL ()
bool commandEnterInsertModeBeforeFirstNonBlankInLine ()
bool commandEnterReplaceMode ()
bool commandEnterVisualBlockMode ()
bool commandEnterVisualLineMode ()
bool commandEnterVisualMode ()
bool commandIndentLine ()
bool commandIndentLines ()
bool commandJoinLines ()
bool commandMakeLowercase ()
bool commandMakeLowercaseLine ()
bool commandMakeUppercase ()
bool commandMakeUppercaseLine ()
bool commandOpenNewLineOver ()
bool commandOpenNewLineUnder ()
bool commandPaste ()
bool commandPasteBefore ()
bool commandPrintCharacterCode ()
bool commandRedo ()
bool commandRepeatLastChange ()
bool commandReplaceCharacter ()
bool commandScrollPageDown ()
bool commandScrollPageUp ()
bool commandSearch ()
bool commandSetMark ()
bool commandSubstituteChar ()
bool commandSubstituteLine ()
bool commandSubtractFromNumber ()
bool commandSwitchToCmdLine ()
bool commandToOtherEnd ()
bool commandUndo ()
bool commandUnindentLine ()
bool commandUnindentLines ()
bool commandYank ()
bool commandYankLine ()
bool commandYankToEOL ()
const QString getMapping (const QString &from) const
const QStringList getMappings () const
bool handleKeypress (const QKeyEvent *e)
KateViRange motionDown ()
KateViRange motionDownToFirstNonBlank ()
KateViRange motionFindChar ()
KateViRange motionFindCharBackward ()
KateViRange motionFindNext ()
KateViRange motionFindPrev ()
KateViRange motionLeft ()
KateViRange motionPageDown ()
KateViRange motionPageUp ()
KateViRange motionRepeatlastTF ()
KateViRange motionRepeatlastTFBackward ()
KateViRange motionRight ()
KateViRange motionToChar ()
KateViRange motionToCharBackward ()
KateViRange motionToColumn0 ()
KateViRange motionToEndOfPrevWord ()
KateViRange motionToEndOfPrevWORD ()
KateViRange motionToEndOfWord ()
KateViRange motionToEndOfWORD ()
KateViRange motionToEOL ()
KateViRange motionToFirstCharacterOfLine ()
KateViRange motionToLineFirst ()
KateViRange motionToLineLast ()
KateViRange motionToMark ()
KateViRange motionToMarkLine ()
KateViRange motionToMatchingItem ()
KateViRange motionToNextBraceBlockEnd ()
KateViRange motionToNextBraceBlockStart ()
KateViRange motionToNextOccurrence ()
KateViRange motionToPreviousBraceBlockEnd ()
KateViRange motionToPreviousBraceBlockStart ()
KateViRange motionToPrevOccurrence ()
KateViRange motionToScreenColumn ()
KateViRange motionUp ()
KateViRange motionUpToFirstNonBlank ()
KateViRange motionWordBackward ()
KateViRange motionWORDBackward ()
KateViRange motionWordForward ()
KateViRange motionWORDForward ()
KateViRange textObjectABracket ()
KateViRange textObjectAComma ()
KateViRange textObjectAParen ()
KateViRange textObjectAQuoteDouble ()
KateViRange textObjectAQuoteSingle ()
KateViRange textObjectAWord ()
KateViRange textObjectAWORD ()
KateViRange textObjectInnerBracket ()
KateViRange textObjectInnerComma ()
KateViRange textObjectInnerParen ()
KateViRange textObjectInnerQuoteDouble ()
KateViRange textObjectInnerQuoteSingle ()
KateViRange textObjectInnerWORD ()
KateViRange textObjectInnerWord ()

Protected Member Functions

void executeCommand (const KateViCommand *cmd)
QRegExp generateMatchingItemRegex ()
virtual void goToPos (const KateViRange &r)
void initializeCommands ()
virtual void reset ()
void resetParser ()

Protected Attributes

QStack< int > m_awaitingMotionOrTextObject
QVector< KateViCommand * > m_commands
unsigned int m_countTemp
QChar m_defaultRegister
bool m_findWaitingForChar
bool m_ignoreMapping
KateViKeyParser * m_keyParser
QString m_keys
QString m_lastTFcommand
bool m_mappingKeyPress
QString m_mappingKeys
QMap< QChar,
KTextEditor::MovingCursor * > 
m_marks
QVector< int > m_matchingCommands
QHash< QString, QString > m_matchingItems
QVector< int > m_matchingMotions
QRegExp m_matchItemRegex
int m_motionOperatorIndex
QVector< KateViMotion * > m_motions
QString m_registerTemp

Detailed Description

Commands for the vi normal mode.

Definition at line 50 of file katevinormalmode.h.


Constructor & Destructor Documentation

KateViNormalMode::KateViNormalMode ( KateViInputModeManager *  viInputModeManager,
KateView *  view,
KateViewInternal *  viewInternal 
)

Definition at line 44 of file katevinormalmode.cpp.

KateViNormalMode::~KateViNormalMode ( ) [virtual]

Definition at line 71 of file katevinormalmode.cpp.


Member Function Documentation

void KateViNormalMode::addCurrentPositionToJumpList ( )

Definition at line 438 of file katevinormalmode.cpp.

void KateViNormalMode::addMapping ( const QString &  from,
const QString &  to 
) [virtual]

Implements KateViModeBase.

Definition at line 2433 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAbort ( )

Definition at line 1246 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAddToNumber ( )

Definition at line 1306 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLine ( )

Definition at line 1283 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLines ( )

Definition at line 1293 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCentreViewOnCursor ( )

Definition at line 1236 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChange ( )

Definition at line 857 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeCase ( )

Definition at line 705 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeLine ( )

Definition at line 897 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeToEOL ( )

Definition at line 889 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDelete ( )

Definition at line 598 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteChar ( )

Definition at line 1064 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteCharBackward ( )

Definition at line 1083 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteLine ( )

Definition at line 566 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteToEOL ( )

Definition at line 607 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertMode ( )

enter insert mode at the cursor position

Definition at line 459 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppend ( )

enter insert mode after the current character

Definition at line 469 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppendEOL ( )

start insert mode after the last character of the line

Definition at line 494 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeBeforeFirstNonBlankInLine ( )

Definition at line 504 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterReplaceMode ( )

Definition at line 561 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualBlockMode ( )

Definition at line 529 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualLineMode ( )

Definition at line 519 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualMode ( )

Definition at line 539 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLine ( )

Definition at line 1167 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLines ( )

Definition at line 1189 of file katevinormalmode.cpp.

bool KateViNormalMode::commandJoinLines ( )

Definition at line 827 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercase ( )

Definition at line 647 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercaseLine ( )

Definition at line 664 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercase ( )

Definition at line 676 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercaseLine ( )

Definition at line 693 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineOver ( )

Definition at line 793 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineUnder ( )

Definition at line 775 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPaste ( )

Definition at line 999 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPasteBefore ( )

Definition at line 1040 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPrintCharacterCode ( )

Definition at line 1252 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRedo ( )

Definition at line 1144 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRepeatLastChange ( )

Definition at line 1273 of file katevinormalmode.cpp.

bool KateViNormalMode::commandReplaceCharacter ( )

Definition at line 1103 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageDown ( )

Definition at line 1222 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageUp ( )

Definition at line 1229 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSearch ( )

Definition at line 1132 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSetMark ( )

Definition at line 1150 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteChar ( )

Definition at line 926 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteLine ( )

Definition at line 935 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubtractFromNumber ( )

Definition at line 1313 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToCmdLine ( )

Definition at line 1117 of file katevinormalmode.cpp.

bool KateViNormalMode::commandToOtherEnd ( )

Definition at line 549 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUndo ( )

Definition at line 1138 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLine ( )

Definition at line 1178 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLines ( )

Definition at line 1206 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYank ( )

Definition at line 940 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankLine ( )

Definition at line 958 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankToEOL ( )

Definition at line 972 of file katevinormalmode.cpp.

void KateViNormalMode::executeCommand ( const KateViCommand *  cmd) [protected]

Definition at line 408 of file katevinormalmode.cpp.

QRegExp KateViNormalMode::generateMatchingItemRegex ( ) [protected]

Definition at line 2406 of file katevinormalmode.cpp.

const QString KateViNormalMode::getMapping ( const QString &  from) const [virtual]

Implements KateViModeBase.

Definition at line 2438 of file katevinormalmode.cpp.

const QStringList KateViNormalMode::getMappings ( ) const [virtual]

Implements KateViModeBase.

Definition at line 2443 of file katevinormalmode.cpp.

void KateViNormalMode::goToPos ( const KateViRange &  r) [protected, virtual]

Definition at line 391 of file katevinormalmode.cpp.

bool KateViNormalMode::handleKeypress ( const QKeyEvent *  e)

parses a key stroke to check if it's a valid (part of) a command

Returns:
true if a command was completed and executed, false otherwise

Definition at line 93 of file katevinormalmode.cpp.

void KateViNormalMode::initializeCommands ( ) [protected]

Definition at line 2288 of file katevinormalmode.cpp.

void KateViNormalMode::mappingTimerTimeOut ( ) [slot]

Definition at line 80 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionDown ( )

Definition at line 1324 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionDownToFirstNonBlank ( )

Definition at line 1383 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindChar ( )

Definition at line 1626 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindCharBackward ( )

Definition at line 1652 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindNext ( )

Definition at line 1799 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindPrev ( )

Definition at line 1791 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionLeft ( )

Definition at line 1335 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionPageDown ( )

Definition at line 1355 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionPageUp ( )

Definition at line 1369 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTF ( )

Definition at line 1738 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTFBackward ( )

Definition at line 1764 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRight ( )

Definition at line 1345 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToChar ( )

Definition at line 1683 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToCharBackward ( )

Definition at line 1707 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToColumn0 ( )

Definition at line 1604 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWord ( )

Definition at line 1544 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWORD ( )

Definition at line 1566 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWord ( )

Definition at line 1510 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWORD ( )

Definition at line 1527 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEOL ( )

Definition at line 1588 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToFirstCharacterOfLine ( )

Definition at line 1613 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineFirst ( )

Definition at line 1808 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineLast ( )

Definition at line 1821 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMark ( )

Definition at line 1854 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMarkLine ( )

Definition at line 1881 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMatchingItem ( )

Definition at line 1893 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockEnd ( )

Definition at line 2043 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockStart ( )

Definition at line 2003 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextOccurrence ( )

Definition at line 2083 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockEnd ( )

Definition at line 2063 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockStart ( )

Definition at line 2023 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPrevOccurrence ( )

Definition at line 2094 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToScreenColumn ( )

Definition at line 1839 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionUp ( )

Definition at line 1330 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionUpToFirstNonBlank ( )

Definition at line 1397 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWordBackward ( )

Definition at line 1444 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDBackward ( )

Definition at line 1488 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDForward ( )

Definition at line 1466 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWordForward ( )

Definition at line 1411 of file katevinormalmode.cpp.

void KateViNormalMode::reset ( ) [protected, virtual]

Definition at line 384 of file katevinormalmode.cpp.

void KateViNormalMode::resetParser ( ) [protected]

(re)set to start configuration.

This is done when a command is completed executed or when a command is aborted

Definition at line 368 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectABracket ( )

Definition at line 2246 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAComma ( )

Definition at line 2256 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAParen ( )

Definition at line 2236 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteDouble ( )

Definition at line 2216 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteSingle ( )

Definition at line 2226 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWord ( )

Definition at line 2110 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWORD ( )

Definition at line 2164 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerBracket ( )

Definition at line 2251 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerComma ( )

Definition at line 2271 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerParen ( )

Definition at line 2241 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteDouble ( )

Definition at line 2221 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteSingle ( )

Definition at line 2231 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWord ( )

Definition at line 2137 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWORD ( )

Definition at line 2190 of file katevinormalmode.cpp.


Member Data Documentation

QStack<int> KateViNormalMode::m_awaitingMotionOrTextObject [protected]

Definition at line 235 of file katevinormalmode.h.

QVector<KateViCommand *> KateViNormalMode::m_commands [protected]

Definition at line 231 of file katevinormalmode.h.

unsigned int KateViNormalMode::m_countTemp [protected]

Definition at line 228 of file katevinormalmode.h.

QChar KateViNormalMode::m_defaultRegister [protected]

Definition at line 242 of file katevinormalmode.h.

bool KateViNormalMode::m_findWaitingForChar [protected]

Definition at line 229 of file katevinormalmode.h.

bool KateViNormalMode::m_ignoreMapping [protected]

Definition at line 255 of file katevinormalmode.h.

KateViKeyParser* KateViNormalMode::m_keyParser [protected]

Definition at line 258 of file katevinormalmode.h.

QString KateViNormalMode::m_keys [protected]

Definition at line 227 of file katevinormalmode.h.

QString KateViNormalMode::m_lastTFcommand [protected]

Definition at line 239 of file katevinormalmode.h.

bool KateViNormalMode::m_mappingKeyPress [protected]

Definition at line 253 of file katevinormalmode.h.

QString KateViNormalMode::m_mappingKeys [protected]

Definition at line 256 of file katevinormalmode.h.

QMap<QChar, KTextEditor::MovingCursor*> KateViNormalMode::m_marks [protected]

Definition at line 246 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingCommands [protected]

Definition at line 233 of file katevinormalmode.h.

QHash<QString, QString> KateViNormalMode::m_matchingItems [protected]

Definition at line 249 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingMotions [protected]

Definition at line 234 of file katevinormalmode.h.

QRegExp KateViNormalMode::m_matchItemRegex [protected]

Definition at line 250 of file katevinormalmode.h.

int KateViNormalMode::m_motionOperatorIndex [protected]

Definition at line 237 of file katevinormalmode.h.

QVector<KateViMotion *> KateViNormalMode::m_motions [protected]

Definition at line 232 of file katevinormalmode.h.

QString KateViNormalMode::m_registerTemp [protected]

Definition at line 243 of file katevinormalmode.h.


The documentation for this class was generated from the following files:
  • katevinormalmode.h
  • katevinormalmode.cpp

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal