KDE3Support
k3syntaxhighlighter.cpp
Go to the documentation of this file.
153 simplified = simplified.replace( QRegExp( "\\s" ), QString() ).replace( '|', QLatin1String(">") );
156 if ( simplified.startsWith( QLatin1String(">>>") ) || simplified.startsWith( QString::fromLatin1("> > >") ) )
158 else if ( simplified.startsWith( QLatin1String(">>") ) || simplified.startsWith( QString::fromLatin1("> >") ) )
174 : K3SyntaxHighlighter( textEdit, colorQuoting, depth0, depth1, depth2, depth3 ),d(new K3SpellingHighlighterPrivate())
256 while ( !d->currentWord.isEmpty() && ( ch = d->currentWord[(int) d->currentWord.length() - 1] ).isPunct() &&
294 d->disablePercentage = cg.readEntry( "K3Spell_AsYouTypeDisablePercentage", QVariant(42 )).toInt();
296 d->disableWordCount = cg.readEntry( "K3Spell_AsYouTypeDisableWordCount", QVariant(100 )).toInt();
415 void K3DictSpellingHighlighter::slotMisspelling (const QString &originalWord, const QStringList &suggestions,
567 bool tme = ( d->wordCount >= d->disableWordCount ) && ( d->errorCount * 100 >= d->disablePercentage * d->wordCount );
virtual int highlightParagraph(const QString &text, int endStateOfLastPara)
Definition: k3syntaxhighlighter.cpp:185
QString i18n(const char *text)
void setAutomatic(bool automatic)
En-/Disable automatic (de)activation in case of too many errors.
Definition: k3syntaxhighlighter.cpp:480
Type type() const
void setFormat(int start, int count, const QFont &font, const QColor &color)
int timeout
void activeChanged(const QString &)
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: k3syntaxhighlighter.cpp:271
virtual void insertAt(const QString &text, int para, int index)
~K3DictSpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:323
void restartBackgroundSpellCheck()
Definition: k3syntaxhighlighter.cpp:456
Q3TextEdit * textEdit() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3syntaxhighlighter.h:63
KSharedConfigPtr config()
Qt::ButtonState state() const
bool isEmpty() const
~K3SpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:180
QString number(int n, int base)
Definition: k3sconfig.h:61
void append(const T &value)
int currentParagraph() const
void installEventFilter(QObject *filterObj)
bool eventFilter(QObject *o, QEvent *e)
Definition: k3syntaxhighlighter.cpp:601
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))
Definition: k3syntaxhighlighter.cpp:167
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
void slotLocalSpellConfigChanged()
Definition: k3syntaxhighlighter.cpp:523
static QStringList personalWords()
Definition: k3syntaxhighlighter.cpp:232
void slotSpellReady(K3Spell *spell)
Definition: k3syntaxhighlighter.cpp:332
bool automatic() const
Returns the state of automatic (de)activation.
Definition: k3syntaxhighlighter.cpp:490
void replace(const QString &key, const type *item)
void setIntraWordEditing(bool editing)
Definition: k3syntaxhighlighter.cpp:410
iterator end()
int key() const
void newSuggestions(const QString &originalword, const QStringList &suggestions, unsigned int pos)
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void slotDictionaryChanged()
Definition: k3syntaxhighlighter.cpp:511
void slotCorrected(const QString &originalWord, const QString &, unsigned int)
Definition: k3syntaxhighlighter.cpp:430
void getCursorPosition(int *para, int *index) const
bool intraWordEditing() const
Definition: k3syntaxhighlighter.cpp:405
void slotRehighlight()
Definition: k3syntaxhighlighter.cpp:495
static void dictionaryChanged()
Definition: k3syntaxhighlighter.cpp:448
QString & replace(int position, int n, QChar after)
QObject(QObject *parent)
Definition: k3sconfig.h:42
QString mid(int position, int n) const
virtual bool isMisspelled(const QString &word)
Definition: k3syntaxhighlighter.cpp:359
void reparseConfiguration()
typedef ConstIterator
int length() const
QString fromLatin1(const char *str, int size)
void rehighlight()
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)
Definition: k3syntaxhighlighter.cpp:120
void slotAutoDetection()
Definition: k3syntaxhighlighter.cpp:558
QWidget * viewport() const
~K3SyntaxHighlighter()
Definition: k3syntaxhighlighter.cpp:140
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void slotK3SpellNotResponding()
Definition: k3syntaxhighlighter.cpp:586
virtual bool isMisspelled(const QString &word)=0
T readEntry(const QString &key, const T &aDefault) const
iterator begin()
void destroyed(QObject *obj)
int highlightParagraph(const QString &text, int endStateOfLastPara)
Definition: k3syntaxhighlighter.cpp:145
singleShot
void slotMisspelling(const QString &originalWord, const QStringList &suggestions, unsigned int pos)
Definition: k3syntaxhighlighter.cpp:415
This file is part of the KDE documentation.
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
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.