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

Kate

Public Member Functions | Protected Member Functions | Protected Attributes

KateViModeBase Class Reference

#include <katevimodebase.h>

Inheritance diagram for KateViModeBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KateViModeBase ()
virtual ~KateViModeBase ()
virtual void addMapping (const QString &from, const QString &to)=0
virtual const QString getMapping (const QString &from) const =0
virtual const QStringList getMappings () const =0
QString getVerbatimKeys () const

Protected Member Functions

void addToNumberUnderCursor (int count)
bool deleteRange (KateViRange &r, bool linewise=true, bool addToRegister=true)
KateDocument * doc () const
void error (const QString &errorMsg) const
void fillRegister (const QChar &reg, const QString &text)
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 findPattern (const QString &pattern, bool backwards=false, 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 findSurrounding (const QChar &c1, const QChar &c2, 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
const QString getRange (KateViRange &r, bool linewise=true) const
QString getRegisterContent (const QChar &reg) const
const QString getWordUnderCursor () const
KateViRange goLineDown ()
KateViRange goLineUp ()
KateViRange goLineUpDown (int lines)
unsigned int linesDisplayed ()
void message (const QString &msg) const
void scrollViewLines (int l)
bool startInsertMode ()
bool startNormalMode ()
bool startReplaceMode ()
bool startVisualBlockMode ()
bool startVisualLineMode ()
bool startVisualMode ()
void updateCursor (const Cursor &c) const

Protected Attributes

KateViRange m_commandRange
unsigned int m_count
QString m_extraWordCharacters
QString m_keysVerbatim
QTimer * m_mappingTimer
QChar m_register
int m_stickyColumn
int m_timeoutlen
KateView * m_view
KateViewInternal * m_viewInternal
KateViInputModeManager * m_viInputModeManager

Detailed Description

Definition at line 44 of file katevimodebase.h.


Constructor & Destructor Documentation

KateViModeBase::KateViModeBase ( ) [inline]

Definition at line 49 of file katevimodebase.h.

virtual KateViModeBase::~KateViModeBase ( ) [inline, virtual]

Definition at line 50 of file katevimodebase.h.


Member Function Documentation

virtual void KateViModeBase::addMapping ( const QString &  from,
const QString &  to 
) [pure virtual]

Implemented in KateViInsertMode, KateViNormalMode, and KateViReplaceMode.

void KateViModeBase::addToNumberUnderCursor ( int  count) [protected]

Definition at line 866 of file katevimodebase.cpp.

bool KateViModeBase::deleteRange ( KateViRange &  r,
bool  linewise = true,
bool  addToRegister = true 
) [protected]

Definition at line 51 of file katevimodebase.cpp.

KateDocument* KateViModeBase::doc ( ) const [inline, protected]

Definition at line 118 of file katevimodebase.h.

void KateViModeBase::error ( const QString &  errorMsg) const [protected]

Definition at line 818 of file katevimodebase.cpp.

void KateViModeBase::fillRegister ( const QChar &  reg,
const QString &  text 
) [protected]

Definition at line 666 of file katevimodebase.cpp.

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

Definition at line 607 of file katevimodebase.cpp.

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

Definition at line 193 of file katevimodebase.cpp.

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

Definition at line 255 of file katevimodebase.cpp.

KateViRange KateViModeBase::findPattern ( const QString &  pattern,
bool  backwards = false,
int  count = 1 
) const [protected]

Definition at line 141 of file katevimodebase.cpp.

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

Definition at line 338 of file katevimodebase.cpp.

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

Definition at line 297 of file katevimodebase.cpp.

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

Definition at line 375 of file katevimodebase.cpp.

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

Definition at line 439 of file katevimodebase.cpp.

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

Definition at line 563 of file katevimodebase.cpp.

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

Definition at line 585 of file katevimodebase.cpp.

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

Definition at line 486 of file katevimodebase.cpp.

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

Definition at line 527 of file katevimodebase.cpp.

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

Definition at line 833 of file katevimodebase.cpp.

const QChar KateViModeBase::getCharUnderCursor ( ) const [protected]

Definition at line 118 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 648 of file katevimodebase.cpp.

unsigned int KateViModeBase::getCount ( ) const [inline, protected]

Definition at line 92 of file katevimodebase.h.

const QString KateViModeBase::getLine ( int  lineNumber = -1) const [protected]

Definition at line 104 of file katevimodebase.cpp.

virtual const QString KateViModeBase::getMapping ( const QString &  from) const [pure virtual]

Implemented in KateViInsertMode, KateViNormalMode, and KateViReplaceMode.

virtual const QStringList KateViModeBase::getMappings ( ) const [pure virtual]

Implemented in KateViInsertMode, KateViNormalMode, and KateViReplaceMode.

const QString KateViModeBase::getRange ( KateViRange &  r,
bool  linewise = true 
) const [protected]

Definition at line 78 of file katevimodebase.cpp.

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

Definition at line 655 of file katevimodebase.cpp.

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

Definition at line 828 of file katevimodebase.cpp.

const QString KateViModeBase::getWordUnderCursor ( ) const [protected]

Definition at line 131 of file katevimodebase.cpp.

KateViRange KateViModeBase::goLineDown ( ) [protected]

Definition at line 671 of file katevimodebase.cpp.

KateViRange KateViModeBase::goLineUp ( ) [protected]

Definition at line 676 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 685 of file katevimodebase.cpp.

unsigned int KateViModeBase::linesDisplayed ( ) [inline, protected]

Definition at line 89 of file katevimodebase.h.

void KateViModeBase::message ( const QString &  msg) const [protected]

Definition at line 823 of file katevimodebase.cpp.

void KateViModeBase::scrollViewLines ( int  l) [inline, protected]

Definition at line 90 of file katevimodebase.h.

bool KateViModeBase::startInsertMode ( ) [protected]

Definition at line 755 of file katevimodebase.cpp.

bool KateViModeBase::startNormalMode ( ) [protected]

Definition at line 739 of file katevimodebase.cpp.

bool KateViModeBase::startReplaceMode ( ) [protected]

Definition at line 764 of file katevimodebase.cpp.

bool KateViModeBase::startVisualBlockMode ( ) [protected]

Definition at line 790 of file katevimodebase.cpp.

bool KateViModeBase::startVisualLineMode ( ) [protected]

Definition at line 804 of file katevimodebase.cpp.

bool KateViModeBase::startVisualMode ( ) [protected]

Definition at line 773 of file katevimodebase.cpp.

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

Definition at line 640 of file katevimodebase.cpp.


Member Data Documentation

KateViRange KateViModeBase::m_commandRange [protected]

Definition at line 110 of file katevimodebase.h.

unsigned int KateViModeBase::m_count [protected]

Definition at line 111 of file katevimodebase.h.

QString KateViModeBase::m_extraWordCharacters [protected]

Definition at line 113 of file katevimodebase.h.

QString KateViModeBase::m_keysVerbatim [protected]

Definition at line 114 of file katevimodebase.h.

QTimer* KateViModeBase::m_mappingTimer [protected]

Definition at line 122 of file katevimodebase.h.

QChar KateViModeBase::m_register [protected]

Definition at line 108 of file katevimodebase.h.

int KateViModeBase::m_stickyColumn [protected]

Definition at line 116 of file katevimodebase.h.

int KateViModeBase::m_timeoutlen [protected]

Definition at line 118 of file katevimodebase.h.

KateView* KateViModeBase::m_view [protected]

Definition at line 124 of file katevimodebase.h.

KateViewInternal* KateViModeBase::m_viewInternal [protected]

Definition at line 125 of file katevimodebase.h.

KateViInputModeManager* KateViModeBase::m_viInputModeManager [protected]

Definition at line 126 of file katevimodebase.h.


The documentation for this class was generated from the following files:
  • katevimodebase.h
  • katevimodebase.cpp

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal