• 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
KateViInsertMode Class Reference

#include <kateviinsertmode.h>

Inheritance diagram for KateViInsertMode:
Inheritance graph
[legend]

Public Member Functions

 KateViInsertMode (KateViInputModeManager *viInputModeManager, KateView *view, KateViewInternal *viewInternal)
 
 ~KateViInsertMode ()
 
bool commandCompleteNext ()
 
bool commandCompletePrevious ()
 
bool commandDeleteCharBackward ()
 
bool commandDeleteWord ()
 
bool commandIndent ()
 
bool commandInsertContentOfRegister ()
 
bool commandInsertFromAbove ()
 
bool commandInsertFromBelow ()
 
bool commandMoveOneWordLeft ()
 
bool commandMoveOneWordRight ()
 
bool commandNewLine ()
 
bool commandSwitchToNormalModeForJustOneCommand ()
 
bool commandToFirstCharacterInFile ()
 
bool commandToLastCharacterInFile ()
 
bool commandUnindent ()
 
bool handleKeypress (const QKeyEvent *e)
 
void setBlockAppendMode (KateViRange blockRange, BlockInsert b)
 
void setBlockPrependMode (KateViRange blockRange)
 
void setCount (int count)
 
void setCountedRepeatsBeginOnNewLine (bool countedRepeatsBeginOnNewLine)
 
- 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)
 

Protected Member Functions

void completionFinished ()
 
int findNextMergeableBracketPos (const Cursor &startPos)
 
void leaveInsertMode (bool force=false)
 
void replayCompletion ()
 
- 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

BlockInsert m_blockInsert
 
KateViRange m_blockRange
 
unsigned int m_count
 
bool m_countedRepeatsBeginOnNewLine
 
unsigned int m_eolPos
 
bool m_isExecutingCompletion
 
QString m_keys
 
QString m_registerTemp
 
QString m_textInsertedByCompletion
 
Cursor m_textInsertedByCompletionEndPos
 
- 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 45 of file kateviinsertmode.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file kateviinsertmode.cpp.

KateViInsertMode::~KateViInsertMode ( )

Definition at line 53 of file kateviinsertmode.cpp.

Member Function Documentation

bool KateViInsertMode::commandCompleteNext ( )

Definition at line 204 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandCompletePrevious ( )

Definition at line 221 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandDeleteCharBackward ( )

Definition at line 117 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandDeleteWord ( )

Definition at line 96 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandIndent ( )

Definition at line 142 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandInsertContentOfRegister ( )

Definition at line 239 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandInsertFromAbove ( )

Definition at line 58 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandInsertFromBelow ( )

Definition at line 77 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandMoveOneWordLeft ( )

Definition at line 181 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandMoveOneWordRight ( )

Definition at line 190 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandNewLine ( )

Definition at line 136 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandSwitchToNormalModeForJustOneCommand ( )

Definition at line 273 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandToFirstCharacterInFile ( )

Definition at line 156 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandToLastCharacterInFile ( )

Definition at line 168 of file kateviinsertmode.cpp.

bool KateViInsertMode::commandUnindent ( )

Definition at line 149 of file kateviinsertmode.cpp.

void KateViInsertMode::completionFinished ( )
protected

Definition at line 575 of file kateviinsertmode.cpp.

int KateViInsertMode::findNextMergeableBracketPos ( const Cursor &  startPos)
protected

Definition at line 678 of file kateviinsertmode.cpp.

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

checks if the key is a valid command

Returns
true if a command was completed and executed, false otherwise

Implements KateViModeBase.

Definition at line 292 of file kateviinsertmode.cpp.

void KateViInsertMode::leaveInsertMode ( bool  force = false)
protected

Definition at line 479 of file kateviinsertmode.cpp.

void KateViInsertMode::replayCompletion ( )
protected

Definition at line 589 of file kateviinsertmode.cpp.

void KateViInsertMode::setBlockAppendMode ( KateViRange  blockRange,
BlockInsert  b 
)

Definition at line 559 of file kateviinsertmode.cpp.

void KateViInsertMode::setBlockPrependMode ( KateViRange  blockRange)

Definition at line 550 of file kateviinsertmode.cpp.

void KateViInsertMode::setCount ( int  count)
inline

Definition at line 79 of file kateviinsertmode.h.

void KateViInsertMode::setCountedRepeatsBeginOnNewLine ( bool  countedRepeatsBeginOnNewLine)
inline

Definition at line 80 of file kateviinsertmode.h.

Member Data Documentation

BlockInsert KateViInsertMode::m_blockInsert
protected

Definition at line 80 of file kateviinsertmode.h.

KateViRange KateViInsertMode::m_blockRange
protected

Definition at line 85 of file kateviinsertmode.h.

unsigned int KateViInsertMode::m_count
protected

Definition at line 90 of file kateviinsertmode.h.

bool KateViInsertMode::m_countedRepeatsBeginOnNewLine
protected

Definition at line 91 of file kateviinsertmode.h.

unsigned int KateViInsertMode::m_eolPos
protected

Definition at line 84 of file kateviinsertmode.h.

bool KateViInsertMode::m_isExecutingCompletion
protected

Definition at line 93 of file kateviinsertmode.h.

QString KateViInsertMode::m_keys
protected

Definition at line 88 of file kateviinsertmode.h.

QString KateViInsertMode::m_registerTemp
protected

Definition at line 87 of file kateviinsertmode.h.

QString KateViInsertMode::m_textInsertedByCompletion
protected

Definition at line 94 of file kateviinsertmode.h.

Cursor KateViInsertMode::m_textInsertedByCompletionEndPos
protected

Definition at line 95 of file kateviinsertmode.h.


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