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

Kate

Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
KateViNormalMode Class Reference

#include <katevinormalmode.h>

Inheritance diagram for KateViNormalMode:
Inheritance graph
[legend]

Public Member Functions

 KateViNormalMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
 
virtual ~KateViNormalMode ()
 
void addCurrentPositionToJumpList ()
 
void beginMonitoringDocumentChanges ()
 
bool commandAbort ()
 
bool commandAddToNumber ()
 
bool commandAlignLine ()
 
bool commandAlignLines ()
 
bool commandAppendToBlock ()
 
bool commandBottomView (bool onFirst)
 
bool commandBottomViewOnCursor ()
 
bool commandBottomViewOnNonBlank ()
 
bool commandCenterView (bool onFirst)
 
bool commandCenterViewOnCursor ()
 
bool commandCenterViewOnNonBlank ()
 
bool commandChange ()
 
bool commandChangeCase ()
 
bool commandChangeCaseLine ()
 
bool commandChangeCaseRange ()
 
bool commandChangeLine ()
 
bool commandChangeToEOL ()
 
bool commandCloseNocheck ()
 
bool commandCloseWrite ()
 
bool commandCollapseLocal ()
 
bool commandCollapseToplevelNodes ()
 
bool commandDelete ()
 
bool commandDeleteChar ()
 
bool commandDeleteCharBackward ()
 
bool commandDeleteLine ()
 
bool commandDeleteToEOL ()
 
bool commandEnterInsertMode ()
 
bool commandEnterInsertModeAppend ()
 
bool commandEnterInsertModeAppendEOL ()
 
bool commandEnterInsertModeBeforeFirstNonBlankInLine ()
 
bool commandEnterInsertModeLast ()
 
bool commandEnterReplaceMode ()
 
bool commandEnterVisualBlockMode ()
 
bool commandEnterVisualLineMode ()
 
bool commandEnterVisualMode ()
 
bool commandExpandAll ()
 
bool commandExpandLocal ()
 
bool commandFormatLine ()
 
bool commandFormatLines ()
 
bool commandGoToNextJump ()
 
bool commandGoToPrevJump ()
 
bool commandgPaste ()
 
bool commandgPasteBefore ()
 
bool commandIndentedPaste ()
 
bool commandIndentedPasteBefore ()
 
bool commandIndentLine ()
 
bool commandIndentLines ()
 
bool commandJoinLines ()
 
bool commandMakeLowercase ()
 
bool commandMakeLowercaseLine ()
 
bool commandMakeUppercase ()
 
bool commandMakeUppercaseLine ()
 
bool commandOpenNewLineOver ()
 
bool commandOpenNewLineUnder ()
 
bool commandPaste ()
 
bool commandPasteBefore ()
 
bool commandPrependToBlock ()
 
bool commandPrintCharacterCode ()
 
bool commandRedo ()
 
bool commandRepeatLastChange ()
 
bool commandReplaceCharacter ()
 
bool commandReplayMacro ()
 
bool commandReselectVisual ()
 
bool commandScrollHalfPageDown ()
 
bool commandScrollHalfPageUp ()
 
bool commandScrollPageDown ()
 
bool commandScrollPageUp ()
 
bool commandSearchBackward ()
 
bool commandSearchForward ()
 
bool commandSetMark ()
 
bool commandSplitHoriz ()
 
bool commandSplitVert ()
 
bool commandStartRecordingMacro ()
 
bool commandSubstituteChar ()
 
bool commandSubstituteLine ()
 
bool commandSubtractFromNumber ()
 
bool commandSwitchToCmdLine ()
 
bool commandSwitchToDownView ()
 
bool commandSwitchToLeftView ()
 
bool commandSwitchToNextTab ()
 
bool commandSwitchToNextView ()
 
bool commandSwitchToPrevTab ()
 
bool commandSwitchToRightView ()
 
bool commandSwitchToUpView ()
 
bool commandToggleRegionVisibility ()
 
bool commandToOtherEnd ()
 
bool commandTopView (bool onFirst)
 
bool commandTopViewOnCursor ()
 
bool commandTopViewOnNonBlank ()
 
bool commandUndo ()
 
bool commandUnindentLine ()
 
bool commandUnindentLines ()
 
bool commandYank ()
 
