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

KDEUI

Sonnet::Highlighter

Sonnet::Highlighter Class Reference

#include <highlighter.h>

Inheritance diagram for Sonnet::Highlighter:

Inheritance graph
[legend]

List of all members.


Detailed Description

The Sonnet Highlighter.

Definition at line 35 of file highlighter.h.


Public Slots

void slotAutoDetection ()
void slotRehighlight ()

Signals

void activeChanged (const QString &description)
void newSuggestions (const QString &originalWord, const QStringList &suggestions)

Public Member Functions

 Highlighter (QTextEdit *textEdit, const QString &configFile=QString(), const QColor &col=QColor())
 ~Highlighter ()
bool spellCheckerFound () const
QString currentLanguage () const
void setCurrentLanguage (const QString &lang)
void setActive (bool active)
bool isActive () const
bool automatic () const
void setAutomatic (bool automatic)

Static Public Member Functions

static QStringList personalWords ()

Protected Member Functions

virtual void highlightBlock (const QString &text)
virtual void setMisspelled (int start, int count)
virtual void unsetMisspelled (int start, int count)
bool eventFilter (QObject *o, QEvent *e)
bool intraWordEditing () const
void setIntraWordEditing (bool editing)

Constructor & Destructor Documentation

Sonnet::Highlighter::Highlighter ( QTextEdit *  textEdit,
const QString &  configFile = QString(),
const QColor &  col = QColor() 
) [explicit]

Definition at line 67 of file highlighter.cpp.

Sonnet::Highlighter::~Highlighter (  ) 

Definition at line 118 of file highlighter.cpp.


Member Function Documentation

bool Sonnet::Highlighter::spellCheckerFound (  )  const

Definition at line 123 of file highlighter.cpp.

QString Sonnet::Highlighter::currentLanguage (  )  const

Definition at line 281 of file highlighter.cpp.

void Sonnet::Highlighter::setCurrentLanguage ( const QString &  lang  ) 

Definition at line 286 of file highlighter.cpp.

QStringList Sonnet::Highlighter::personalWords (  )  [static]

Definition at line 164 of file highlighter.cpp.

void Sonnet::Highlighter::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:
active if true, then spell checking is enabled
See also:
isActive(), setAutomatic()

Definition at line 233 of file highlighter.cpp.

bool Sonnet::Highlighter::isActive (  )  const

Returns the state of spell checking.

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

Definition at line 247 of file highlighter.cpp.

bool Sonnet::Highlighter::automatic (  )  const

Definition at line 180 of file highlighter.cpp.

void Sonnet::Highlighter::setAutomatic ( bool  automatic  ) 

Definition at line 196 of file highlighter.cpp.

void Sonnet::Highlighter::activeChanged ( const QString &  description  )  [signal]

Emitted when as-you-type spell checking is enabled or disabled.

Parameters:
description is a i18n description of the new state, with an optional reason

void Sonnet::Highlighter::newSuggestions ( const QString &  originalWord,
const QStringList &  suggestions 
) [signal]

Parameters:
originalWord missspelled word

Parameters:
suggestions list of word which can replace missspelled word

void Sonnet::Highlighter::highlightBlock ( const QString &  text  )  [protected, virtual]

Reimplemented from QSyntaxHighlighter.

Definition at line 252 of file highlighter.cpp.

void Sonnet::Highlighter::setMisspelled ( int  start,
int  count 
) [protected, virtual]

Definition at line 307 of file highlighter.cpp.

void Sonnet::Highlighter::unsetMisspelled ( int  start,
int  count 
) [protected, virtual]

Definition at line 312 of file highlighter.cpp.

bool Sonnet::Highlighter::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Definition at line 317 of file highlighter.cpp.

bool Sonnet::Highlighter::intraWordEditing (  )  const [protected]

Definition at line 185 of file highlighter.cpp.

void Sonnet::Highlighter::setIntraWordEditing ( bool  editing  )  [protected]

Definition at line 190 of file highlighter.cpp.

void Sonnet::Highlighter::slotAutoDetection (  )  [slot]

Definition at line 206 of file highlighter.cpp.

void Sonnet::Highlighter::slotRehighlight (  )  [slot]

Definition at line 145 of file highlighter.cpp.


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

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   WTF
  • KJSEmbed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  •   core
  • Phonon
  •   Backend
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal