SearchCommand Class Reference

Inheritance diagram for SearchCommand:

Kate::Command Kate::CommandExtension List of all members.

Detailed Description

Definition at line 218 of file katesearch.h.


Public Member Functions

 SearchCommand ()
bool exec (class Kate::View *view, const QString &cmd, QString &errorMsg)
bool help (class Kate::View *, const QString &, QString &)
QStringList cmds ()
bool wantsToProcessText (const QString &)
void processText (Kate::View *view, const QString &text)

Member Function Documentation

bool SearchCommand::exec ( class Kate::View view,
const QString cmd,
QString errorMsg 
) [virtual]

Execute this command for the given view and cmd string, return a bool about success, msg for status.

Implements Kate::Command.

Definition at line 805 of file katesearch.cpp.

bool SearchCommand::help ( class Kate::View ,
const QString ,
QString  
) [virtual]

Shows help for the given view and cmd string, return a bool about success, msg for status.

Implements Kate::Command.

Definition at line 911 of file katesearch.cpp.

QStringList SearchCommand::cmds (  )  [virtual]

Pure text start part of the commands which can be handled by this object which means i.e.

for s/sdl/sdf/g => s or for char:1212 => char

Implements Kate::Command.

Definition at line 950 of file katesearch.cpp.

bool SearchCommand::wantsToProcessText ( const QString cmdname  )  [virtual]

Returns:
whether this command wants to process text interactively given the cmdname.

If true, the command's processText() method is called when the text in the command line is changed.

Reimplement this to return true, if your commands wants to process the text as typed.

Parameters:
cmdname the command name associated with this query.

Reimplemented from Kate::CommandExtension.

Definition at line 957 of file katesearch.cpp.

void SearchCommand::processText ( Kate::View view,
const QString text 
) [virtual]

This is called by the commandline each time the argument text for the command changes, if wantsToProcessText() returns true.

Parameters:
view The current view
text The current command text typed by the user.

Reimplemented from Kate::CommandExtension.

Definition at line 962 of file katesearch.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys