• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

KSyntaxHighlighter Class Reference

Syntax sensitive text highlighter. More...

#include <ksyntaxhighlighter.h>

Inheritance diagram for KSyntaxHighlighter:

Inheritance graph
[legend]

List of all members.


Public Types

enum  SyntaxMode { PlainTextMode, RichTextMode }

Public Member Functions

int highlightParagraph (const QString &text, int endStateOfLastPara)
 KSyntaxHighlighter (QTextEdit *textEdit, bool colorQuoting=false, const QColor &QuoteColor0=black, const QColor &QuoteColor1=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor2=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor3=QColor(0x00, 0x80, 0x00), SyntaxMode mode=PlainTextMode)
 ~KSyntaxHighlighter ()

Detailed Description

Syntax sensitive text highlighter.

Definition at line 42 of file ksyntaxhighlighter.h.


Member Enumeration Documentation

enum KSyntaxHighlighter::SyntaxMode

Enumerator:
PlainTextMode 
RichTextMode 

Definition at line 45 of file ksyntaxhighlighter.h.


Constructor & Destructor Documentation

KSyntaxHighlighter::KSyntaxHighlighter ( QTextEdit *  textEdit,
bool  colorQuoting = false,
const QColor &  QuoteColor0 = black,
const QColor &  QuoteColor1 = QColor( 0x00, 0x80, 0x00 ),
const QColor &  QuoteColor2 = QColor( 0x00, 0x80, 0x00 ),
const QColor &  QuoteColor3 = QColor( 0x00, 0x80, 0x00 ),
SyntaxMode  mode = PlainTextMode 
)

Definition at line 117 of file ksyntaxhighlighter.cpp.

KSyntaxHighlighter::~KSyntaxHighlighter (  ) 

Definition at line 138 of file ksyntaxhighlighter.cpp.


Member Function Documentation

int KSyntaxHighlighter::highlightParagraph ( const QString &  text,
int  endStateOfLastPara 
)

Reimplemented from QSyntaxHighlighter.

Reimplemented in KSpellingHighlighter.

Definition at line 143 of file ksyntaxhighlighter.cpp.


The documentation for this class was generated from the following files:
  • ksyntaxhighlighter.h
  • ksyntaxhighlighter.cpp

kdeui

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal