• 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 Member Functions | Protected Attributes | List of all members
KateViModeBase Class Referenceabstract

#include <katevimodebase.h>

Inheritance diagram for KateViModeBase:
Inheritance graph
[legend]

Public Member Functions

 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
 
virtual bool handleKeypress (const QKeyEvent *e)=0
 
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 Member Functions

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

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

Definition at line 64 of file katevimodebase.h.

Constructor & Destructor Documentation

KateViModeBase::KateViModeBase ( )
inline

Definition at line 69 of file katevimodebase.h.

virtual KateViModeBase::~KateViModeBase ( )
inlinevirtual

Definition at line 77 of file katevimodebase.h.

Member Function Documentation

void KateViModeBase::addJump ( KTextEditor::Cursor  cursor)
protected

Definition at line 969 of file katevimodebase.cpp.

void KateViModeBase::addToNumberUnderCursor ( int  count)
protected

Definition at line 1323 of file katevimodebase.cpp.

bool KateViModeBase::deleteRange ( KateViRange &  r,
OperationMode  mode = LineWise,
bool  addToRegister = true 
)
protected

Definition at line 65 of file katevimodebase.cpp.

KateDocument* KateViModeBase::doc ( ) const
inlineprotected

Definition at line 172 of file katevimodebase.h.

void KateViModeBase::error ( const QString &  errorMsg)

Definition at line 1253 of file katevimodebase.cpp.

void KateViModeBase::fillRegister ( const QChar &  reg,
const QString &  text,
OperationMode  flag = CharWise 
)
protected

Definition at line 963 of file katevimodebase.cpp.

int KateViModeBase::findLineStartingWitchChar ( const QChar &  c,
unsigned int  count,
bool  forward = true 
) const
protected

Definition at line 899 of file katevimodebase.cpp.

Cursor KateViModeBase::findNextWordStart ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 312 of file katevimodebase.cpp.

Cursor KateViModeBase::findNextWORDStart ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 374 of file katevimodebase.cpp.

Range KateViModeBase::findPattern ( const QString &  pattern,
bool  backwards,
bool  caseSensitive,
const Cursor &  startFrom,
int  count = -1 
) const

Definition at line 183 of file katevimodebase.cpp.

KateViRange KateViModeBase::findPatternForMotion ( const QString &  pattern,
bool  backwards,
bool  caseSensitive,
const Cursor &  startFrom,
int  count = 1 
) const
protected

Definition at line 299 of file katevimodebase.cpp.

Cursor KateViModeBase::findPrevWordEnd ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 416 of file katevimodebase.cpp.

Cursor KateViModeBase::findPrevWORDEnd ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 456 of file katevimodebase.cpp.

Cursor KateViModeBase::findPrevWordStart ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 493 of file katevimodebase.cpp.

Cursor KateViModeBase::findPrevWORDStart ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 557 of file katevimodebase.cpp.

KateViRange KateViModeBase::findSurrounding ( const QRegExp &  c1,
const QRegExp &  c2,
bool  inner = false 
) const
protected

Definition at line 877 of file katevimodebase.cpp.

KateViRange KateViModeBase::findSurroundingBrackets ( const QChar &  c1,
const QChar &  c2,
bool  inner,
const QChar &  nested1,
const QChar &  nested2 
) const
protected

Definition at line 764 of file katevimodebase.cpp.

KateViRange KateViModeBase::findSurroundingQuotes ( const QChar &  c,
bool  inner = false 
) const
protected

Definition at line 697 of file katevimodebase.cpp.

Cursor KateViModeBase::findWordEnd ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 604 of file katevimodebase.cpp.

Cursor KateViModeBase::findWORDEnd ( int  fromLine,
int  fromColumn,
bool  onlyCurrentLine = false 
) const
protected

Definition at line 645 of file katevimodebase.cpp.

const QChar KateViModeBase::getCharAtVirtualColumn ( QString &  line,
int  virtualColumn,
int  tabWidht 
) const
protected

Definition at line 1290 of file katevimodebase.cpp.

const QChar KateViModeBase::getCharUnderCursor ( ) const
protected

Definition at line 128 of file katevimodebase.cpp.

QChar KateViModeBase::getChosenRegister ( const QChar &  defaultReg) const
protected
Returns
the register given for the command. If no register was given, defaultReg is returned.

Definition at line 940 of file katevimodebase.cpp.

unsigned int KateViModeBase::getCount ( ) const
inlineprotected

Definition at line 131 of file katevimodebase.h.

const QString KateViModeBase::getLine ( int  line = -1) const
protected

Definition at line 123 of file katevimodebase.cpp.

KTextEditor::Cursor KateViModeBase::getNextJump ( KTextEditor::Cursor  cursor)
protected

Definition at line 974 of file katevimodebase.cpp.

KTextEditor::Cursor KateViModeBase::getPrevJump ( KTextEditor::Cursor  cursor)
protected

Definition at line 979 of file katevimodebase.cpp.

const QString KateViModeBase::getRange ( KateViRange &  r,
OperationMode  mode = LineWise 
) const
protected

