• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

KateViNormalMode Class Reference

Commands for the vi normal mode. More...

#include <katevinormalmode.h>

Inheritance diagram for KateViNormalMode:
KateViModeBase QObject KateViVisualMode

List of all members.

Public Slots

void mappingTimerTimeOut ()

Public Member Functions

void addCurrentPositionToJumpList ()
bool commandAbort ()
bool commandAlignLine ()
bool commandAlignLines ()
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 commandEnterInsertModeBeforeFirstCharacterOfLine ()
bool commandEnterVisualLineMode ()
bool commandEnterVisualMode ()
bool commandFindNext ()
bool commandFindPrev ()
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 commandSwitchToCmdLine ()
bool commandToOtherEnd ()
bool commandUndo ()
bool commandUnindentLine ()
bool commandUnindentLines ()
bool commandYank ()
bool commandYankLine ()
bool commandYankToEOL ()
bool handleKeypress (const QKeyEvent *e)
 KateViNormalMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
KateViRange motionDown ()
KateViRange motionFindChar ()
KateViRange motionFindCharBackward ()
KateViRange motionLeft ()
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 motionToPreviousBraceBlockEnd ()
KateViRange motionToPreviousBraceBlockStart ()
KateViRange motionToScreenColumn ()
KateViRange motionUp ()
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 ()
virtual ~KateViNormalMode ()

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
KateViKeySequenceParser * m_keyParser
QString m_keys
QString m_lastTFcommand
bool m_mappingKeyPress
QString m_mappingKeys
QMap< QChar,
KTextEditor::SmartCursor * > * 
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
int m_waitingForMotionOrTextObject

Detailed Description

Commands for the vi normal mode.

Definition at line 45 of file katevinormalmode.h.


Constructor & Destructor Documentation

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

Definition at line 30 of file katevinormalmode.cpp.

KateViNormalMode::~KateViNormalMode (  )  [virtual]

Definition at line 58 of file katevinormalmode.cpp.


Member Function Documentation

void KateViNormalMode::addCurrentPositionToJumpList (  ) 

Definition at line 413 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAbort (  ) 

Definition at line 1199 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLine (  ) 

Definition at line 1233 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLines (  ) 

Definition at line 1243 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChange (  ) 

Definition at line 830 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeCase (  ) 

Definition at line 688 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeLine (  ) 

Definition at line 865 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeToEOL (  ) 

Definition at line 857 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDelete (  ) 

Definition at line 543 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteChar (  ) 

Definition at line 1024 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteCharBackward (  ) 

Definition at line 1043 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteLine (  ) 

Definition at line 512 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteToEOL (  ) 

Definition at line 552 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertMode (  ) 

enter insert mode at the cursor position

Definition at line 430 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppend (  ) 

enter insert mode after the current character

Definition at line 439 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppendEOL (  ) 

start insert mode after the last character of the line

Definition at line 458 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeBeforeFirstCharacterOfLine (  ) 

Definition at line 467 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualLineMode (  ) 

Definition at line 481 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualMode (  ) 

Definition at line 491 of file katevinormalmode.cpp.

bool KateViNormalMode::commandFindNext (  ) 

Definition at line 1120 of file katevinormalmode.cpp.

bool KateViNormalMode::commandFindPrev (  ) 

Definition at line 1113 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLine (  ) 

Definition at line 1127 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLines (  ) 

Definition at line 1149 of file katevinormalmode.cpp.

bool KateViNormalMode::commandJoinLines (  ) 

Definition at line 808 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercase (  ) 

Definition at line 592 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercaseLine (  ) 

Definition at line 628 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercase (  ) 

Definition at line 640 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercaseLine (  ) 

Definition at line 676 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineOver (  ) 

Definition at line 775 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineUnder (  ) 

Definition at line 758 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPaste (  ) 

Definition at line 964 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPasteBefore (  ) 

Definition at line 1000 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPrintCharacterCode (  ) 

Definition at line 1205 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRedo (  ) 

Definition at line 1095 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRepeatLastChange (  ) 

Definition at line 1225 of file katevinormalmode.cpp.

bool KateViNormalMode::commandReplaceCharacter (  ) 

Definition at line 1063 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageDown (  ) 

Definition at line 1185 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageUp (  ) 

Definition at line 1192 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSearch (  ) 

Definition at line 1083 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSetMark (  ) 

Definition at line 1101 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteChar (  ) 

Definition at line 891 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteLine (  ) 

Definition at line 900 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToCmdLine (  ) 

Definition at line 1077 of file katevinormalmode.cpp.

bool KateViNormalMode::commandToOtherEnd (  ) 

Definition at line 501 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUndo (  ) 

Definition at line 1089 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLine (  ) 

Definition at line 1138 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLines (  ) 

Definition at line 1167 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYank (  ) 

Definition at line 905 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankLine (  ) 

