• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::RegExpFilter

Konsole::RegExpFilter Class Reference

#include <Filter.h>

Inheritance diagram for Konsole::RegExpFilter:

Inheritance graph
[legend]

List of all members.


Detailed Description

A filter which searches for sections of text matching a regular expression and creates a new RegExpFilter::HotSpot instance for them.

Subclasses can reimplement newHotSpot() to return custom hotspot types when matches for the regular expression are found.

Definition at line 192 of file Filter.h.


Public Member Functions

virtual void process ()
QRegExp regExp () const
 RegExpFilter ()
void setRegExp (const QRegExp &text)

Protected Member Functions

virtual RegExpFilter::HotSpot * newHotSpot (int startLine, int startColumn, int endLine, int endColumn)

Classes

class  HotSpot
 Type of hotspot created by RegExpFilter. More...

Constructor & Destructor Documentation

RegExpFilter::RegExpFilter (  ) 

Constructs a new regular expression filter.

Definition at line 320 of file Filter.cpp.


Member Function Documentation

RegExpFilter::HotSpot * RegExpFilter::newHotSpot ( int  startLine,
int  startColumn,
int  endLine,
int  endColumn 
) [protected, virtual]

Called when a match for the regular expression is encountered.

Subclasses should reimplement this to return custom hotspot types

Reimplemented in Konsole::UrlFilter.

Definition at line 396 of file Filter.cpp.

void RegExpFilter::process (  )  [virtual]

Reimplemented to search the filter's text buffer for text matching regExp().

If regexp matches the empty string, then process() will return immediately without finding results.

Implements Konsole::Filter.

Definition at line 355 of file Filter.cpp.

QRegExp RegExpFilter::regExp (  )  const

Returns the regular expression which the filter searches for in blocks of text.

Definition at line 347 of file Filter.cpp.

void RegExpFilter::setRegExp ( const QRegExp &  text  ) 

Sets the regular expression which the filter searches for in blocks of text.

Regular expressions which match the empty string are treated as not matching anything.

Definition at line 343 of file Filter.cpp.


The documentation for this class was generated from the following files:
  • Filter.h
  • Filter.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal