KDevelop API Documentation

ParenMatcher Class Reference

#include <parenmatcher.h>

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(), checkClosedParen(), Match, Mismatch, Symbol::pos(), and Symbol::type().

Referenced by checkClosedParen(), and match().

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

Definition at line 57 of file parenmatcher.cpp.

References Symbol::ch(), checkOpenParen(), Match, Mismatch, Symbol::pos(), and Symbol::type().

Referenced by checkOpenParen(), and match().

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

Definition at line 35 of file parenmatcher.cpp.

References checkClosedParen(), checkOpenParen(), enabled, and match().

Referenced by QEditor::doMatch(), and match().

void ParenMatcher::setEnabled bool  b  )  [inline]
 

Definition at line 54 of file parenmatcher.h.


Member Data Documentation

bool ParenMatcher::enabled [private]
 

Definition at line 60 of file parenmatcher.h.

Referenced by match(), and ParenMatcher().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003