Konsole
Konsole::RegExpFilter Class Reference
#include <Filter.h>

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 | |
| RegExpFilter () | |
| void | setRegExp (const QRegExp &text) |
| QRegExp | regExp () const |
| virtual void | process () |
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 | ( | ) |
Member Function Documentation
| 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 351 of file Filter.cpp.
| QRegExp RegExpFilter::regExp | ( | ) | const |
Returns the regular expression which the filter searches for in blocks of text.
Definition at line 355 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 363 of file Filter.cpp.
| 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 410 of file Filter.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference