KDE3Support
#include <k3syntaxhighlighter.h>
|
| K3DictSpellingHighlighter (Q3TextEdit *textEdit, bool spellCheckingActive=true, bool autoEnable=true, const QColor &spellColor=Qt::red, bool colorQuoting=false, const QColor &QuoteColor0=Qt::black, const QColor &QuoteColor1=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor2=QColor(0x00, 0x70, 0x00), const QColor &QuoteColor3=QColor(0x00, 0x60, 0x00), K3SpellConfig *spellConfig=0) |
|
| ~K3DictSpellingHighlighter () |
|
bool | automatic () const |
|
bool | isActive () const |
|
virtual bool | isMisspelled (const QString &word) |
|
void | restartBackgroundSpellCheck () |
|
void | setActive (bool active) |
|
void | setAutomatic (bool automatic) |
|
| K3SpellingHighlighter (Q3TextEdit *textEdit, const QColor &spellColor=Qt::red, bool colorQuoting=false, const QColor &QuoteColor0=Qt::black, const QColor &QuoteColor1=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor2=QColor(0x00, 0x80, 0x00), const QColor &QuoteColor3=QColor(0x00, 0x80, 0x00)) |
|
| ~K3SpellingHighlighter () |
|
virtual int | highlightParagraph (const QString &text, int endStateOfLastPara) |
|
bool | intraWordEditing () const |
|
void | setIntraWordEditing (bool editing) |
|
| K3SyntaxHighlighter (Q3TextEdit *textEdit, bool colorQuoting=false, const QColor &QuoteColor0=Qt::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) |
|
| ~K3SyntaxHighlighter () |
|
int | highlightParagraph (const QString &text, int endStateOfLastPara) |
|
Dictionary sensitive text highlighter.
Definition at line 92 of file k3syntaxhighlighter.h.
K3DictSpellingHighlighter::K3DictSpellingHighlighter |
( |
Q3TextEdit * |
textEdit, |
|
|
bool |
spellCheckingActive = true , |
|
|
bool |
autoEnable = true , |
|
|
const QColor & |
spellColor = Qt::red , |
|
|
bool |
colorQuoting = false , |
|
|
const QColor & |
QuoteColor0 = Qt::black , |
|
|
const QColor & |
QuoteColor1 = QColor( 0x00, 0x80, 0x00 ) , |
|
|
const QColor & |
QuoteColor2 = QColor( 0x00, 0x70, 0x00 ) , |
|
|
const QColor & |
QuoteColor3 = QColor( 0x00, 0x60, 0x00 ) , |
|
|
K3SpellConfig * |
spellConfig = 0 |
|
) |
| |
K3DictSpellingHighlighter::~K3DictSpellingHighlighter |
( |
| ) |
|
void K3DictSpellingHighlighter::activeChanged |
( |
const QString & |
| ) |
|
|
signal |
bool K3DictSpellingHighlighter::automatic |
( |
| ) |
const |
void K3DictSpellingHighlighter::dictionaryChanged |
( |
| ) |
|
|
static |
bool K3DictSpellingHighlighter::isActive |
( |
| ) |
const |
bool K3DictSpellingHighlighter::isMisspelled |
( |
const QString & |
word | ) |
|
|
virtual |
void K3DictSpellingHighlighter::newSuggestions |
( |
const QString & |
originalword, |
|
|
const QStringList & |
suggestions, |
|
|
unsigned int |
pos |
|
) |
| |
|
signal |
void K3DictSpellingHighlighter::restartBackgroundSpellCheck |
( |
| ) |
|
void K3DictSpellingHighlighter::setActive |
( |
bool |
active | ) |
|
Enable/Disable spell checking.
If active
is true then spell checking is enabled; otherwise it is disabled. Note that you have to disable automatic (de)activation with setAutomatic() before you change the state of spell checking if you want to persistently enable/disable spell checking.
- Parameters
-
active | if true, then spell checking is enabled |
- See also
- isActive(), setAutomatic()
Definition at line 462 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::setAutomatic |
( |
bool |
automatic | ) |
|
En-/Disable automatic (de)activation in case of too many errors.
If automatic
is true then spell checking will be deactivated if too many words were misspelled and spell checking will be activated again if the amount of misspelled words drop below a certain threshold.
- Parameters
-
automatic | if true, then automatic (de)activation is enabled |
- See also
- automatic()
Definition at line 480 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotAutoDetection |
( |
| ) |
|
|
protectedslot |
void K3DictSpellingHighlighter::slotCorrected |
( |
const QString & |
originalWord, |
|
|
const QString & |
, |
|
|
unsigned |
int |
|
) |
| |
|
protectedslot |
void K3DictSpellingHighlighter::slotDictionaryChanged |
( |
| ) |
|
|
protectedslot |
void K3DictSpellingHighlighter::slotK3SpellNotResponding |
( |
| ) |
|
|
protectedslot |
void K3DictSpellingHighlighter::slotLocalSpellConfigChanged |
( |
| ) |
|
|
protectedslot |
void K3DictSpellingHighlighter::slotMisspelling |
( |
const QString & |
originalWord, |
|
|
const QStringList & |
suggestions, |
|
|
unsigned int |
pos |
|
) |
| |
|
protectedslot |
void K3DictSpellingHighlighter::slotRehighlight |
( |
| ) |
|
|
protectedslot |
void K3DictSpellingHighlighter::slotSpellReady |
( |
K3Spell * |
spell | ) |
|
|
protectedslot |
QString K3DictSpellingHighlighter::spellKey |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.