bool commandYankLine ()
 
bool commandYankToEOL ()
 
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 motionToAfterParagraph ()
 
KateViRange motionToBeforeParagraph ()
 
KateViRange motionToChar ()
 
KateViRange motionToCharBackward ()
 
KateViRange motionToColumn0 ()
 
KateViRange motionToEndOfPrevWord ()
 
KateViRange motionToEndOfPrevWORD ()
 
KateViRange motionToEndOfWord ()
 
KateViRange motionToEndOfWORD ()
 
KateViRange motionToEOL ()
 
KateViRange motionToFirstCharacterOfLine ()
 
KateViRange motionToFirstLineOfWindow ()
 
KateViRange motionToIncrementalSearchMatch ()
 
KateViRange motionToLastLineOfWindow ()
 
KateViRange motionToLineFirst ()
 
KateViRange motionToLineLast ()
 
KateViRange motionToMark ()
 
KateViRange motionToMarkLine ()
 
KateViRange motionToMatchingItem ()
 
KateViRange motionToMiddleLineOfWindow ()
 
KateViRange motionToNextBraceBlockEnd ()
 
KateViRange motionToNextBraceBlockStart ()
 
KateViRange motionToNextOccurrence ()
 
KateViRange motionToNextSentence ()
 
KateViRange motionToNextVisualLine ()
 
KateViRange motionToPreviousBraceBlockEnd ()
 
KateViRange motionToPreviousBraceBlockStart ()
 
KateViRange motionToPreviousSentence ()
 
KateViRange motionToPrevOccurrence ()
 
KateViRange motionToPrevVisualLine ()
 
KateViRange motionToScreenColumn ()
 
KateViRange motionUp ()
 
KateViRange motionUpToFirstNonBlank ()
 
KateViRange motionWordBackward ()
 
KateViRange motionWORDBackward ()
 
KateViRange motionWordForward ()
 
KateViRange motionWORDForward ()
 
virtual void reset ()
 
KateViRange textObjectABackQuote ()
 
KateViRange textObjectABracket ()
 
KateViRange textObjectAComma ()
 
KateViRange textObjectACurlyBracket ()
 
KateViRange textObjectAInequalitySign ()
 
KateViRange textObjectAParagraph ()
 
KateViRange textObjectAParen ()
 
KateViRange textObjectAQuoteDouble ()
 
KateViRange textObjectAQuoteSingle ()
 
KateViRange textObjectASentence ()
 
KateViRange textObjectAWord ()
 
KateViRange textObjectAWORD ()
 
KateViRange textObjectInnerBackQuote ()
 
KateViRange textObjectInnerBracket ()
 
KateViRange textObjectInnerComma ()
 
KateViRange textObjectInnerCurlyBracket ()
 
KateViRange textObjectInnerInequalitySign ()
 
KateViRange textObjectInnerParagraph ()
 
KateViRange textObjectInnerParen ()
 
KateViRange textObjectInnerQuoteDouble ()
 
KateViRange textObjectInnerQuoteSingle ()
 
KateViRange textObjectInnerSentence ()
 
KateViRange textObjectInnerWord ()
 
KateViRange textObjectInnerWORD ()
 
- 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 &regExp) 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
 

Protected Types

enum  PasteLocation { AtCurrentPosition, AfterCurrentPosition }
 

Protected Member Functions

void addHighlightYank (const Range &range)
 
Cursor cursorPosAtEndOfPaste (const Cursor &pasteLocation, const QString &pastedText)
 
void executeCommand (const KateViCommand *cmd)
 
Cursor findParagraphEnd ()
 
Cursor findParagraphStart ()
 
Cursor findSentenceEnd ()
 
Cursor findSentenceStart ()
 
QRegExp generateMatchingItemRegex ()
 
int getFirstNonBlank (int line=-1) const
 
OperationMode getOperationMode () const
 
virtual void goToPos (const KateViRange &r)
 
QSet< KTextEditor::MovingRange * > & highlightedYankForDocument ()
 
void highlightYank (const KateViRange &range, const OperationMode mode=CharWise)
 
void initializeCommands ()
 
void joinLines (unsigned int from, unsigned int to) const
 
bool motionWillBeUsedWithCommand ()
 