Definition at line 923 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankToEOL (  ) 

Definition at line 937 of file katevinormalmode.cpp.

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

Definition at line 383 of file katevinormalmode.cpp.

QRegExp KateViNormalMode::generateMatchingItemRegex (  )  [protected]

Definition at line 2238 of file katevinormalmode.cpp.

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

Definition at line 366 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 77 of file katevinormalmode.cpp.

void KateViNormalMode::initializeCommands (  )  [protected]

Definition at line 2129 of file katevinormalmode.cpp.

void KateViNormalMode::mappingTimerTimeOut (  )  [slot]

Definition at line 64 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionDown (  ) 

Definition at line 1260 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindChar (  ) 

Definition at line 1506 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindCharBackward (  ) 

Definition at line 1532 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionLeft (  ) 

Definition at line 1271 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTF (  ) 

Definition at line 1618 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTFBackward (  ) 

Definition at line 1644 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRight (  ) 

Definition at line 1281 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToChar (  ) 

Definition at line 1563 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToCharBackward (  ) 

Definition at line 1587 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToColumn0 (  ) 

Definition at line 1484 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWORD (  ) 

Definition at line 1446 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWord (  ) 

Definition at line 1424 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWORD (  ) 

Definition at line 1407 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWord (  ) 

Definition at line 1390 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEOL (  ) 

Definition at line 1468 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToFirstCharacterOfLine (  ) 

Definition at line 1493 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineFirst (  ) 

Definition at line 1671 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineLast (  ) 

Definition at line 1684 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMark (  ) 

Definition at line 1717 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMarkLine (  ) 

Definition at line 1745 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMatchingItem (  ) 

Definition at line 1757 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockEnd (  ) 

Definition at line 1907 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockStart (  ) 

Definition at line 1867 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockEnd (  ) 

Definition at line 1927 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockStart (  ) 

Definition at line 1887 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToScreenColumn (  ) 

Definition at line 1702 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionUp (  ) 

Definition at line 1266 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDBackward (  ) 

Definition at line 1368 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWordBackward (  ) 

Definition at line 1324 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDForward (  ) 

Definition at line 1346 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWordForward (  ) 

Definition at line 1291 of file katevinormalmode.cpp.

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

Definition at line 359 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 342 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectABracket (  ) 

Definition at line 2087 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAComma (  ) 

Definition at line 2097 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAParen (  ) 

Definition at line 2077 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteDouble (  ) 

Definition at line 2057 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteSingle (  ) 

Definition at line 2067 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWORD (  ) 

Definition at line 2005 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWord (  ) 

Definition at line 1951 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerBracket (  ) 

Definition at line 2092 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerComma (  ) 

Definition at line 2112 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerParen (  ) 

Definition at line 2082 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteDouble (  ) 

Definition at line 2062 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteSingle (  ) 

Definition at line 2072 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWORD (  ) 

Definition at line 2031 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWord (  ) 

Definition at line 1978 of file katevinormalmode.cpp.


Member Data Documentation

QStack<int> KateViNormalMode::m_awaitingMotionOrTextObject [protected]

Definition at line 211 of file katevinormalmode.h.

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

Definition at line 207 of file katevinormalmode.h.

unsigned int KateViNormalMode::m_countTemp [protected]

Definition at line 203 of file katevinormalmode.h.

QChar KateViNormalMode::m_defaultRegister [protected]

Definition at line 218 of file katevinormalmode.h.

bool KateViNormalMode::m_findWaitingForChar [protected]

Definition at line 204 of file katevinormalmode.h.

KateViKeySequenceParser* KateViNormalMode::m_keyParser [protected]

Definition at line 232 of file katevinormalmode.h.

QString KateViNormalMode::m_keys [protected]

Definition at line 202 of file katevinormalmode.h.

QString KateViNormalMode::m_lastTFcommand [protected]

Definition at line 215 of file katevinormalmode.h.

bool KateViNormalMode::m_mappingKeyPress [protected]

Definition at line 229 of file katevinormalmode.h.

QString KateViNormalMode::m_mappingKeys [protected]

Definition at line 230 of file katevinormalmode.h.

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

Definition at line 222 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingCommands [protected]

Definition at line 209 of file katevinormalmode.h.

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

Definition at line 225 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingMotions [protected]

Definition at line 210 of file katevinormalmode.h.

QRegExp KateViNormalMode::m_matchItemRegex [protected]

Definition at line 226 of file katevinormalmode.h.

int KateViNormalMode::m_motionOperatorIndex [protected]

Definition at line 213 of file katevinormalmode.h.

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

Definition at line 208 of file katevinormalmode.h.

QString KateViNormalMode::m_registerTemp [protected]

Definition at line 219 of file katevinormalmode.h.

int KateViNormalMode::m_waitingForMotionOrTextObject [protected]

Definition at line 205 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
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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