• 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 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 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 ()
 
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
 

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)
 
- Protected Types inherited from KateViNormalMode
enum  PasteLocation { AtCurrentPosition, AfterCurrentPosition }
 
- Protected Member Functions inherited from KateViNormalMode
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
 
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)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- 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
 
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
 
- Properties inherited from QObject
 objectName
 

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 55 of file katevivisualmode.h.

Cursor KateViVisualMode::getStart ( )
inline

Definition at line 51 of file katevivisualmode.h.

Cursor KateViVisualMode::getStart ( ) const
inline

Definition at line 56 of file katevivisualmode.h.

void KateViVisualMode::goToPos ( const Cursor &  c)

Definition at line 229 of file katevivisualmode.cpp.

void KateViVisualMode::init ( )

Definition at line 197 of file katevivisualmode.cpp.

bool KateViVisualMode::isVisualBlock ( ) const
inline

Definition at line 45 of file katevivisualmode.h.

bool KateViVisualMode::isVisualLine ( ) const
inline

Definition at line 44 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 187 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 50 of file katevivisualmode.h.

void KateViVisualMode::setVisualModeType ( ViMode  mode)

Definition at line 213 of file katevivisualmode.cpp.

void KateViVisualMode::switchStartEnd ( )

Definition at line 219 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 237 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-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