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,
void setIntraWordEditing(bool editing)
Definition: k3syntaxhighlighter.cpp:410
int highlightParagraph(const QString &text, int endStateOfLastPara)
Definition: k3syntaxhighlighter.cpp:145
int timeout
void slotSpellReady(K3Spell *spell)
Definition: k3syntaxhighlighter.cpp:332
void setAutomatic(bool automatic)
En-/Disable automatic (de)activation in case of too many errors.
Definition: k3syntaxhighlighter.cpp:480
~K3SpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:180
void slotK3SpellNotResponding()
Definition: k3syntaxhighlighter.cpp:586
void slotMisspelling(const QString &originalWord, const QStringList &suggestions, unsigned int pos)
Definition: k3syntaxhighlighter.cpp:415
void slotAutoDetection()
Definition: k3syntaxhighlighter.cpp:558
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
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3syntaxhighlighter.h:63
bool eventFilter(QObject *o, QEvent *e)
Definition: k3syntaxhighlighter.cpp:601
static void dictionaryChanged()
Definition: k3syntaxhighlighter.cpp:448
void slotLocalSpellConfigChanged()
Definition: k3syntaxhighlighter.cpp:523
static QStringList personalWords()
Definition: k3syntaxhighlighter.cpp:232
void restartBackgroundSpellCheck()
Definition: k3syntaxhighlighter.cpp:456
virtual int highlightParagraph(const QString &text, int endStateOfLastPara)
Definition: k3syntaxhighlighter.cpp:185
KSharedConfigPtr config()
~K3SyntaxHighlighter()
Definition: k3syntaxhighlighter.cpp:140
QString i18n(const char *text)
void slotDictionaryChanged()
Definition: k3syntaxhighlighter.cpp:511
virtual bool isMisspelled(const QString &word)=0
bool intraWordEditing() const
Definition: k3syntaxhighlighter.cpp:405
void slotCorrected(const QString &originalWord, const QString &, unsigned int)
Definition: k3syntaxhighlighter.cpp:430
void activeChanged(const QString &)
void newSuggestions(const QString &originalword, const QStringList &suggestions, unsigned int pos)
virtual bool isMisspelled(const QString &word)
Definition: k3syntaxhighlighter.cpp:359
QString readEntry(const char *key, const char *aDefault=0) const
void slotRehighlight()
Definition: k3syntaxhighlighter.cpp:495
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 automatic() const
Returns the state of automatic (de)activation.
Definition: k3syntaxhighlighter.cpp:490
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
~K3DictSpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:323
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.