KDE3Support
k3spell.cpp
Go to the documentation of this file.
229 if ( ksconfig->client() == KS_CLIENT_ISPELL || ksconfig->client() == KS_CLIENT_ASPELL || ksconfig->client() == KS_CLIENT_HUNSPELL )
286 // Note: This sets I/O encoding. Hunspell correctly handles dictionary encoding != I/O encoding.
287 // It will be faster if the I/O encoding matches the dictionary encoding, but using UTF-8 is always safe.
1290 KMessageBox::information( 0, i18n("You have to restart the dialog for changes to take effect") );
1538 void K3Spell::slotSpellCheckerCorrected( const QString & oldText, const QString & newText, unsigned int pos )
1659 kDebug(750) << __FILE__ << ":" << __LINE__ << " Codec = " << (d->m_codec ? d->m_codec->name() : "<default>");
Definition: k3sconfig.h:46
void setNextOpenMode(QIODevice::OpenMode mode)
QString i18n(const char *text)
void clear()
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void ignoreall(const QString &originalword)
Emitted when the user pressed "Ignore All" in the dialog.
QString cap(int nth) const
TransferJob * put(const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
QString toUpper() const
void truncate(int position)
Definition: k3spell.h:65
int timeout
void dialog3()
QString & prepend(QChar ch)
Definition: k3sconfig.h:54
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
QTextCodec * codecForCStrings()
Definition: k3spelldlg.h:37
int size() const
int parseOneResponse(const QString &_buffer, QString &word, QStringList &sugg)
Definition: k3spell.cpp:783
virtual bool checkWord(const QString &_buffer, bool usedialog=false)
Spellchecks a single word.
Definition: k3spell.cpp:571
QString simplified() const
void replaceall(const QString &origword, const QString &replacement)
Emitted when the user pressed "ReplaceAll" in the dialog.
Definition: k3spelldlg.h:43
static QDebug kError(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
iterator erase(iterator pos)
Definition: k3spelldlg.h:39
void setOutputChannelMode(OutputChannelMode mode)
QString & remove(int position, int n)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: k3sconfig.h:65
Definition: k3spelldlg.h:41
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Definition: k3spell.cpp:57
void setIgnoreTitleCase(bool b)
Call setIgnoreTitleCase(true) to tell the spell-checker to ignore words with a 'title' case...
Definition: k3spell.cpp:1503
virtual ~K3Spell()
The destructor instructs ISpell/ASpell to write out the personal dictionary and then terminates ISpel...
Definition: k3spell.cpp:1404
Definition: k3spelldlg.h:36
void setProgressResolution(unsigned int res)
Sets the resolution (in percent) of the progress() signals.
Definition: k3spell.cpp:1475
Definition: k3sconfig.h:62
int x() const
int y() const
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void clear()
int lastPosition() const
Returns the position (when using check()) or word number (when using checkList()) of the last word ch...
Definition: k3spell.cpp:1141
width
Definition: k3sconfig.h:44
Definition: k3sconfig.h:55
int indexIn(const QString &str, int offset, CaretMode caretMode) const
int count(const T &value) const
Definition: k3sconfig.h:61
void append(const T &value)
virtual bool addPersonal(const QString &word)
Adds a word to the user's personal dictionary.
Definition: k3spell.cpp:489
QString fromUtf8(const char *str, int size)
Definition: k3sconfig.h:63
Definition: k3spell.cpp:60
Definition: k3sconfig.h:57
Definition: k3spell.h:65
void setFocus()
Definition: k3spelldlg.h:50
bool isEmpty() const
QString trimmed() const
K3Spell(QWidget *parent, const QString &caption, QObject *receiver, const char *slot, K3SpellConfig *kcs=0, bool progressbar=true, bool modal=false)
Starts the spellchecker.
Definition: k3spell.cpp:125
const char * constData() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void move(int x, int y)
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
typedef Iterator
int count(char ch) const
QString intermediateBuffer() const
Returns the partially spellchecked buffer.
Definition: k3spell.cpp:161
Definition: k3spell.cpp:60
Definition: k3spell.h:80
void deleteLater()
T & first()
SpellerType
These are possible types of documents which the spell checker can check.
Definition: k3spell.h:80
Definition: k3sconfig.h:53
void hide()
Definition: k3spell.cpp:56
void ignoreword(const QString &originalword)
Emitted when the user pressed "Ignore" in the dialog.
virtual bool reset()
void dialog(const QString &word, QStringList &sugg, const char *_slot)
Definition: k3spell.cpp:1322
QStringList suggestions() const
Returns list of suggested word replacements.
Definition: k3spell.cpp:148
void setIgnoreUpperWords(bool b)
Call setIgnoreUpperWords(true) to tell the spell-checker to ignore words that are completely uppercas...
Definition: k3spell.cpp:1498
void start()
void misspelling(const QString &originalword, const QStringList &suggestions, unsigned int pos)
Emitted whenever a misspelled word is found by check() or by checkWord().
QString right(int n) const
Definition: k3spell.cpp:55
iterator end()
QString toLower() const
void ready(K3Spell *)
Emitted after K3Spell has verified that ISpell/ASpell is running and working properly.
bool waitForStarted(int msecs)
Definition: k3spell.h:80
QString & replace(int position, int n, QChar after)
void setIgnoreList(const QStringList &_ignorelist)
Options setting routines.
Definition: k3sconfig.cpp:1163
QByteArray toLatin1() const
QString mid(int position, int n) const
void setReplaceAllList(const QStringList &_replaceAllList)
The _replaceAllList contains word you like that replace word.
Definition: k3sconfig.cpp:1175
Definition: k3sconfig.h:43
Definition: k3spelldlg.h:42
void insert(int i, const T &value)
void addword(const QString &originalword)
Emitted when the user pressed "Add" in the dialog.
unsigned int version()
Definition: k3spell.h:65
float toFloat(bool *ok) const
Definition: k3sconfig.h:45
Definition: k3spelldlg.h:40
const QChar at(int position) const
void corrected(const QString &originalword, const QString &newword, unsigned int pos)
Emitted after the "Replace" or "Replace All" buttons of the dialog was pressed, or if the word was co...
QTextCodec * codecForName(const QByteArray &name)
void setCaption(const QString &c)
void init(const QString &_word, QStringList *_sugg)
Change the misspelled word and suggested replacements and enable the disabled buttons on the dialog b...
Definition: k3spelldlg.cpp:120
Definition: k3spelldlg.h:38
void initialize(QWidget *_parent, const QString &_caption, QObject *obj, const char *slot, K3SpellConfig *_ksc, bool _progressbar, bool _modal, SpellerType type)
Definition: k3spell.cpp:1577
int length() const
Definition: k3spelldlg.h:44
char * data()
QString left(int n) const
qint64 write(const char *data, qint64 maxSize)
QString fromLatin1(const char *str, int size)
Definition: k3sconfig.h:56
virtual bool check(const QString &_buffer, bool usedialog=true)
Spellchecks a buffer of many words in plain text format.
Definition: k3spell.cpp:1082
int indexOf(const QRegExp &rx, int from) const
void prepend(const T &value)
Definition: k3spell.h:80
void show()
void setCodecForCStrings(QTextCodec *codec)
Definition: k3spell.cpp:54
Definition: k3spell.h:65
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void closeWriteChannel()
QString readAll()
virtual bool checkList(QStringList *_wordlist, bool usedialog=true)
Spellchecks a list of words.
Definition: k3spell.cpp:886
virtual bool ignore(const QString &word)
Tells ISpell/ASpell to ignore this word for the life of this K3Spell instance.
Definition: k3spell.cpp:508
iterator begin()
Definition: k3spell.h:80
Definition: k3spell.h:65
height
Definition: k3spell.h:65
qint64 readLine(char *data, qint64 maxSize)
singleShot
QByteArray toUtf8() const
Definition: k3sconfig.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.