Sonnet
9 #ifndef SONNET_HIGHLIGHTER_H
10 #define SONNET_HIGHLIGHTER_H
12 #include "sonnetui_export.h"
13 #include <QStringList>
14 #include <QSyntaxHighlighter>
21 class HighlighterPrivate;
44 bool spellCheckerFound()
const;
51 QString currentLanguage()
const;
66 void setActive(
bool active);
75 bool isActive()
const;
83 bool automatic()
const;
92 void setAutomatic(
bool automatic);
101 bool autoDetectLanguageDisabled()
const;
111 void setAutoDetectLanguageDisabled(
bool autoDetectDisabled);
120 void addWordToDictionary(
const QString &word);
130 void ignoreWord(
const QString &word);
167 bool isWordMisspelled(
const QString &word);
173 void setMisspelledColor(
const QColor &color);
179 bool checkerEnabledByDefault()
const;
196 void activeChanged(
const QString &description);
199 void highlightBlock(
const QString &text)
override;
200 virtual void setMisspelled(
int start,
int count);
201 virtual void unsetMisspelled(
int start,
int count);
204 bool intraWordEditing()
const;
205 void setIntraWordEditing(
bool editing);
213 void setCurrentLanguage(
const QString &language);
218 void slotAutoDetection();
223 void slotRehighlight();
226 SONNETUI_NO_EXPORT
void contentsChange(
int pos,
int added,
int removed);
229 HighlighterPrivate *
const d;
The Sonnet Highlighter class, used for drawing pretty red lines in text fields.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Nov 28 2023 04:06:14 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.