Kate
KateViInputModeManager Class Reference
#include <kateviinputmodemanager.h>
Public Member Functions | |
void | addMapping (ViMode mode, const QString &from, const QString &to) |
void | appendKeyEventToLog (const QKeyEvent &e) |
void | changeViMode (ViMode newMode) |
void | clearLog () |
void | feedKeyPresses (const QString &keyPresses) const |
ViMode | getCurrentViMode () const |
const QString | getMapping (ViMode mode, const QString &from) |
const QStringList | getMappings (ViMode mode) |
const QString | getVerbatimKeys () const |
KateViInsertMode * | getViInsertMode () |
KateViNormalMode * | getViNormalMode () |
KateViVisualMode * | getViVisualMode () |
bool | handleKeypress (const QKeyEvent *e) |
bool | isRunningMacro () const |
KateViInputModeManager (KateView *view, KateViewInternal *viewInternal) | |
void | repeatLastChange () |
void | storeChangeCommand () |
void | viEnterInsertMode () |
void | viEnterNormalMode () |
void | viEnterVisualMode (bool visualLine=false) |
~KateViInputModeManager () |
Detailed Description
Definition at line 44 of file kateviinputmodemanager.h.
Constructor & Destructor Documentation
KateViInputModeManager::KateViInputModeManager | ( | KateView * | view, | |
KateViewInternal * | viewInternal | |||
) |
Definition at line 31 of file kateviinputmodemanager.cpp.
KateViInputModeManager::~KateViInputModeManager | ( | ) |
Definition at line 46 of file kateviinputmodemanager.cpp.
Member Function Documentation
add a mapping to the given vi mode
Definition at line 278 of file kateviinputmodemanager.cpp.
void KateViInputModeManager::appendKeyEventToLog | ( | const QKeyEvent & | e | ) |
append a QKeyEvent to the key event log
Definition at line 154 of file kateviinputmodemanager.cpp.
void KateViInputModeManager::changeViMode | ( | ViMode | newMode | ) |
changes the current vi mode to the given mode
Definition at line 202 of file kateviinputmodemanager.cpp.
void KateViInputModeManager::clearLog | ( | ) | [inline] |
clear the key event log
Definition at line 117 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 82 of file kateviinputmodemanager.cpp.
ViMode KateViInputModeManager::getCurrentViMode | ( | ) | const |
- Returns:
- The current vi mode
Definition at line 207 of file kateviinputmodemanager.cpp.
Definition at line 294 of file kateviinputmodemanager.cpp.
const QStringList KateViInputModeManager::getMappings | ( | ViMode | mode | ) |
Definition at line 312 of file kateviinputmodemanager.cpp.
const QString KateViInputModeManager::getVerbatimKeys | ( | ) | const |
Definition at line 258 of file kateviinputmodemanager.cpp.
KateViInsertMode * KateViInputModeManager::getViInsertMode | ( | ) |
- Returns:
- the KateViInsertMode instance
Definition at line 248 of file kateviinputmodemanager.cpp.
KateViNormalMode * KateViInputModeManager::getViNormalMode | ( | ) |
- Returns:
- the KateViNormalMode instance
Definition at line 243 of file kateviinputmodemanager.cpp.
KateViVisualMode * KateViInputModeManager::getViVisualMode | ( | ) |
- Returns:
- the KateViVisualMode instance
Definition at line 253 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 54 of file kateviinputmodemanager.cpp.
bool KateViInputModeManager::isRunningMacro | ( | ) | const [inline] |
- Returns:
- true if running a macro
Definition at line 107 of file kateviinputmodemanager.h.
void KateViInputModeManager::repeatLastChange | ( | ) |
repeat last change by feeding the contents of m_lastChange to feedKeys()
Definition at line 195 of file kateviinputmodemanager.cpp.
void KateViInputModeManager::storeChangeCommand | ( | ) |
copy the contents of the key events log to m_lastChange so that it can be repeated
Definition at line 162 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 224 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 212 of file kateviinputmodemanager.cpp.
void KateViInputModeManager::viEnterVisualMode | ( | bool | visualLine = false |
) |
set visual mode to be the active vi mode and make the needed setup work if visualLine is true, visual linewise mode is started
Definition at line 230 of file kateviinputmodemanager.cpp.
The documentation for this class was generated from the following files: