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

KDEUI

Sonnet::Dialog

Sonnet::Dialog Class Reference

Spellcheck dialog. More...

#include <dialog.h>

Inheritance diagram for Sonnet::Dialog:
KDialog QDialog

List of all members.

Public Slots

void setBuffer (const QString &)

Signals

void autoCorrect (const QString &currentWord, const QString &replaceWord)
void cancel ()
void done (const QString &newBuffer)
void languageChanged (const QString &language)
void misspelling (const QString &word, int start)
void replace (const QString &oldWord, int start, const QString &newWord)
void spellCheckStatus (const QString &)
void stop ()

Public Member Functions

void activeAutoCorrect (bool _active)
QString buffer () const
 Dialog (BackgroundChecker *checker, QWidget *parent)
QString originalBuffer () const
void show ()
 ~Dialog ()

Detailed Description

Spellcheck dialog.

 Sonnet::Dialog = dlg=new Sonnet::Dialog(new Sonnet::BackgroundChecker(
          this), this);
 //connect signals
 ...
 dlg->setBuffer( someText );
 dlg->show();

You can change buffer inside a slot connected to done() signal and spellcheck will continue with new data automatically.

Definition at line 49 of file dialog.h.


Constructor & Destructor Documentation

Sonnet::Dialog::Dialog ( BackgroundChecker *  checker,
QWidget *  parent 
)

Definition at line 71 of file dialog.cpp.

Sonnet::Dialog::~Dialog (  ) 

Definition at line 91 of file dialog.cpp.


Member Function Documentation

void Sonnet::Dialog::activeAutoCorrect ( bool  _active  ) 

Definition at line 149 of file dialog.cpp.

void Sonnet::Dialog::autoCorrect ( const QString &  currentWord,
const QString &  replaceWord 
) [signal]
QString Sonnet::Dialog::buffer (  )  const

Definition at line 187 of file dialog.cpp.

void Sonnet::Dialog::cancel (  )  [signal]
void Sonnet::Dialog::done ( const QString &  newBuffer  )  [signal]

The dialog won't be closed if you setBuffer() in slot connected to this signal.

Also emitted after stop() signal

void Sonnet::Dialog::languageChanged ( const QString &  language  )  [signal]

Emitted when the user changes the language used for spellchecking, which is shown in a combobox of this dialog.

Parameters:
dictionary the new language the user selected
Since:
4.1
void Sonnet::Dialog::misspelling ( const QString &  word,
int  start 
) [signal]
QString Sonnet::Dialog::originalBuffer (  )  const

Definition at line 182 of file dialog.cpp.

void Sonnet::Dialog::replace ( const QString &  oldWord,
int  start,
const QString &  newWord 
) [signal]
void Sonnet::Dialog::setBuffer ( const QString &  buf  )  [slot]

Definition at line 192 of file dialog.cpp.

void Sonnet::Dialog::show (  ) 

Definition at line 213 of file dialog.cpp.

void Sonnet::Dialog::spellCheckStatus ( const QString &   )  [signal]

Signal sends when spell checking is finished/stopped/completed.

Since:
4.1
void Sonnet::Dialog::stop (  )  [signal]

The documentation for this class was generated from the following files:
  • dialog.h
  • dialog.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
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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