bool paste (KateViNormalMode::PasteLocation pasteLocation, bool isgPaste, bool isIndentedPaste)
 
void reformatLines (unsigned int from, unsigned int to) const
 
void resetParser ()
 
void shrinkRangeAroundCursor (KateViRange &toShrink, const KateViRange &rangeToShrinkTo)
 
KateViRange textObjectComma (bool inner)
 
bool waitingForRegisterOrCharToSearch ()
 
- 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 &reg, 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 &reg)
 
OperationMode getRegisterFlag (const QChar &reg) 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)
 

Protected Attributes

QStack< int > m_awaitingMotionOrTextObject
 
QVector< KateViCommand * > m_commands
 
bool m_commandShouldKeepSelection
 
bool m_commandWithMotion
 
unsigned int m_countTemp
 
Cursor m_currentChangeEndMarker
 
QChar m_defaultRegister
 
bool m_deleteCommand
 
bool m_findWaitingForChar
 
QSet< KTextEditor::MovingRange * > m_highlightedYanks
 
KTextEditor::Attribute::Ptr m_highlightYankAttribute
 
bool m_isRepeatedTFcommand
 
bool m_isUndo
 
KateViKeyParser * m_keyParser
 
QString m_keys
 
bool m_lastMotionWasLinewiseInnerBlock
 
QString m_lastTFcommand
 
bool m_linewiseCommand
 
QVector< int > m_matchingCommands
 
QHash< QString, QString > m_matchingItems
 
QVector< int > m_matchingMotions
 
QRegExp m_matchItemRegex
 
bool m_motionCanChangeWholeVisualModeSelection
 
int m_motionOperatorIndex
 
QVector< KateViMotion * > m_motions
 
bool m_pendingResetIsDueToExit
 
Cursor m_positionWhenIncrementalSearchBegan
 
QString m_registerTemp
 
uint m_scroll_count_limit
 
- 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
 

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)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Commands for the vi normal mode.

Definition at line 49 of file katevinormalmode.h.

Member Enumeration Documentation

enum KateViNormalMode::PasteLocation
protected
Enumerator
AtCurrentPosition 
AfterCurrentPosition 

Definition at line 308 of file katevinormalmode.h.

Constructor & Destructor Documentation

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

Definition at line 53 of file katevinormalmode.cpp.

KateViNormalMode::~KateViNormalMode ( )
virtual

Definition at line 96 of file katevinormalmode.cpp.

Member Function Documentation

void KateViNormalMode::addCurrentPositionToJumpList ( )

Definition at line 554 of file katevinormalmode.cpp.

void KateViNormalMode::addHighlightYank ( const Range &  range)
protected

Definition at line 4182 of file katevinormalmode.cpp.

void KateViNormalMode::beginMonitoringDocumentChanges ( )

Definition at line 486 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAbort ( )

Definition at line 1725 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAddToNumber ( )

Definition at line 1791 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLine ( )

Definition at line 1768 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAlignLines ( )

Definition at line 1778 of file katevinormalmode.cpp.

bool KateViNormalMode::commandAppendToBlock ( )

Definition at line 1820 of file katevinormalmode.cpp.

bool KateViNormalMode::commandBottomView ( bool  onFirst)

Definition at line 1701 of file katevinormalmode.cpp.

bool KateViNormalMode::commandBottomViewOnCursor ( )

Definition at line 1720 of file katevinormalmode.cpp.

bool KateViNormalMode::commandBottomViewOnNonBlank ( )

Definition at line 1715 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCenterView ( bool  onFirst)

Definition at line 1653 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCenterViewOnCursor ( )

Definition at line 1672 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCenterViewOnNonBlank ( )

Definition at line 1667 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChange ( )

Definition at line 1133 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeCase ( )

Definition at line 911 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeCaseLine ( )

Definition at line 1005 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeCaseRange ( )

Definition at line 985 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeLine ( )

Definition at line 1184 of file katevinormalmode.cpp.

bool KateViNormalMode::commandChangeToEOL ( )

Definition at line 1172 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCloseNocheck ( )

Definition at line 1962 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCloseWrite ( )

Definition at line 1968 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCollapseLocal ( )

Definition at line 1974 of file katevinormalmode.cpp.

