9#ifndef SONNET_HIGHLIGHTER_H
10#define SONNET_HIGHLIGHTER_H
12#include "sonnetui_export.h"
14#include <QSyntaxHighlighter>
23class HighlighterPrivate;
46 bool spellCheckerFound()
const;
53 QString currentLanguage()
const;
68 void setActive(
bool active);
77 bool isActive()
const;
85 bool automatic()
const;
94 void setAutomatic(
bool automatic);
103 bool autoDetectLanguageDisabled()
const;
113 void setAutoDetectLanguageDisabled(
bool autoDetectDisabled);
122 void addWordToDictionary(
const QString &word);
132 void ignoreWord(
const QString &word);
169 bool isWordMisspelled(
const QString &word);
175 void setMisspelledColor(
const QColor &color);
181 bool checkerEnabledByDefault()
const;
201 void highlightBlock(
const QString &text)
override;
202 virtual void setMisspelled(
int start,
int count);
203 virtual void unsetMisspelled(
int start,
int count);
206 bool intraWordEditing()
const;
207 void setIntraWordEditing(
bool editing);
215 void setCurrentLanguage(
const QString &language);
220 void slotAutoDetection();
225 void slotRehighlight();
228 SONNETUI_NO_EXPORT
void contentsChange(
int pos,
int added,
int removed);
231 std::unique_ptr<HighlighterPrivate>
const d;
The Sonnet Highlighter class, used for drawing pretty red lines in text fields.
void activeChanged(const QString &description)
Emitted when as-you-type spell checking is enabled or disabled.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:25 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.