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

Konsole

  • Konsole
  • FilterChain
Public Member Functions | List of all members
Konsole::FilterChain Class Reference

#include <Filter.h>

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

Public Member Functions

virtual ~FilterChain ()
 
void addFilter (Filter *filter)
 
void clear ()
 
Filter::HotSpot * hotSpotAt (int line, int column) const
 
QList< Filter::HotSpot * > hotSpots () const
 
QList< Filter::HotSpot > hotSpotsAtLine (int line) const
 
void process ()
 
void removeFilter (Filter *filter)
 
void reset ()
 
void setBuffer (const QString *buffer, const QList< int > *linePositions)
 

Detailed Description

A chain which allows a group of filters to be processed as one.

The chain owns the filters added to it and deletes them when the chain itself is destroyed.

Use addFilter() to add a new filter to the chain. When new text to be filtered arrives, use addLine() to add each additional line of text which needs to be processed and then after adding the last line, use process() to cause each filter in the chain to process the text.

After processing a block of text, the reset() method can be used to set the filter chain's internal cursor back to the first line.

The hotSpotAt() method will return the first hotspot which covers a given position.

The hotSpots() and hotSpotsAtLine() method return all of the hotspots in the text and on a given line respectively.

Definition at line 312 of file Filter.h.

Constructor & Destructor Documentation

FilterChain::~FilterChain ( )
virtual

Definition at line 40 of file Filter.cpp.

Member Function Documentation

void FilterChain::addFilter ( Filter *  filter)

Adds a new filter to the chain.

The chain will delete this filter when it is destroyed

Definition at line 51 of file Filter.cpp.

void FilterChain::clear ( )

Removes all filters from the chain.

Definition at line 77 of file Filter.cpp.

Filter::HotSpot * FilterChain::hotSpotAt ( int  line,
int  column 
) const

Returns the first hotspot which occurs at line, column or 0 if no hotspot was found.

Definition at line 81 of file Filter.cpp.

QList< Filter::HotSpot * > FilterChain::hotSpots ( ) const

Returns a list of all the hotspots in all the chain's filters.

Definition at line 95 of file Filter.cpp.

QList<Filter::HotSpot> Konsole::FilterChain::hotSpotsAtLine ( int  line) const

Returns a list of all hotspots at the given line in all the chain's filters.

void FilterChain::process ( )

Processes each filter in the chain.

Definition at line 71 of file Filter.cpp.

void FilterChain::removeFilter ( Filter *  filter)

Removes a filter from the chain.

The chain will no longer delete the filter when destroyed

Definition at line 55 of file Filter.cpp.

void FilterChain::reset ( )

Resets each filter in the chain.

Definition at line 59 of file Filter.cpp.

void FilterChain::setBuffer ( const QString *  buffer,
const QList< int > *  linePositions 
)

Sets the buffer for each filter in the chain to process.

Definition at line 65 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 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
  • Applications
  •   Libraries
  •     libkonq
  • 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