KDevelop API Documentation

ParenMatcher Class Reference

#include <parenmatcher.h>

Collaboration diagram for ParenMatcher:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Selection { Match = 1, Mismatch }

Public Member Functions

 ParenMatcher ()
virtual bool match (QTextCursor *c)
void setEnabled (bool b)

Private Member Functions

bool checkOpenParen (QTextCursor *c)
bool checkClosedParen (QTextCursor *c)

Private Attributes

bool enabled

Member Enumeration Documentation

enum ParenMatcher::Selection
 

Enumeration values:
Match 
Mismatch 

Definition at line 45 of file parenmatcher.h.


Constructor & Destructor Documentation

ParenMatcher::ParenMatcher  ) 
 

Definition at line 30 of file parenmatcher.cpp.

References enabled.


Member Function Documentation

bool ParenMatcher::checkClosedParen QTextCursor *  c  )  [private]
 

Definition at line 131 of file parenmatcher.cpp.

References Symbol::ch(), Symbol::pos(), and Symbol::type().

Referenced by match().

bool ParenMatcher::checkOpenParen QTextCursor *  c  )  [private]
 

Definition at line 57 of file parenmatcher.cpp.

References Symbol::ch(), Symbol::pos(), and Symbol::type().

Referenced by match().

bool ParenMatcher::match QTextCursor *  c  )  [virtual]
 

Definition at line 35 of file parenmatcher.cpp.

References checkClosedParen(), and checkOpenParen().

Referenced by QEditor::doMatch().

void ParenMatcher::setEnabled bool  b  )  [inline]
 

Definition at line 54 of file parenmatcher.h.

References enabled.


Member Data Documentation

bool ParenMatcher::enabled [private]
 

Definition at line 60 of file parenmatcher.h.

Referenced by ParenMatcher(), and setEnabled().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:44:55 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003