bool KateViNormalMode::commandCollapseToplevelNodes ( )

Definition at line 1928 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDelete ( )

Definition at line 754 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteChar ( )

Definition at line 1359 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteCharBackward ( )

Definition at line 1384 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteLine ( )

Definition at line 721 of file katevinormalmode.cpp.

bool KateViNormalMode::commandDeleteToEOL ( )

Definition at line 760 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertMode ( )

enter insert mode at the cursor position

Definition at line 566 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppend ( )

enter insert mode after the current character

Definition at line 577 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeAppendEOL ( )

start insert mode after the last character of the line

Definition at line 603 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeBeforeFirstNonBlankInLine ( )

Definition at line 614 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterInsertModeLast ( )

enter insert mode at the last insert position

Definition at line 630 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterReplaceMode ( )

Definition at line 716 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualBlockMode ( )

Definition at line 651 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualLineMode ( )

Definition at line 641 of file katevinormalmode.cpp.

bool KateViNormalMode::commandEnterVisualMode ( )

Definition at line 696 of file katevinormalmode.cpp.

bool KateViNormalMode::commandExpandAll ( )

Definition at line 1984 of file katevinormalmode.cpp.

bool KateViNormalMode::commandExpandLocal ( )

Definition at line 1992 of file katevinormalmode.cpp.

bool KateViNormalMode::commandFormatLine ( )

Definition at line 1913 of file katevinormalmode.cpp.

bool KateViNormalMode::commandFormatLines ( )

Definition at line 1922 of file katevinormalmode.cpp.

bool KateViNormalMode::commandGoToNextJump ( )

Definition at line 1844 of file katevinormalmode.cpp.

bool KateViNormalMode::commandGoToPrevJump ( )

Definition at line 1851 of file katevinormalmode.cpp.

bool KateViNormalMode::commandgPaste ( )

Definition at line 1337 of file katevinormalmode.cpp.

bool KateViNormalMode::commandgPasteBefore ( )

Definition at line 1344 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentedPaste ( )

Definition at line 1349 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentedPasteBefore ( )

Definition at line 1354 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLine ( )

Definition at line 1567 of file katevinormalmode.cpp.

bool KateViNormalMode::commandIndentLines ( )

Definition at line 1585 of file katevinormalmode.cpp.

bool KateViNormalMode::commandJoinLines ( )

Definition at line 1079 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercase ( )

Definition at line 821 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeLowercaseLine ( )

Definition at line 846 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercase ( )

Definition at line 864 of file katevinormalmode.cpp.

bool KateViNormalMode::commandMakeUppercaseLine ( )

Definition at line 893 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineOver ( )

Definition at line 1052 of file katevinormalmode.cpp.

bool KateViNormalMode::commandOpenNewLineUnder ( )

Definition at line 1032 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPaste ( )

Definition at line 1321 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPasteBefore ( )

Definition at line 1327 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPrependToBlock ( )

Definition at line 1805 of file katevinormalmode.cpp.

bool KateViNormalMode::commandPrintCharacterCode ( )

Definition at line 1732 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRedo ( )

Definition at line 1542 of file katevinormalmode.cpp.

bool KateViNormalMode::commandRepeatLastChange ( )

Definition at line 1753 of file katevinormalmode.cpp.

bool KateViNormalMode::commandReplaceCharacter ( )

Definition at line 1410 of file katevinormalmode.cpp.

bool KateViNormalMode::commandReplayMacro ( )

Definition at line 1944 of file katevinormalmode.cpp.

bool KateViNormalMode::commandReselectVisual ( )

Definition at line 661 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollHalfPageDown ( )

Definition at line 1644 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollHalfPageUp ( )

Definition at line 1634 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageDown ( )

Definition at line 1614 of file katevinormalmode.cpp.

bool KateViNormalMode::commandScrollPageUp ( )

Definition at line 1624 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSearchBackward ( )

Definition at line 1494 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSearchForward ( )

Definition at line 1509 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSetMark ( )

Definition at line 1557 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSplitHoriz ( )

Definition at line 1883 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSplitVert ( )

Definition at line 1888 of file katevinormalmode.cpp.

bool KateViNormalMode::commandStartRecordingMacro ( )

Definition at line 1937 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteChar ( )

Definition at line 1216 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubstituteLine ( )

Definition at line 1228 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSubtractFromNumber ( )

Definition at line 1798 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToCmdLine ( )

Definition at line 1462 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToDownView ( )

Definition at line 1863 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToLeftView ( )

Definition at line 1858 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToNextTab ( )

Definition at line 1893 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToNextView ( )

Definition at line 1878 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToPrevTab ( )

Definition at line 1903 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToRightView ( )

Definition at line 1873 of file katevinormalmode.cpp.

bool KateViNormalMode::commandSwitchToUpView ( )

Definition at line 1868 of file katevinormalmode.cpp.

bool KateViNormalMode::commandToggleRegionVisibility ( )

Definition at line 2002 of file katevinormalmode.cpp.

bool KateViNormalMode::commandToOtherEnd ( )

Definition at line 706 of file katevinormalmode.cpp.

bool KateViNormalMode::commandTopView ( bool  onFirst)

Definition at line 1677 of file katevinormalmode.cpp.

bool KateViNormalMode::commandTopViewOnCursor ( )

Definition at line 1696 of file katevinormalmode.cpp.

bool KateViNormalMode::commandTopViewOnNonBlank ( )

Definition at line 1691 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUndo ( )

Definition at line 1524 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLine ( )

Definition at line 1576 of file katevinormalmode.cpp.

bool KateViNormalMode::commandUnindentLines ( )

Definition at line 1600 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYank ( )

Definition at line 1234 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankLine ( )

Definition at line 1253 of file katevinormalmode.cpp.

bool KateViNormalMode::commandYankToEOL ( )

Definition at line 1273 of file katevinormalmode.cpp.

Cursor KateViNormalMode::cursorPosAtEndOfPaste ( const Cursor &  pasteLocation,
const QString &  pastedText 
)
protected

Definition at line 4020 of file katevinormalmode.cpp.

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

Definition at line 511 of file katevinormalmode.cpp.

Cursor KateViNormalMode::findParagraphEnd ( )
protected

Definition at line 3415 of file katevinormalmode.cpp.

Cursor KateViNormalMode::findParagraphStart ( )
protected

Definition at line 3392 of file katevinormalmode.cpp.

Cursor KateViNormalMode::findSentenceEnd ( )
protected

Definition at line 3352 of file katevinormalmode.cpp.

Cursor KateViNormalMode::findSentenceStart ( )
protected

Definition at line 3318 of file katevinormalmode.cpp.

QRegExp KateViNormalMode::generateMatchingItemRegex ( )
protected

Definition at line 3873 of file katevinormalmode.cpp.

int KateViNormalMode::getFirstNonBlank ( int  line = -1) const
protected

Get the index of the first non-blank character from the given line.

Parameters
lineThe line to be picked. The current line will picked instead if this parameter is set to a negative value.
Returns
the index of the first non-blank character from the given line. If a non-space character cannot be found, the 0 is returned.

Definition at line 4055 of file katevinormalmode.cpp.

OperationMode KateViNormalMode::getOperationMode ( ) const
protected

Definition at line 3905 of file katevinormalmode.cpp.

void KateViNormalMode::goToPos ( const KateViRange &  r)
protectedvirtual

Definition at line 494 of file katevinormalmode.cpp.

bool KateViNormalMode::handleKeypress ( const QKeyEvent *  e)
virtual

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

Implements KateViModeBase.

Definition at line 107 of file katevinormalmode.cpp.

QSet< KTextEditor::MovingRange * > & KateViNormalMode::highlightedYankForDocument ( )
protected

Definition at line 4208 of file katevinormalmode.cpp.

void KateViNormalMode::highlightYank ( const KateViRange &  range,
const OperationMode  mode = CharWise 
)
protected

Definition at line 4167 of file katevinormalmode.cpp.

void KateViNormalMode::initializeCommands ( )
protected

Definition at line 3671 of file katevinormalmode.cpp.

void KateViNormalMode::joinLines ( unsigned int  from,
unsigned int  to 
) const
protected

Definition at line 4036 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionDown ( )

Definition at line 2017 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionDownToFirstNonBlank ( )

Definition at line 2084 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindChar ( )

Definition at line 2329 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindCharBackward ( )

Definition at line 2360 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindNext ( )

Definition at line 2543 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionFindPrev ( )

Definition at line 2524 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionLeft ( )

Definition at line 2027 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionPageDown ( )

Definition at line 2056 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionPageUp ( )

Definition at line 2070 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTF ( )

Definition at line 2477 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRepeatlastTFBackward ( )

Definition at line 2500 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionRight ( )

Definition at line 2041 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToAfterParagraph ( )

Definition at line 3052 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToBeforeParagraph ( )

Definition at line 3024 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToChar ( )

Definition at line 2398 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToCharBackward ( )

Definition at line 2436 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToColumn0 ( )

Definition at line 2309 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWord ( )

Definition at line 2240 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfPrevWORD ( )

Definition at line 2267 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWord ( )

Definition at line 2201 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEndOfWORD ( )

Definition at line 2218 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToEOL ( )

Definition at line 2293 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToFirstCharacterOfLine ( )

Definition at line 2318 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToFirstLineOfWindow ( )

Definition at line 2913 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToIncrementalSearchMatch ( )

Definition at line 3083 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLastLineOfWindow ( )

Definition at line 2938 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineFirst ( )

Definition at line 2563 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToLineLast ( )

Definition at line 2576 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMark ( )

Definition at line 2609 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMarkLine ( )

Definition at line 2636 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMatchingItem ( )

Definition at line 2648 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToMiddleLineOfWindow ( )

Definition at line 2926 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockEnd ( )

Definition at line 2826 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextBraceBlockStart ( )

Definition at line 2770 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextOccurrence ( )

Definition at line 2881 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextSentence ( )

Definition at line 2999 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToNextVisualLine ( )

Definition at line 2951 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockEnd ( )

Definition at line 2857 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousBraceBlockStart ( )

Definition at line 2801 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPreviousSentence ( )

Definition at line 2959 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPrevOccurrence ( )

Definition at line 2896 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToPrevVisualLine ( )

Definition at line 2955 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionToScreenColumn ( )

Definition at line 2594 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionUp ( )

Definition at line 2022 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionUpToFirstNonBlank ( )

Definition at line 2092 of file katevinormalmode.cpp.

bool KateViNormalMode::motionWillBeUsedWithCommand ( )
inlineprotected

Definition at line 341 of file katevinormalmode.h.

KateViRange KateViNormalMode::motionWordBackward ( )

Definition at line 2134 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDBackward ( )

Definition at line 2179 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWordForward ( )

Definition at line 2100 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::motionWORDForward ( )

Definition at line 2157 of file katevinormalmode.cpp.

bool KateViNormalMode::paste ( KateViNormalMode::PasteLocation  pasteLocation,
bool  isgPaste,
bool  isIndentedPaste 
)
protected

Definition at line 3926 of file katevinormalmode.cpp.

void KateViNormalMode::reformatLines ( unsigned int  from,
unsigned int  to 
) const
protected

Definition at line 4049 of file katevinormalmode.cpp.

void KateViNormalMode::reset ( )
virtual

Reimplemented in KateViVisualMode.

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

void KateViNormalMode::shrinkRangeAroundCursor ( KateViRange &  toShrink,
const KateViRange &  rangeToShrinkTo 
)
protected

Definition at line 4070 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectABackQuote ( )

Definition at line 3553 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectABracket ( )

Definition at line 3576 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAComma ( )

Definition at line 3659 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectACurlyBracket ( )

Definition at line 3588 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAInequalitySign ( )

Definition at line 3647 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAParagraph ( )

Definition at line 3496 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAParen ( )

Definition at line 3564 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteDouble ( )

Definition at line 3533 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAQuoteSingle ( )

Definition at line 3543 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectASentence ( )

Definition at line 3453 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWord ( )

Definition at line 3095 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectAWORD ( )

Definition at line 3207 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectComma ( bool  inner)
protected

Definition at line 4134 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerBackQuote ( )

Definition at line 3558 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerBracket ( )

Definition at line 3582 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerComma ( )

Definition at line 3664 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerCurlyBracket ( )

Definition at line 3594 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerInequalitySign ( )

Definition at line 3653 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerParagraph ( )

Definition at line 3482 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerParen ( )

Definition at line 3570 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteDouble ( )

Definition at line 3538 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerQuoteSingle ( )

Definition at line 3548 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerSentence ( )

Definition at line 3439 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWord ( )

Definition at line 3171 of file katevinormalmode.cpp.

KateViRange KateViNormalMode::textObjectInnerWORD ( )

Definition at line 3283 of file katevinormalmode.cpp.

bool KateViNormalMode::waitingForRegisterOrCharToSearch ( )
protected

Definition at line 4215 of file katevinormalmode.cpp.

Member Data Documentation

QStack<int> KateViNormalMode::m_awaitingMotionOrTextObject
protected

Definition at line 340 of file katevinormalmode.h.

QVector<KateViCommand *> KateViNormalMode::m_commands
protected

Definition at line 336 of file katevinormalmode.h.

bool KateViNormalMode::m_commandShouldKeepSelection
protected

Definition at line 353 of file katevinormalmode.h.

bool KateViNormalMode::m_commandWithMotion
protected

Definition at line 349 of file katevinormalmode.h.

unsigned int KateViNormalMode::m_countTemp
protected

Definition at line 333 of file katevinormalmode.h.

Cursor KateViNormalMode::m_currentChangeEndMarker
protected

Definition at line 379 of file katevinormalmode.h.

QChar KateViNormalMode::m_defaultRegister
protected

Definition at line 360 of file katevinormalmode.h.

bool KateViNormalMode::m_deleteCommand
protected

Definition at line 355 of file katevinormalmode.h.

bool KateViNormalMode::m_findWaitingForChar
protected

Definition at line 334 of file katevinormalmode.h.

QSet<KTextEditor::MovingRange *> KateViNormalMode::m_highlightedYanks
protected

Definition at line 373 of file katevinormalmode.h.

KTextEditor::Attribute::Ptr KateViNormalMode::m_highlightYankAttribute
protected

Definition at line 372 of file katevinormalmode.h.

bool KateViNormalMode::m_isRepeatedTFcommand
protected

Definition at line 346 of file katevinormalmode.h.

bool KateViNormalMode::m_isUndo
protected

Definition at line 381 of file katevinormalmode.h.

KateViKeyParser* KateViNormalMode::m_keyParser
protected

Definition at line 367 of file katevinormalmode.h.

QString KateViNormalMode::m_keys
protected

Definition at line 332 of file katevinormalmode.h.

bool KateViNormalMode::m_lastMotionWasLinewiseInnerBlock
protected

Definition at line 350 of file katevinormalmode.h.

QString KateViNormalMode::m_lastTFcommand
protected

Definition at line 345 of file katevinormalmode.h.

bool KateViNormalMode::m_linewiseCommand
protected

Definition at line 348 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingCommands
protected

Definition at line 338 of file katevinormalmode.h.

QHash<QString, QString> KateViNormalMode::m_matchingItems
protected

Definition at line 364 of file katevinormalmode.h.

QVector<int> KateViNormalMode::m_matchingMotions
protected

Definition at line 339 of file katevinormalmode.h.

QRegExp KateViNormalMode::m_matchItemRegex
protected

Definition at line 365 of file katevinormalmode.h.

bool KateViNormalMode::m_motionCanChangeWholeVisualModeSelection
protected

Definition at line 351 of file katevinormalmode.h.

int KateViNormalMode::m_motionOperatorIndex
protected

Definition at line 341 of file katevinormalmode.h.

QVector<KateViMotion *> KateViNormalMode::m_motions
protected

Definition at line 337 of file katevinormalmode.h.

bool KateViNormalMode::m_pendingResetIsDueToExit
protected

Definition at line 370 of file katevinormalmode.h.

Cursor KateViNormalMode::m_positionWhenIncrementalSearchBegan
protected

Definition at line 383 of file katevinormalmode.h.

QString KateViNormalMode::m_registerTemp
protected

Definition at line 361 of file katevinormalmode.h.

uint KateViNormalMode::m_scroll_count_limit
protected

Definition at line 357 of file katevinormalmode.h.


The documentation for this class was generated from the following files:
  • katevinormalmode.h
  • katevinormalmode.cpp
This file is part of the KDE documentation.
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.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal