Konsole
Filter.h
Go to the documentation of this file.
QList< Filter::HotSpot > hotSpotsAtLine(int line) const
Returns a list of all hotspots at the given line in all the chain's filters.
HotSpot * hotSpotAt(int line, int column) const
Adds a new line of text to the filter and increments the line count.
Definition: Filter.cpp:240
virtual void activate(QObject *object=0)=0
Causes the action associated with a hotspot to be triggered.
Represents an area of text which matched the pattern a particular filter has been looking for...
Definition: Filter.h:70
Filter::HotSpot * hotSpotAt(int line, int column) const
Returns the first hotspot which occurs at line, column or 0 if no hotspot was found.
Definition: Filter.cpp:81
virtual RegExpFilter::HotSpot * newHotSpot(int, int, int, int)
Called when a match for the regular expression is encountered.
Definition: Filter.cpp:373
void setCapturedTexts(const QStringList &texts)
Sets the captured texts associated with this hotspot.
Definition: Filter.cpp:307
void getLineColumn(int position, int &startLine, int &startColumn)
Converts a character position within buffer() to a line and column.
Definition: Filter.cpp:189
virtual void activate(QObject *object=0)
Causes the action associated with a hotspot to be triggered.
Definition: Filter.cpp:303
virtual ~TerminalImageFilterChain()
Definition: Filter.cpp:112
A single character in the terminal which consists of a unicode character value, foreground and backgr...
Definition: Character.h:77
virtual RegExpFilter::HotSpot * newHotSpot(int startLine, int startColumn, int endLine, int endColumn)
Called when a match for the regular expression is encountered.
Definition: Filter.cpp:367
Definition: Filter.h:86
virtual void process()
Reimplemented to search the filter's text buffer for text matching regExp()
Definition: Filter.cpp:328
Definition: Filter.h:284
void setBuffer(const QString *buffer, const QList< int > *linePositions)
TODO: Document me.
Definition: Filter.cpp:183
QList< HotSpot * > hotSpotsAtLine(int line) const
Returns the list of hotspots identified by the filter which occur on a given line.
Definition: Filter.cpp:235
TerminalImageFilterChain()
Definition: Filter.cpp:106
void setBuffer(const QString *buffer, const QList< int > *linePositions)
Sets the buffer for each filter in the chain to process.
Definition: Filter.cpp:65
QList< HotSpot * > hotSpots() const
Returns the list of hotspots identified by the filter.
Definition: Filter.cpp:231
void setRegExp(const QRegExp &text)
Sets the regular expression which the filter searches for in blocks of text.
Definition: Filter.cpp:316
A filter which searches for sections of text matching a regular expression and creates a new RegExpFi...
Definition: Filter.h:182
virtual void process()=0
Causes the filter to process the block of text currently in its internal buffer.
virtual QList< QAction * > actions()
Returns a list of actions associated with the hotspot which can be used in a menu or toolbar...
Definition: Filter.cpp:264
A filter processes blocks of text looking for certain patterns (such as URLs or keywords from a list)...
Definition: Filter.h:55
virtual void activate(QObject *object=0)
Open a web browser at the current URL.
Definition: Filter.cpp:398
A chain which allows a group of filters to be processed as one.
Definition: Filter.h:312
Definition: Filter.h:84
HotSpot(int startLine, int startColumn, int endLine, int endColumn)
Constructs a new hotspot which covers the area from (startLine,startColumn) to (endLine,endColumn) in a block of text.
Definition: Filter.cpp:256
A filter chain which processes character images from terminal displays.
Definition: Filter.h:343
HotSpot(int startLine, int startColumn, int endLine, int endColumn)
Definition: Filter.cpp:297
QRegExp regExp() const
Returns the regular expression which the filter searches for in blocks of text.
Definition: Filter.cpp:320
int endColumn() const
Returns the column on endLine() where the hotspot area ends.
Definition: Filter.cpp:280
void setImage(const Character *const image, int lines, int columns, const QVector< LineProperty > &lineProperties)
Set the current terminal image to image.
Definition: Filter.cpp:118
void reset()
Empties the filters internal buffer and resets the line count back to 0.
Definition: Filter.cpp:177
QStringList capturedTexts() const
Returns the texts found by the filter when matching the filter's regular expression.
Definition: Filter.cpp:311
virtual QList< QAction * > actions()
Returns a list of actions associated with the hotspot which can be used in a menu or toolbar...
Definition: Filter.cpp:455
HotSpot(int startLine, int startColumn, int endLine, int endColumn)
Definition: Filter.cpp:379
int startColumn() const
Returns the column on startLine() where the hotspot area starts.
Definition: Filter.cpp:276
QList< Filter::HotSpot * > hotSpots() const
Returns a list of all the hotspots in all the chain's filters.
Definition: Filter.cpp:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.