Kate
KateViInputModeManager Class Reference
#include <kateviinputmodemanager.h>
Public Member Functions | |
void | appendKeyEventToLog (const QKeyEvent &e) |
void | changeViMode (ViMode newMode) |
void | clearLog () |
void | feedKeyPresses (const QString &keyPresses) const |
ViMode | getCurrentViMode () const |
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
void KateViInputModeManager::appendKeyEventToLog | ( | const QKeyEvent & | e | ) |
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] |
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 81 of file kateviinputmodemanager.cpp.
ViMode KateViInputModeManager::getCurrentViMode | ( | ) | const |
const QString KateViInputModeManager::getVerbatimKeys | ( | ) | const |
Definition at line 258 of file kateviinputmodemanager.cpp.
KateViInsertMode * KateViInputModeManager::getViInsertMode | ( | ) |
KateViNormalMode * KateViInputModeManager::getViNormalMode | ( | ) |
KateViVisualMode * KateViInputModeManager::getViVisualMode | ( | ) |
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 53 of file kateviinputmodemanager.cpp.
bool KateViInputModeManager::isRunningMacro | ( | ) | const [inline] |
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: