KDE3Support
#include <k3syntaxhighlighter.h>
Signals | |
void | activeChanged (const QString &) |
void | newSuggestions (const QString &originalword, const QStringList &suggestions, unsigned int pos) |
Public Member Functions | |
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) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Public Member Functions inherited from K3SpellingHighlighter | |
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) |
Public Member Functions inherited from K3SyntaxHighlighter | |
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) |
Public Member Functions inherited from Q3SyntaxHighlighter | |
Q3SyntaxHighlighter (Q3TextEdit *textEdit) | |
virtual | ~Q3SyntaxHighlighter () |
int | currentParagraph () const |
virtual int | highlightParagraph (const QString &text, int endStateOfLastPara)=0 |
void | rehighlight () |
void | setFormat (int start, int count, const QColor &color) |
void | setFormat (int start, int count, const QFont &font, const QColor &color) |
void | setFormat (int start, int count, const QFont &font) |
Q3TextEdit * | textEdit () const |
Static Public Member Functions | |
static void | dictionaryChanged () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Public Member Functions inherited from K3SpellingHighlighter | |
static QStringList | personalWords () |
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 () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Types inherited from K3SyntaxHighlighter | |
enum | SyntaxMode { PlainTextMode, RichTextMode } |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
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
|
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.
|
static |
Definition at line 448 of file k3syntaxhighlighter.cpp.
Reimplemented from QObject.
Definition at line 601 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.
Implements K3SpellingHighlighter.
Definition at line 359 of file k3syntaxhighlighter.cpp.
|
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.
|
protectedslot |
Definition at line 558 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 430 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 511 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 586 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 523 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 415 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 495 of file k3syntaxhighlighter.cpp.
|
protectedslot |
Definition at line 332 of file k3syntaxhighlighter.cpp.
|
protected |
Definition at line 531 of file k3syntaxhighlighter.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.