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
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
~K3DictSpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:323
void restartBackgroundSpellCheck()
Definition: k3syntaxhighlighter.cpp:456
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3syntaxhighlighter.h:63
KSharedConfigPtr config()
~K3SpellingHighlighter()
Definition: k3syntaxhighlighter.cpp:180
Definition: k3sconfig.h:61
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
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 setIntraWordEditing(bool editing)
Definition: k3syntaxhighlighter.cpp:410
void newSuggestions(const QString &originalword, const QStringList &suggestions, unsigned int pos)
void slotDictionaryChanged()
Definition: k3syntaxhighlighter.cpp:511
void slotCorrected(const QString &originalWord, const QString &, unsigned int)
Definition: k3syntaxhighlighter.cpp:430
bool intraWordEditing() const
Definition: k3syntaxhighlighter.cpp:405
void slotRehighlight()
Definition: k3syntaxhighlighter.cpp:495
static void dictionaryChanged()
Definition: k3syntaxhighlighter.cpp:448
Definition: k3sconfig.h:42
virtual bool isMisspelled(const QString &word)
Definition: k3syntaxhighlighter.cpp:359
void reparseConfiguration()
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
~K3SyntaxHighlighter()
Definition: k3syntaxhighlighter.cpp:140
void slotK3SpellNotResponding()
Definition: k3syntaxhighlighter.cpp:586
virtual bool isMisspelled(const QString &word)=0
T readEntry(const QString &key, const T &aDefault) const
int highlightParagraph(const QString &text, int endStateOfLastPara)
Definition: k3syntaxhighlighter.cpp:145
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.