Konsole
#include <Filter.h>
Classes | |
class | HotSpot |
Public Member Functions | |
RegExpFilter () | |
virtual void | process () |
QRegExp | regExp () const |
void | setRegExp (const QRegExp &text) |
Public Member Functions inherited from Konsole::Filter | |
Filter () | |
virtual | ~Filter () |
HotSpot * | hotSpotAt (int line, int column) const |
QList< HotSpot * > | hotSpots () const |
QList< HotSpot * > | hotSpotsAtLine (int line) const |
void | reset () |
void | setBuffer (const QString *buffer, const QList< int > *linePositions) |
Protected Member Functions | |
virtual RegExpFilter::HotSpot * | newHotSpot (int startLine, int startColumn, int endLine, int endColumn) |
Protected Member Functions inherited from Konsole::Filter | |
void | addHotSpot (HotSpot *) |
const QString * | buffer () |
void | getLineColumn (int position, int &startLine, int &startColumn) |
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.
Constructor & Destructor Documentation
RegExpFilter::RegExpFilter | ( | ) |
Constructs a new regular expression filter.
Definition at line 293 of file Filter.cpp.
Member Function Documentation
|
protectedvirtual |
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 367 of file Filter.cpp.
|
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 328 of file Filter.cpp.
QRegExp RegExpFilter::regExp | ( | ) | const |
Returns the regular expression which the filter searches for in blocks of text.
Definition at line 320 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 316 of file Filter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.