KDEUI
Sonnet::Dialog Class Reference
Spellcheck dialog. More...
#include <dialog.h>
Public Slots | |
| void | setBuffer (const QString &) |
Signals | |
| void | autoCorrect (const QString ¤tWord, 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:
KDE 4.3 API Reference