• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
K3DictSpellingHighlighter Class Reference

#include <k3syntaxhighlighter.h>

Inheritance diagram for K3DictSpellingHighlighter:
Inheritance graph
[legend]

Signals

void activeChanged (const QString &)
 
void newSuggestions (const QString &originalword, const QStringList &suggestions, unsigned int pos)
 

Public Member Functions

 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)
 
 ~K3DictSpellingHighlighter ()
 
bool automatic () const
 
bool isActive () const
 
virtual bool isMisspelled (const QString &word)
 
void restartBackgroundSpellCheck ()
 
void setActive (bool active)
 
void setAutomatic (bool automatic)
 
- Public Member Functions inherited from K3SpellingHighlighter
 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))
 
 ~K3SpellingHighlighter ()
 
virtual int highlightParagraph (const QString &text, int endStateOfLastPara)
 
bool intraWordEditing () const
 
void setIntraWordEditing (bool editing)
 
- Public Member Functions inherited from K3SyntaxHighlighter
 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)
 
 ~K3SyntaxHighlighter ()
 
int highlightParagraph (const QString &text, int endStateOfLastPara)
 

Static Public Member Functions

static void dictionaryChanged ()
 
- Static Public Member Functions inherited from K3SpellingHighlighter
static QStringList personalWords ()
 

Protected Slots

void slotAutoDetection ()
 
void slotCorrected (const QString &originalWord, const QString &, unsigned int)
 
void slotDictionaryChanged ()
 
void slotK3SpellNotResponding ()
 
void slotLocalSpellConfigChanged ()
 
void slotMisspelling (const QString &originalWord, const QStringList &suggestions, unsigned int pos)
 
void slotRehighlight ()
 
void slotSpellReady (K3Spell *spell)
 

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
 
QString spellKey ()
 

Additional Inherited Members

- Public Types inherited from K3SyntaxHighlighter
enum  SyntaxMode { PlainTextMode, RichTextMode }
 

Detailed Description

Dictionary sensitive text highlighter.

Definition at line 92 of file k3syntaxhighlighter.h.

Constructor & Destructor Documentation

K3DictSpellingHighlighter::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 at line 271 of file k3syntaxhighlighter.cpp.

K3DictSpellingHighlighter::~K3DictSpellingHighlighter ( )

Definition at line 323 of file k3syntaxhighlighter.cpp.

Member Function Documentation

void K3DictSpellingHighlighter::activeChanged ( const QString &  )
signal
bool K3DictSpellingHighlighter::automatic ( ) const

Returns the state of automatic (de)activation.

Returns
true if automatic (de)activation is enabled
See also
setAutomatic()

Definition at line 490 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::dictionaryChanged ( )
static

Definition at line 448 of file k3syntaxhighlighter.cpp.

bool K3DictSpellingHighlighter::eventFilter ( QObject *  o,
QEvent *  e 
)
protected

Definition at line 601 of file k3syntaxhighlighter.cpp.

bool K3DictSpellingHighlighter::isActive ( ) const

Returns the state of spell checking.

Returns
true if spell checking is active
See also
setActive()

Definition at line 475 of file k3syntaxhighlighter.cpp.

bool K3DictSpellingHighlighter::isMisspelled ( const QString &  word)
virtual

Implements K3SpellingHighlighter.

Definition at line 359 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::newSuggestions ( const QString &  originalword,
const QStringList &  suggestions,
unsigned int  pos 
)
signal
void K3DictSpellingHighlighter::restartBackgroundSpellCheck ( )

Definition at line 456 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::setActive ( bool  active)

Enable/Disable spell checking.

If active is true then spell checking is enabled; otherwise it is disabled. Note that you have to disable automatic (de)activation with setAutomatic() before you change the state of spell checking if you want to persistently enable/disable spell checking.

Parameters
activeif true, then spell checking is enabled
See also
isActive(), setAutomatic()

Definition at line 462 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::setAutomatic ( bool  automatic)

En-/Disable automatic (de)activation in case of too many errors.

If automatic is true then spell checking will be deactivated if too many words were misspelled and spell checking will be activated again if the amount of misspelled words drop below a certain threshold.

Parameters
automaticif true, then automatic (de)activation is enabled
See also
automatic()

Definition at line 480 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotAutoDetection ( )
protectedslot

Definition at line 558 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotCorrected ( const QString &  originalWord,
const QString &  ,
unsigned  int 
)
protectedslot

Definition at line 430 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotDictionaryChanged ( )
protectedslot

Definition at line 511 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotK3SpellNotResponding ( )
protectedslot

Definition at line 586 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotLocalSpellConfigChanged ( )
protectedslot

Definition at line 523 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotMisspelling ( const QString &  originalWord,
const QStringList &  suggestions,
unsigned int  pos 
)
protectedslot

Definition at line 415 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotRehighlight ( )
protectedslot

Definition at line 495 of file k3syntaxhighlighter.cpp.

void K3DictSpellingHighlighter::slotSpellReady ( K3Spell *  spell)
protectedslot

Definition at line 332 of file k3syntaxhighlighter.cpp.

QString K3DictSpellingHighlighter::spellKey ( )
protected

Definition at line 531 of file k3syntaxhighlighter.cpp.


The documentation for this class was generated from the following files:
  • k3syntaxhighlighter.h
  • k3syntaxhighlighter.cpp
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

KDE's Doxygen guidelines are available online.

KDE3Support

Skip menu "KDE3Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal