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

Kate

Public Slots | Public Member Functions | List of all members
KateViVisualMode Class Reference

#include <katevivisualmode.h>

Inheritance diagram for KateViVisualMode:
Inheritance graph
[legend]

Public Slots

void updateSelection ()
 

Public Member Functions

 KateViVisualMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
 
 ~KateViVisualMode ()
 
ViMode getLastVisualMode () const
 
Cursor getStart ()
 
Cursor getStart () const
 
void goToPos (const Cursor &c)
 
void init ()
 
bool isVisualBlock () const
 
bool isVisualLine () const
 
void reset ()
 
void saveRangeMarks ()
 
void SelectBlockInclusive (Cursor c1, Cursor c2)
 
void SelectInclusive (Cursor c1, Cursor c2)
 
void SelectLines (Range range)
 
void setStart (const Cursor &c)
 
void setVisualBlock (bool l)
 
void setVisualLine (bool l)
 
void setVisualModeType (ViMode mode)
 
void switchStartEnd ()
 
- Public Member Functions inherited from KateViNormalMode
 KateViNormalMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
 
virtual ~KateViNormalMode ()
 
void addCurrentPositionToJumpList ()
 
void beginMonitoringDocumentChanges ()
 
bool commandAbort ()
 
bool commandAddToNumber ()
 
bool commandAlignLine ()
 
bool commandAlignLines ()
 
bool commandAppendToBlock ()
 
bool commandCentreViewOnCursor ()
 
bool commandChange ()
 
bool commandChangeCase ()
 
bool commandChangeCaseRange ()
 
bool commandChangeLine ()
 
bool commandChangeToEOL ()
 
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 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 motionToNextVisualLine ()
 
KateViRange motionToPreviousBraceBlockEnd ()
 
KateViRange motionToPreviousBraceBlockStart ()
 
KateViRange motionToPrevOccurrence ()
 
KateViRange motionToPrevVisualLine ()
 
KateViRange motionToScreenColumn ()
 
KateViRange motionUp ()
 
KateViRange motionUpToFirstNonBlank ()
 
KateViRange motionWordBackward ()
 
KateViRange motionWORDBackward ()
 
KateViRange motionWordForward ()
 
KateViRange motionWORDForward ()
 
KateViRange textObjectABackQuote ()
 
KateViRange textObjectABracket ()
 
KateViRange textObjectAComma ()
 
KateViRange textObjectACurlyBracket ()
 
KateViRange textObjectAInequalitySign ()
 
KateViRange textObjectAParen ()
 
KateViRange textObjectAQuoteDouble ()
 
KateViRange textObjectAQuoteSingle ()
 
KateViRange textObjectAWord ()
 
KateViRange textObjectAWORD ()
 
KateViRange textObjectInnerBackQuote ()
 
KateViRange textObjectInnerBracket ()
 
KateViRange textObjectInnerComma ()
 
KateViRange textObjectInnerCurlyBracket ()
 
KateViRange textObjectInnerInequalitySign ()
 
KateViRange textObjectInnerParen ()
 
KateViRange textObjectInnerQuoteDouble ()
 
KateViRange textObjectInnerQuoteSingle ()
 
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)
 

Additional Inherited Members

- Protected Types inherited from KateViNormalMode
enum  PasteLocation { AtCurrentPosition, AfterCurrentPosition }
 
- Protected Member Functions inherited from KateViNormalMode
Cursor cursorPosAtEndOfPaste (const Cursor &pasteLocation, const QString &pastedText)
 
void executeCommand (const KateViCommand *cmd)
 
QRegExp generateMatchingItemRegex ()
 
OperationMode getOperationMode () const
 
KTextEditor::MovingRange *& highlightedYankForDocument ()
 
void highlightYank (const KateViRange &range)
 
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 lineNumber=-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 Attributes inherited from KateViNormalMode
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
 
KTextEditor::MovingRange * m_highlightedYank
 
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
 

Detailed Description

Definition at line 34 of file katevivisualmode.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file katevivisualmode.cpp.

KateViVisualMode::~KateViVisualMode ( )

Definition at line 49 of file katevivisualmode.cpp.

Member Function Documentation

ViMode KateViVisualMode::getLastVisualMode ( ) const
inline

Definition at line 57 of file katevivisualmode.h.

Cursor KateViVisualMode::getStart ( )
inline

Definition at line 53 of file katevivisualmode.h.

Cursor KateViVisualMode::getStart ( ) const
inline

Definition at line 58 of file katevivisualmode.h.

void KateViVisualMode::goToPos ( const Cursor &  c)

Definition at line 249 of file katevivisualmode.cpp.

void KateViVisualMode::init ( )

Definition at line 196 of file katevivisualmode.cpp.

bool KateViVisualMode::isVisualBlock ( ) const
inline

Definition at line 47 of file katevivisualmode.h.

bool KateViVisualMode::isVisualLine ( ) const
inline

Definition at line 46 of file katevivisualmode.h.

void KateViVisualMode::reset ( )
virtual

Reimplemented from KateViNormalMode.

Definition at line 143 of file katevivisualmode.cpp.

void KateViVisualMode::saveRangeMarks ( )

Definition at line 186 of file katevivisualmode.cpp.

void KateViVisualMode::SelectBlockInclusive ( Cursor  c1,
Cursor  c2 
)

Definition at line 62 of file katevivisualmode.cpp.

void KateViVisualMode::SelectInclusive ( Cursor  c1,
Cursor  c2 
)

Definition at line 53 of file katevivisualmode.cpp.

void KateViVisualMode::SelectLines ( Range  range)

Definition at line 74 of file katevivisualmode.cpp.

void KateViVisualMode::setStart ( const Cursor &  c)
inline

Definition at line 52 of file katevivisualmode.h.

void KateViVisualMode::setVisualBlock ( bool  l)

Definition at line 224 of file katevivisualmode.cpp.

void KateViVisualMode::setVisualLine ( bool  l)

Definition at line 215 of file katevivisualmode.cpp.

void KateViVisualMode::setVisualModeType ( ViMode  mode)

Definition at line 233 of file katevivisualmode.cpp.

void KateViVisualMode::switchStartEnd ( )

Definition at line 239 of file katevivisualmode.cpp.

void KateViVisualMode::updateSelection ( )
slot

Updates the visual mode's range to reflect a new cursor position.

This needs to be called if modifying the range from outside the vi mode, e.g. via mouse selection.

Definition at line 257 of file katevivisualmode.cpp.


The documentation for this class was generated from the following files:
  • katevivisualmode.h
  • katevivisualmode.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 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
  • Applications
  •   Libraries
  •     libkonq
  • 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