KateVi::EmulatedCommandBar
#include <emulatedcommandbar.h>
Public Types | |
enum | Mode { NoMode , SearchForward , SearchBackward , Command } |
Public Member Functions | |
EmulatedCommandBar (KateViInputMode *viInputMode, InputModeManager *viInputModeManager, QWidget *parent=nullptr) | |
KTEXTEDITOR_EXPORT QString | executeCommand (const QString &commandToExecute) |
bool | handleKeyPress (const QKeyEvent *keyEvent) |
void | init (Mode mode, const QString &initialText=QString()) |
bool | isActive () const |
bool | isSendingSyntheticSearchCompletedKeypress () |
KTEXTEDITOR_EXPORT void | setCommandResponseMessageTimeout (long commandResponseMessageTimeOutMS) |
void | setViInputModeManager (InputModeManager *viInputModeManager) |
void | startInteractiveSearchAndReplace (std::shared_ptr< SedReplace::InteractiveSedReplacer > interactiveSedReplace) |
Detailed Description
A KateViewBarWidget that attempts to emulate some of the features of Vim's own command bar, including insertion of register contents via ctr-r<registername>; dismissal via ctrl-c and ctrl-[; bi-directional incremental searching, with SmartCase; interactive sed-replace; plus a few extensions such as completion from document and navigable sed search and sed replace history.
Definition at line 37 of file emulatedcommandbar.h.
Member Enumeration Documentation
◆ Mode
enum KateVi::EmulatedCommandBar::Mode |
Definition at line 40 of file emulatedcommandbar.h.
Constructor & Destructor Documentation
◆ EmulatedCommandBar()
|
explicit |
Definition at line 54 of file emulatedcommandbar.cpp.
Member Function Documentation
◆ executeCommand()
Definition at line 336 of file emulatedcommandbar.cpp.
◆ handleKeyPress()
bool EmulatedCommandBar::handleKeyPress | ( | const QKeyEvent * | keyEvent | ) |
Definition at line 255 of file emulatedcommandbar.cpp.
◆ init()
void EmulatedCommandBar::init | ( | EmulatedCommandBar::Mode | mode, |
const QString & | initialText = QString() ) |
Definition at line 85 of file emulatedcommandbar.cpp.
◆ isActive()
bool EmulatedCommandBar::isActive | ( | ) | const |
Definition at line 114 of file emulatedcommandbar.cpp.
◆ isSendingSyntheticSearchCompletedKeypress()
bool EmulatedCommandBar::isSendingSyntheticSearchCompletedKeypress | ( | ) |
Definition at line 302 of file emulatedcommandbar.cpp.
◆ setCommandResponseMessageTimeout()
void EmulatedCommandBar::setCommandResponseMessageTimeout | ( | long | commandResponseMessageTimeOutMS | ) |
Definition at line 119 of file emulatedcommandbar.cpp.
◆ setViInputModeManager()
void EmulatedCommandBar::setViInputModeManager | ( | InputModeManager * | viInputModeManager | ) |
Definition at line 367 of file emulatedcommandbar.cpp.
◆ startInteractiveSearchAndReplace()
void EmulatedCommandBar::startInteractiveSearchAndReplace | ( | std::shared_ptr< SedReplace::InteractiveSedReplacer > | interactiveSedReplace | ) |
Definition at line 307 of file emulatedcommandbar.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.