• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

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

#include <ksyntaxhighlighter.h>

Inherits TQObject, and KSpellingHighlighter.

Signals

void activeChanged (const TQString &)
 
void newSuggestions (const TQString &originalword, const TQStringList &suggestions, unsigned int pos)
 

Public Member Functions

 KDictSpellingHighlighter (TQTextEdit *textEdit, bool spellCheckingActive=true, bool autoEnable=true, const TQColor &spellColor=red, bool colorQuoting=false, const TQColor &QuoteColor0=black, const TQColor &QuoteColor1=TQColor(0x00, 0x80, 0x00), const TQColor &QuoteColor2=TQColor(0x00, 0x70, 0x00), const TQColor &QuoteColor3=TQColor(0x00, 0x60, 0x00), KSpellConfig *spellConfig=0)
 
virtual bool isMisspelled (const TQString &word)
 
void restartBackgroundSpellCheck ()
 
void setActive (bool active)
 
bool isActive () const
 
void setAutomatic (bool automatic)
 
bool automatic () const
 

Static Public Member Functions

static void dictionaryChanged ()
 

Protected Slots

void slotMisspelling (const TQString &originalWord, const TQStringList &suggestions, unsigned int pos)
 
void slotCorrected (const TQString &originalWord, const TQString &, unsigned int)
 
void slotRehighlight ()
 
void slotDictionaryChanged ()
 
void slotSpellReady (KSpell *spell)
 
void slotAutoDetection ()
 
void slotLocalSpellConfigChanged ()
 
void slotKSpellNotResponding ()
 

Protected Member Functions

TQString spellKey ()
 
bool eventFilter (TQObject *o, TQEvent *e)
 

Detailed Description

Dictionary sensitive text highlighter.

Definition at line 94 of file ksyntaxhighlighter.h.

Constructor & Destructor Documentation

◆ KDictSpellingHighlighter()

KDictSpellingHighlighter::KDictSpellingHighlighter ( TQTextEdit *  textEdit,
bool  spellCheckingActive = true,
bool  autoEnable = true,
const TQColor &  spellColor = red,
bool  colorQuoting = false,
const TQColor &  QuoteColor0 = black,
const TQColor &  QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ),
const TQColor &  QuoteColor2 = TQColor( 0x00, 0x70, 0x00 ),
const TQColor &  QuoteColor3 = TQColor( 0x00, 0x60, 0x00 ),
KSpellConfig *  spellConfig = 0 
)

Definition at line 270 of file ksyntaxhighlighter.cpp.

◆ ~KDictSpellingHighlighter()

KDictSpellingHighlighter::~KDictSpellingHighlighter ( )

Definition at line 326 of file ksyntaxhighlighter.cpp.

Member Function Documentation

◆ automatic()

bool KDictSpellingHighlighter::automatic ( ) const

Returns the state of automatic (de)activation.

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

Definition at line 497 of file ksyntaxhighlighter.cpp.

◆ dictionaryChanged()

void KDictSpellingHighlighter::dictionaryChanged ( )
static

Definition at line 455 of file ksyntaxhighlighter.cpp.

◆ eventFilter()

bool KDictSpellingHighlighter::eventFilter ( TQObject *  o,
TQEvent *  e 
)
protected

Definition at line 610 of file ksyntaxhighlighter.cpp.

◆ isActive()

bool KDictSpellingHighlighter::isActive ( ) const

Returns the state of spell checking.

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

Definition at line 482 of file ksyntaxhighlighter.cpp.

◆ isMisspelled()

bool KDictSpellingHighlighter::isMisspelled ( const TQString &  word)
virtual

Definition at line 366 of file ksyntaxhighlighter.cpp.

◆ restartBackgroundSpellCheck()

void KDictSpellingHighlighter::restartBackgroundSpellCheck ( )

Definition at line 463 of file ksyntaxhighlighter.cpp.

◆ setActive()

void KDictSpellingHighlighter::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 469 of file ksyntaxhighlighter.cpp.

◆ setAutomatic()

void KDictSpellingHighlighter::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 mispelled and spell checking will be activated again if the amount of mispelled words drop below a certain threshold.

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

Definition at line 487 of file ksyntaxhighlighter.cpp.

◆ slotAutoDetection

void KDictSpellingHighlighter::slotAutoDetection ( )
protectedslot

Definition at line 568 of file ksyntaxhighlighter.cpp.

◆ slotCorrected

void KDictSpellingHighlighter::slotCorrected ( const TQString &  originalWord,
const TQString &  ,
unsigned int   
)
protectedslot

Definition at line 437 of file ksyntaxhighlighter.cpp.

◆ slotDictionaryChanged

void KDictSpellingHighlighter::slotDictionaryChanged ( )
protectedslot

Definition at line 520 of file ksyntaxhighlighter.cpp.

◆ slotKSpellNotResponding

void KDictSpellingHighlighter::slotKSpellNotResponding ( )
protectedslot

Definition at line 595 of file ksyntaxhighlighter.cpp.

◆ slotLocalSpellConfigChanged

void KDictSpellingHighlighter::slotLocalSpellConfigChanged ( )
protectedslot

Definition at line 532 of file ksyntaxhighlighter.cpp.

◆ slotMisspelling

void KDictSpellingHighlighter::slotMisspelling ( const TQString &  originalWord,
const TQStringList &  suggestions,
unsigned int  pos 
)
protectedslot

Definition at line 422 of file ksyntaxhighlighter.cpp.

◆ slotRehighlight

void KDictSpellingHighlighter::slotRehighlight ( )
protectedslot

Definition at line 502 of file ksyntaxhighlighter.cpp.

◆ slotSpellReady

void KDictSpellingHighlighter::slotSpellReady ( KSpell *  spell)
protectedslot

Definition at line 335 of file ksyntaxhighlighter.cpp.

◆ spellKey()

TQString KDictSpellingHighlighter::spellKey ( )
protected

Definition at line 540 of file ksyntaxhighlighter.cpp.


The documentation for this class was generated from the following files:
  • ksyntaxhighlighter.h
  • ksyntaxhighlighter.cpp

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.