• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • RegExpFilter
Classes | Public Member Functions | Protected Member Functions | List of all members
Konsole::RegExpFilter Class Reference

#include <Filter.h>

Inheritance diagram for Konsole::RegExpFilter:
Inheritance graph
[legend]

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.

Definition at line 182 of file Filter.h.

Constructor & Destructor Documentation

RegExpFilter::RegExpFilter ( )

Constructs a new regular expression filter.

Definition at line 293 of file Filter.cpp.

Member Function Documentation

RegExpFilter::HotSpot * RegExpFilter::newHotSpot ( int  startLine,
int  startColumn,
int  endLine,
int  endColumn 
)
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.

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 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:
  • Filter.h
  • Filter.cpp
This file is part of the KDE documentation.
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.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal