#include <ksyntaxhighlighter.h>
Inherits TQObject, and KSpellingHighlighter.
|
void | activeChanged (const TQString &) |
|
void | newSuggestions (const TQString &originalword, const TQStringList &suggestions, unsigned int pos) |
|
|
| KDictSpellingHighlighter (TQTextEdit *textEdit, bool spellCheckingActive=true, bool autoEnable=true, const TQColor &spellColor=red, bool colorQuoting=false, const TQColor &QuoteColor0=black, const TQColor &QuoteColor1=TQColor(0x00, 0x80, 0x00), const TQColor &QuoteColor2=TQColor(0x00, 0x70, 0x00), const TQColor &QuoteColor3=TQColor(0x00, 0x60, 0x00), KSpellConfig *spellConfig=0) |
|
virtual bool | isMisspelled (const TQString &word) |
|
void | restartBackgroundSpellCheck () |
|
void | setActive (bool active) |
|
bool | isActive () const |
|
void | setAutomatic (bool automatic) |
|
bool | automatic () const |
|
Dictionary sensitive text highlighter.
Definition at line 94 of file ksyntaxhighlighter.h.
◆ KDictSpellingHighlighter()
KDictSpellingHighlighter::KDictSpellingHighlighter |
( |
TQTextEdit * |
textEdit, |
|
|
bool |
spellCheckingActive = true , |
|
|
bool |
autoEnable = true , |
|
|
const TQColor & |
spellColor = red , |
|
|
bool |
colorQuoting = false , |
|
|
const TQColor & |
QuoteColor0 = black , |
|
|
const TQColor & |
QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ) , |
|
|
const TQColor & |
QuoteColor2 = TQColor( 0x00, 0x70, 0x00 ) , |
|
|
const TQColor & |
QuoteColor3 = TQColor( 0x00, 0x60, 0x00 ) , |
|
|
KSpellConfig * |
spellConfig = 0 |
|
) |
| |
◆ ~KDictSpellingHighlighter()
KDictSpellingHighlighter::~KDictSpellingHighlighter |
( |
| ) |
|
◆ automatic()
bool KDictSpellingHighlighter::automatic |
( |
| ) |
const |
◆ dictionaryChanged()
void KDictSpellingHighlighter::dictionaryChanged |
( |
| ) |
|
|
static |
◆ eventFilter()
bool KDictSpellingHighlighter::eventFilter |
( |
TQObject * |
o, |
|
|
TQEvent * |
e |
|
) |
| |
|
protected |
◆ isActive()
bool KDictSpellingHighlighter::isActive |
( |
| ) |
const |
◆ isMisspelled()
bool KDictSpellingHighlighter::isMisspelled |
( |
const TQString & |
word | ) |
|
|
virtual |
◆ restartBackgroundSpellCheck()
void KDictSpellingHighlighter::restartBackgroundSpellCheck |
( |
| ) |
|
◆ setActive()
void KDictSpellingHighlighter::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 469 of file ksyntaxhighlighter.cpp.
◆ setAutomatic()
void KDictSpellingHighlighter::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 mispelled and spell checking will be activated again if the amount of mispelled words drop below a certain threshold.
- Parameters
-
automatic | if true, then automatic (de)activation is enabled |
- See also
- automatic()
Definition at line 487 of file ksyntaxhighlighter.cpp.
◆ slotAutoDetection
void KDictSpellingHighlighter::slotAutoDetection |
( |
| ) |
|
|
protectedslot |
◆ slotCorrected
void KDictSpellingHighlighter::slotCorrected |
( |
const TQString & |
originalWord, |
|
|
const TQString & |
, |
|
|
unsigned int |
|
|
) |
| |
|
protectedslot |
◆ slotDictionaryChanged
void KDictSpellingHighlighter::slotDictionaryChanged |
( |
| ) |
|
|
protectedslot |
◆ slotKSpellNotResponding
void KDictSpellingHighlighter::slotKSpellNotResponding |
( |
| ) |
|
|
protectedslot |
◆ slotLocalSpellConfigChanged
void KDictSpellingHighlighter::slotLocalSpellConfigChanged |
( |
| ) |
|
|
protectedslot |
◆ slotMisspelling
void KDictSpellingHighlighter::slotMisspelling |
( |
const TQString & |
originalWord, |
|
|
const TQStringList & |
suggestions, |
|
|
unsigned int |
pos |
|
) |
| |
|
protectedslot |
◆ slotRehighlight
void KDictSpellingHighlighter::slotRehighlight |
( |
| ) |
|
|
protectedslot |
◆ slotSpellReady
void KDictSpellingHighlighter::slotSpellReady |
( |
KSpell * |
spell | ) |
|
|
protectedslot |
◆ spellKey()
TQString KDictSpellingHighlighter::spellKey |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: