kmlineeditspell.h
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 <libtdepim/addresseelineedit.h> 00009 00010 class TQPopupMenu; 00011 00012 class KMLineEdit : public KPIM::AddresseeLineEdit 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 KMLineEdit(bool useCompletion, TQWidget *parent = 0, 00018 const char *name = 0); 00019 00020 signals: 00021 void focusUp(); 00022 void focusDown(); 00023 00024 protected: 00025 // Inherited. Always called by the parent when this widget is created. 00026 virtual void loadContacts(); 00027 00028 virtual void keyPressEvent(TQKeyEvent*); 00029 00030 virtual TQPopupMenu *createPopupMenu(); 00031 00032 private slots: 00033 void editRecentAddresses(); 00034 00035 private: 00036 void dropEvent( TQDropEvent *event ); 00037 void insertEmails( const TQStringList & emails ); 00038 }; 00039 00040 00041 class KMLineEditSpell : public KMLineEdit 00042 { 00043 Q_OBJECT 00044 00045 public: 00046 KMLineEditSpell(bool useCompletion, TQWidget *parent = 0, 00047 const char *name = 0); 00048 void highLightWord( unsigned int length, unsigned int pos ); 00049 void spellCheckDone( const TQString &s ); 00050 void spellCheckerMisspelling( const TQString &text, const TQStringList &, unsigned int pos); 00051 void spellCheckerCorrected( const TQString &old, const TQString &corr, unsigned int pos); 00052 00053 signals: 00054 void subjectTextSpellChecked(); 00055 }; 00056 00057 #endif // __KMAIL_KMLINEEDITSPELL_H__