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

Kate

Public Member Functions

KateViInputModeManager Class Reference

#include <kateviinputmodemanager.h>

List of all members.

Public Member Functions

 KateViInputModeManager (KateView *view, KateViewInternal *viewInternal)
 ~KateViInputModeManager ()
void appendKeyEventToLog (const QKeyEvent &e)
void changeViMode (ViMode newMode)
void clearLog ()
void feedKeyPresses (const QString &keyPresses) const
ViMode getCurrentViMode () const
const QString getLastSearchPattern () const
const QString getVerbatimKeys () const
KateViInsertMode * getViInsertMode ()
KateViNormalMode * getViNormalMode ()
KateViReplaceMode * getViReplaceMode ()
KateViVisualMode * getViVisualMode ()
bool handleKeypress (const QKeyEvent *e)
bool isRunningMacro () const
bool lastSearchBackwards () const
void readSessionConfig (const KConfigGroup &config)
void repeatLastChange ()
void setLastSearchBackwards (bool b)
void setLastSearchPattern (const QString &p)
void storeChangeCommand ()
void viEnterInsertMode ()
void viEnterNormalMode ()
void viEnterReplaceMode ()
void viEnterVisualMode (ViMode visualMode=VisualMode)
void writeSessionConfig (KConfigGroup &config)

Detailed Description

Definition at line 49 of file kateviinputmodemanager.h.


Constructor & Destructor Documentation

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

Definition at line 40 of file kateviinputmodemanager.cpp.

KateViInputModeManager::~KateViInputModeManager ( )

Definition at line 57 of file kateviinputmodemanager.cpp.


Member Function Documentation

void KateViInputModeManager::appendKeyEventToLog ( const QKeyEvent &  e)

append a QKeyEvent to the key event log

Definition at line 173 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::changeViMode ( ViMode  newMode)

changes the current vi mode to the given mode

Definition at line 221 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::clearLog ( ) [inline]

clear the key event log

Definition at line 131 of file kateviinputmodemanager.h.

void KateViInputModeManager::feedKeyPresses ( const QString &  keyPresses) const

feed key the given list of key presses to the key handling code, one by one

Definition at line 100 of file kateviinputmodemanager.cpp.

ViMode KateViInputModeManager::getCurrentViMode ( ) const
Returns:
The current vi mode

Definition at line 226 of file kateviinputmodemanager.cpp.

const QString KateViInputModeManager::getLastSearchPattern ( ) const [inline]

get the last search term used

Definition at line 146 of file kateviinputmodemanager.h.

const QString KateViInputModeManager::getVerbatimKeys ( ) const

Definition at line 286 of file kateviinputmodemanager.cpp.

KateViInsertMode * KateViInputModeManager::getViInsertMode ( )
Returns:
the KateViInsertMode instance

Definition at line 271 of file kateviinputmodemanager.cpp.

KateViNormalMode * KateViInputModeManager::getViNormalMode ( )
Returns:
the KateViNormalMode instance

Definition at line 266 of file kateviinputmodemanager.cpp.

KateViReplaceMode * KateViInputModeManager::getViReplaceMode ( )
Returns:
the KateViReplaceMode instance

Definition at line 281 of file kateviinputmodemanager.cpp.

KateViVisualMode * KateViInputModeManager::getViVisualMode ( )
Returns:
the KateViVisualMode instance

Definition at line 276 of file kateviinputmodemanager.cpp.

bool KateViInputModeManager::handleKeypress ( const QKeyEvent *  e)

feed key the given key press to the command parser

Returns:
true if keypress was is [part of a] command, false otherwise

Definition at line 65 of file kateviinputmodemanager.cpp.

bool KateViInputModeManager::isRunningMacro ( ) const [inline]
Returns:
true if running a macro

Definition at line 121 of file kateviinputmodemanager.h.

bool KateViInputModeManager::lastSearchBackwards ( ) const [inline]

get search direction of last search.

(true if backwards, false if forwards)

Definition at line 156 of file kateviinputmodemanager.h.

void KateViInputModeManager::readSessionConfig ( const KConfigGroup &  config)

Definition at line 308 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::repeatLastChange ( )

repeat last change by feeding the contents of m_lastChange to feedKeys()

Definition at line 214 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::setLastSearchBackwards ( bool  b) [inline]

set search direction of last search.

(true if backwards, false if forwards)

Definition at line 161 of file kateviinputmodemanager.h.

void KateViInputModeManager::setLastSearchPattern ( const QString &  p) [inline]

record a search term so that it will be used with 'n' and 'N'

Definition at line 151 of file kateviinputmodemanager.h.

void KateViInputModeManager::storeChangeCommand ( )

copy the contents of the key events log to m_lastChange so that it can be repeated

Definition at line 181 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::viEnterInsertMode ( )

set insert mode to be the active vi mode and perform the needed setup work

Definition at line 244 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::viEnterNormalMode ( )

set normal mode to be the active vi mode and perform the needed setup work

Definition at line 231 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::viEnterReplaceMode ( )

set replace mode to be the active vi mode and make the needed setup work

Definition at line 259 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::viEnterVisualMode ( ViMode  visualMode = VisualMode)

set visual mode to be the active vi mode and make the needed setup work

Definition at line 250 of file kateviinputmodemanager.cpp.

void KateViInputModeManager::writeSessionConfig ( KConfigGroup &  config)

Definition at line 321 of file kateviinputmodemanager.cpp.


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