kmail

kmlineeditspell.h
1/*
2 * KMComposeWin Header File
3 * Author: Markus Wuebben <markus.wuebben@kde.org>
4 */
5#ifndef __KMAIL_KMLINEEDITSPELL_H__
6#define __KMAIL_KMLINEEDITSPELL_H__
7
8#include <libtdepim/addresseelineedit.h>
9
10class TQPopupMenu;
11
12class KMLineEdit : public KPIM::AddresseeLineEdit
13{
14 TQ_OBJECT
15
16public:
17 KMLineEdit(bool useCompletion, TQWidget *parent = 0,
18 const char *name = 0);
19
20signals:
21 void focusUp();
22 void focusDown();
23
24protected:
25 // Inherited. Always called by the parent when this widget is created.
26 virtual void loadContacts();
27
28 virtual void keyPressEvent(TQKeyEvent*);
29
30 virtual TQPopupMenu *createPopupMenu();
31
32private slots:
33 void editRecentAddresses();
34
35private:
36 void dropEvent( TQDropEvent *event );
37 void insertEmails( const TQStringList & emails );
38};
39
40
41class KMLineEditSpell : public KMLineEdit
42{
43 TQ_OBJECT
44
45public:
46 KMLineEditSpell(bool useCompletion, TQWidget *parent = 0,
47 const char *name = 0);
48 void highLightWord( unsigned int length, unsigned int pos );
49 void spellCheckDone( const TQString &s );
50 void spellCheckerMisspelling( const TQString &text, const TQStringList &, unsigned int pos);
51 void spellCheckerCorrected( const TQString &old, const TQString &corr, unsigned int pos);
52
53 signals:
54 void subjectTextSpellChecked();
55};
56
57#endif // __KMAIL_KMLINEEDITSPELL_H__