org.kde.koala

Class KSyntaxHighlighter

public class KSyntaxHighlighter extends QSyntaxHighlighter

\brief Syntax sensitive text highlighter

UNKNOWN: \brief Syntax sensitive text highlighter

Field Summary
static intPlainTextMode
static intRichTextMode
Constructor Summary
protected KSyntaxHighlighter(Class dummy)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3, int mode)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0)
KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting)
KSyntaxHighlighter(QTextEdit textEdit)
Method Summary
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
inthighlightParagraph(String text, int endStateOfLastPara)
booleanisDisposed()
Has the wrapped C++ instance been deleted?

Field Detail

PlainTextMode

public static final int PlainTextMode

RichTextMode

public static final int RichTextMode

Constructor Detail

KSyntaxHighlighter

protected KSyntaxHighlighter(Class dummy)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3, int mode)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2, QColor QuoteColor3)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1, QColor QuoteColor2)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0, QColor QuoteColor1)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting, QColor QuoteColor0)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit, boolean colorQuoting)

KSyntaxHighlighter

public KSyntaxHighlighter(QTextEdit textEdit)

Method Detail

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

highlightParagraph

public int highlightParagraph(String text, int endStateOfLastPara)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?