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

KDEUI

Sonnet::Dialog

Sonnet::Dialog Class Reference

#include <dialog.h>

Inheritance diagram for Sonnet::Dialog:

Inheritance graph
[legend]

List of all members.


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 48 of file dialog.h.


Public Slots

void setBuffer (const QString &)

Signals

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

Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 60 of file dialog.cpp.

Sonnet::Dialog::~Dialog (  ) 

Definition at line 81 of file dialog.cpp.


Member Function Documentation

QString Sonnet::Dialog::originalBuffer (  )  const

Definition at line 167 of file dialog.cpp.

QString Sonnet::Dialog::buffer (  )  const

Definition at line 172 of file dialog.cpp.

void Sonnet::Dialog::show (  ) 

Definition at line 198 of file dialog.cpp.

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

Definition at line 136 of file dialog.cpp.

void Sonnet::Dialog::setBuffer ( const QString &  buf  )  [slot]

Definition at line 177 of file dialog.cpp.

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::misspelling ( const QString &  word,
int  start 
) [signal]

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

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

void Sonnet::Dialog::cancel (  )  [signal]

void Sonnet::Dialog::autoCorrect ( const QString &  currentWord,
const QString &  replaceWord 
) [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
  •   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