KDEUI
Sonnet::Highlighter Class Reference
#include <highlighter.h>

Detailed Description
The Sonnet Highlighter.Definition at line 35 of file highlighter.h.
Public Slots | |
| void | slotAutoDetection () |
| void | slotRehighlight () |
Signals | |
| void | activeChanged (const QString &description) |
| void | newSuggestions (const QString &originalWord, const QStringList &suggestions) |
Public Member Functions | |
| Highlighter (QTextEdit *textEdit, const QString &configFile=QString(), const QColor &col=QColor()) | |
| ~Highlighter () | |
| bool | spellCheckerFound () const |
| QString | currentLanguage () const |
| void | setCurrentLanguage (const QString &lang) |
| void | setActive (bool active) |
| bool | isActive () const |
| bool | automatic () const |
| void | setAutomatic (bool automatic) |
Static Public Member Functions | |
| static QStringList | personalWords () |
Protected Member Functions | |
| virtual void | highlightBlock (const QString &text) |
| virtual void | setMisspelled (int start, int count) |
| virtual void | unsetMisspelled (int start, int count) |
| bool | eventFilter (QObject *o, QEvent *e) |
| bool | intraWordEditing () const |
| void | setIntraWordEditing (bool editing) |
Constructor & Destructor Documentation
| Sonnet::Highlighter::Highlighter | ( | QTextEdit * | textEdit, | |
| const QString & | configFile = QString(), |
|||
| const QColor & | col = QColor() | |||
| ) | [explicit] |
Definition at line 67 of file highlighter.cpp.
| Sonnet::Highlighter::~Highlighter | ( | ) |
Definition at line 118 of file highlighter.cpp.
Member Function Documentation
| bool Sonnet::Highlighter::spellCheckerFound | ( | ) | const |
Definition at line 123 of file highlighter.cpp.
| QString Sonnet::Highlighter::currentLanguage | ( | ) | const |
Definition at line 281 of file highlighter.cpp.
| void Sonnet::Highlighter::setCurrentLanguage | ( | const QString & | lang | ) |
Definition at line 286 of file highlighter.cpp.
| QStringList Sonnet::Highlighter::personalWords | ( | ) | [static] |
Definition at line 164 of file highlighter.cpp.
| void Sonnet::Highlighter::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 233 of file highlighter.cpp.
| bool Sonnet::Highlighter::isActive | ( | ) | const |
Returns the state of spell checking.
- Returns:
- true if spell checking is active
- See also:
- setActive()
Definition at line 247 of file highlighter.cpp.
| bool Sonnet::Highlighter::automatic | ( | ) | const |
Definition at line 180 of file highlighter.cpp.
| void Sonnet::Highlighter::setAutomatic | ( | bool | automatic | ) |
Definition at line 196 of file highlighter.cpp.
| void Sonnet::Highlighter::activeChanged | ( | const QString & | description | ) | [signal] |
Emitted when as-you-type spell checking is enabled or disabled.
- Parameters:
-
description is a i18n description of the new state, with an optional reason
| void Sonnet::Highlighter::newSuggestions | ( | const QString & | originalWord, | |
| const QStringList & | suggestions | |||
| ) | [signal] |
- Parameters:
-
originalWord missspelled word
- Parameters:
-
suggestions list of word which can replace missspelled word
| void Sonnet::Highlighter::highlightBlock | ( | const QString & | text | ) | [protected, virtual] |
| void Sonnet::Highlighter::setMisspelled | ( | int | start, | |
| int | count | |||
| ) | [protected, virtual] |
Definition at line 307 of file highlighter.cpp.
| void Sonnet::Highlighter::unsetMisspelled | ( | int | start, | |
| int | count | |||
| ) | [protected, virtual] |
Definition at line 312 of file highlighter.cpp.
Definition at line 317 of file highlighter.cpp.
| bool Sonnet::Highlighter::intraWordEditing | ( | ) | const [protected] |
Definition at line 185 of file highlighter.cpp.
| void Sonnet::Highlighter::setIntraWordEditing | ( | bool | editing | ) | [protected] |
Definition at line 190 of file highlighter.cpp.
| void Sonnet::Highlighter::slotAutoDetection | ( | ) | [slot] |
Definition at line 206 of file highlighter.cpp.
| void Sonnet::Highlighter::slotRehighlight | ( | ) | [slot] |
Definition at line 145 of file highlighter.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference