KDE3Support
K3DictSpellingHighlighter Class Reference
Dictionary sensitive text highlighter. More...
#include <k3syntaxhighlighter.h>

Signals | |
void | activeChanged (const QString &) |
void | newSuggestions (const QString &originalword, const QStringList &suggestions, unsigned int pos) |
Public Member Functions | |
bool | automatic () const |
bool | isActive () const |
virtual bool | isMisspelled (const QString &word) |
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) | |
void | restartBackgroundSpellCheck () |
void | setActive (bool active) |
void | setAutomatic (bool automatic) |
~K3DictSpellingHighlighter () | |
Static Public Member Functions | |
static void | dictionaryChanged () |
Protected Slots | |
void | slotAutoDetection () |
void | slotCorrected (const QString &originalWord, const QString &, unsigned int) |
void | slotDictionaryChanged () |
void | slotK3SpellNotResponding () |
void | slotLocalSpellConfigChanged () |
void | slotMisspelling (const QString &originalWord, const QStringList &suggestions, unsigned int pos) |
void | slotRehighlight () |
void | slotSpellReady (K3Spell *spell) |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
QString | spellKey () |
Detailed Description
Dictionary sensitive text highlighter.Definition at line 92 of file k3syntaxhighlighter.h.
Constructor & Destructor Documentation
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 | |||
) |
Definition at line 271 of file k3syntaxhighlighter.cpp.
K3DictSpellingHighlighter::~K3DictSpellingHighlighter | ( | ) |
Definition at line 323 of file k3syntaxhighlighter.cpp.
Member Function Documentation
void K3DictSpellingHighlighter::activeChanged | ( | const QString & | ) | [signal] |
bool K3DictSpellingHighlighter::automatic | ( | ) | const |
Returns the state of automatic (de)activation.
- Returns:
- true if automatic (de)activation is enabled
- See also:
- setAutomatic()
Definition at line 490 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::dictionaryChanged | ( | ) | [static] |
Definition at line 448 of file k3syntaxhighlighter.cpp.
bool K3DictSpellingHighlighter::isActive | ( | ) | const |
Returns the state of spell checking.
- Returns:
- true if spell checking is active
- See also:
- setActive()
Definition at line 475 of file k3syntaxhighlighter.cpp.
bool K3DictSpellingHighlighter::isMisspelled | ( | const QString & | word | ) | [virtual] |
void K3DictSpellingHighlighter::newSuggestions | ( | const QString & | originalword, | |
const QStringList & | suggestions, | |||
unsigned int | pos | |||
) | [signal] |
void K3DictSpellingHighlighter::restartBackgroundSpellCheck | ( | ) |
Definition at line 456 of file k3syntaxhighlighter.cpp.
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 | ( | ) | [protected, slot] |
Definition at line 558 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotCorrected | ( | const QString & | originalWord, | |
const QString & | , | |||
unsigned | int | |||
) | [protected, slot] |
Definition at line 430 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotDictionaryChanged | ( | ) | [protected, slot] |
Definition at line 511 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotK3SpellNotResponding | ( | ) | [protected, slot] |
Definition at line 585 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotLocalSpellConfigChanged | ( | ) | [protected, slot] |
Definition at line 523 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotMisspelling | ( | const QString & | originalWord, | |
const QStringList & | suggestions, | |||
unsigned int | pos | |||
) | [protected, slot] |
Definition at line 415 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotRehighlight | ( | ) | [protected, slot] |
Definition at line 495 of file k3syntaxhighlighter.cpp.
void K3DictSpellingHighlighter::slotSpellReady | ( | K3Spell * | spell | ) | [protected, slot] |
Definition at line 332 of file k3syntaxhighlighter.cpp.
QString K3DictSpellingHighlighter::spellKey | ( | ) | [protected] |
Definition at line 531 of file k3syntaxhighlighter.cpp.
The documentation for this class was generated from the following files: