KateVi::EmulatedCommandBar

Search for usage in LXR

KateVi::EmulatedCommandBar Class Reference

#include <emulatedcommandbar.h>

Inherits KateViewBarWidget.

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()

EmulatedCommandBar::EmulatedCommandBar ( KateViInputMode * viInputMode,
InputModeManager * viInputModeManager,
QWidget * parent = nullptr )
explicit

Definition at line 54 of file emulatedcommandbar.cpp.

Member Function Documentation

◆ executeCommand()

QString EmulatedCommandBar::executeCommand ( const QString & commandToExecute)

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.