Definition at line 95 of file katevimodebase.cpp.

QString KateViModeBase::getRegisterContent ( const QChar &  reg)
protected

Definition at line 947 of file katevimodebase.cpp.

OperationMode KateViModeBase::getRegisterFlag ( const QChar &  reg) const
protected

Definition at line 958 of file katevimodebase.cpp.

QString KateViModeBase::getVerbatimKeys ( ) const
Returns
normal mode command accumulated so far

Definition at line 1285 of file katevimodebase.cpp.

const Range KateViModeBase::getWordRangeUnderCursor ( ) const
protected

Definition at line 147 of file katevimodebase.cpp.

const QString KateViModeBase::getWordUnderCursor ( ) const
protected

Definition at line 141 of file katevimodebase.cpp.

KateViRange KateViModeBase::goLineDown ( )
protected

Definition at line 984 of file katevimodebase.cpp.

KateViRange KateViModeBase::goLineUp ( )
protected

Definition at line 989 of file katevimodebase.cpp.

KateViRange KateViModeBase::goLineUpDown ( int  lines)
protected

method for moving up or down one or more lines note: the sticky column is always a virtual column

Definition at line 998 of file katevimodebase.cpp.

KateViRange KateViModeBase::goVisualLineUpDown ( int  lines)
protected

Definition at line 1052 of file katevimodebase.cpp.

virtual bool KateViModeBase::handleKeypress ( const QKeyEvent *  e)
pure virtual

Implemented in KateViNormalMode, KateViInsertMode, and KateViReplaceMode.

bool KateViModeBase::isCounted ( )
inlineprotected

Definition at line 138 of file katevimodebase.h.

unsigned int KateViModeBase::linesDisplayed ( )
inlineprotected

Definition at line 128 of file katevimodebase.h.

void KateViModeBase::message ( const QString &  msg)

Definition at line 1269 of file katevimodebase.cpp.

void KateViModeBase::scrollViewLines ( int  l)
inlineprotected

Definition at line 129 of file katevimodebase.h.

void KateViModeBase::setCount ( unsigned int  count)
inline

Definition at line 85 of file katevimodebase.h.

void KateViModeBase::setRegister ( QChar  reg)
inline

Definition at line 86 of file katevimodebase.h.

bool KateViModeBase::startInsertMode ( )
protected

Definition at line 1190 of file katevimodebase.cpp.

bool KateViModeBase::startNormalMode ( )
protected

Definition at line 1171 of file katevimodebase.cpp.

bool KateViModeBase::startReplaceMode ( )
protected

Definition at line 1199 of file katevimodebase.cpp.

bool KateViModeBase::startVisualBlockMode ( )
protected

Definition at line 1225 of file katevimodebase.cpp.

bool KateViModeBase::startVisualLineMode ( )
protected

Definition at line 1239 of file katevimodebase.cpp.

bool KateViModeBase::startVisualMode ( )
protected

Definition at line 1208 of file katevimodebase.cpp.

void KateViModeBase::switchView ( Direction  direction = Next)
protected

Definition at line 1416 of file katevimodebase.cpp.

void KateViModeBase::updateCursor ( const Cursor &  c) const
protected

Definition at line 932 of file katevimodebase.cpp.

void KateViModeBase::yankToClipBoard ( QChar  chosen_register,
QString  text 
)
protected

Definition at line 54 of file katevimodebase.cpp.

Member Data Documentation

KateViRange KateViModeBase::m_commandRange
protected

Definition at line 160 of file katevimodebase.h.

unsigned int KateViModeBase::m_count
protected

Definition at line 161 of file katevimodebase.h.

bool KateViModeBase::m_currentMotionWasVisualLineUpOrDown
protected

Definition at line 170 of file katevimodebase.h.

QString KateViModeBase::m_extraWordCharacters
protected

Definition at line 165 of file katevimodebase.h.

QPointer<KTextEditor::Message> KateViModeBase::m_infoMessage
protected

Definition at line 180 of file katevimodebase.h.

bool KateViModeBase::m_iscounted
protected

Definition at line 163 of file katevimodebase.h.

QString KateViModeBase::m_keysVerbatim
protected

Definition at line 166 of file katevimodebase.h.

bool KateViModeBase::m_lastMotionWasVisualLineUpOrDown
protected

Definition at line 169 of file katevimodebase.h.

int KateViModeBase::m_oneTimeCountOverride
protected

Definition at line 162 of file katevimodebase.h.

QChar KateViModeBase::m_register
protected

Definition at line 154 of file katevimodebase.h.

int KateViModeBase::m_stickyColumn
protected

Definition at line 168 of file katevimodebase.h.

KateView* KateViModeBase::m_view
protected

Definition at line 172 of file katevimodebase.h.

KateViewInternal* KateViModeBase::m_viewInternal
protected

Definition at line 176 of file katevimodebase.h.

KateViInputModeManager* KateViModeBase::m_viInputModeManager
protected

Definition at line 177 of file katevimodebase.h.


The documentation for this class was generated from the following files:
  • katevimodebase.h
  • katevimodebase.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