kmail

kmlineeditspell.h

Go to the documentation of this file.
00001 /* -*- mode: C++; c-file-style: "gnu" -*-
00002  * KMComposeWin Header File
00003  * Author: Markus Wuebben <markus.wuebben@kde.org>
00004  */
00005 #ifndef __KMAIL_KMLINEEDITSPELL_H__
00006 #define __KMAIL_KMLINEEDITSPELL_H__
00007 
00008 #include <libkdepim/addresseelineedit.h>
00009 
00010 class QPopupMenu;
00011 
00012 class KMLineEdit : public KPIM::AddresseeLineEdit
00013 {
00014     Q_OBJECT
00015 public:
00016     KMLineEdit(bool useCompletion, QWidget *parent = 0,
00017                const char *name = 0);
00018 
00019 signals:
00020     void focusUp();
00021     void focusDown();
00022 
00023 protected:
00024     // Inherited. Always called by the parent when this widget is created.
00025     virtual void loadContacts();
00026 
00027     virtual void keyPressEvent(QKeyEvent*);
00028 
00029     virtual QPopupMenu *createPopupMenu();
00030 
00031 private slots:
00032     void editRecentAddresses();
00033 
00034 private:
00035     void dropEvent( QDropEvent *event );
00036     void insertEmails( const QStringList & emails );
00037 };
00038 
00039 
00040 class KMLineEditSpell : public KMLineEdit
00041 {
00042     Q_OBJECT
00043 public:
00044     KMLineEditSpell(bool useCompletion, QWidget *parent = 0,
00045                const char *name = 0);
00046     void highLightWord( unsigned int length, unsigned int pos );
00047     void spellCheckDone( const QString &s );
00048     void spellCheckerMisspelling( const QString &text, const QStringList &, unsigned int pos);
00049     void spellCheckerCorrected( const QString &old, const QString &corr, unsigned int pos);
00050 
00051  signals:
00052   void subjectTextSpellChecked();
00053 };
00054 
00055 #endif // __KMAIL_KMLINEEDITSPELL_H__