kate Library API Documentation

KateSearch Class Reference

Inheritance diagram for KateSearch:

QObject List of all members.

Public Types

enum  Dialog_results {
  srCancel = KDialogBase::Cancel, srAll = KDialogBase::User1, srLast = KDialogBase::User2, srNo = KDialogBase::User3,
  srYes = KDialogBase::Ok
}

Public Slots

void find ()
void find (const QString &pattern, long flags, bool add=true, bool shownotfound=false)
void replace ()
void replace (const QString &pattern, const QString &replacement, long flags)
void findAgain (bool back)

Public Member Functions

 KateSearch (KateView *)
 ~KateSearch ()
void createActions (KActionCollection *)

Friends

class KateDocument

Detailed Description

Definition at line 41 of file katesearch.h.


Member Function Documentation

void KateSearch::find const QString pattern,
long  flags,
bool  add = true,
bool  shownotfound = false
[slot]
 

Search for pattern given flags This is for the commandline "find", and is forwarded by KateView.

Parameters:
pattern string or regex pattern to search for.
flags a OR'ed combination of
See also:
KFindDialog::Options
Parameters:
add wether this string should be added to the recent search list
shownotfound wether to pop up "Not round: PATTERN" when that happens. That must now be explicitly required -- the find dialog does, but the commandline incremental search does not.

Definition at line 113 of file katesearch.cpp.

References KateViewConfig::global(), KateViewConfig::searchFlags(), and KateViewConfig::setSearchFlags().

void KateSearch::replace const QString pattern,
const QString replacement,
long  flags
[slot]
 

Replace pattern with replacement given flags.

This is for the commandline "replace" and is forwarded by KateView.

Parameters:
pattern string or regular expression to search for
replacement Replacement string.
flags OR'd combination of
See also:
KFindDialog::Options

Definition at line 178 of file katesearch.cpp.

References KateViewConfig::global(), KateViewConfig::searchFlags(), and KateViewConfig::setSearchFlags().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kate Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 8 08:05:43 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003