summaryrefslogtreecommitdiffstats
path: root/kmail/kmlineeditspell.h
blob: c5681573e9b99df22f83d472ca102f02c23fd135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* -*- mode: C++; c-file-style: "gnu" -*-
 * KMComposeWin Header File
 * Author: Markus Wuebben <markus.wuebben@kde.org>
 */
#ifndef __KMAIL_KMLINEEDITSPELL_H__
#define __KMAIL_KMLINEEDITSPELL_H__

#include <libtdepim/addresseelineedit.h>

class TQPopupMenu;

class KMLineEdit : public KPIM::AddresseeLineEdit
{
    Q_OBJECT
  TQ_OBJECT
public:
    KMLineEdit(bool useCompletion, TQWidget *parent = 0,
               const char *name = 0);

signals:
    void focusUp();
    void focusDown();

protected:
    // Inherited. Always called by the parent when this widget is created.
    virtual void loadContacts();

    virtual void keyPressEvent(TQKeyEvent*);

    virtual TQPopupMenu *createPopupMenu();

private slots:
    void editRecentAddresses();

private:
    void dropEvent( TQDropEvent *event );
    void insertEmails( const TQStringList & emails );
};


class KMLineEditSpell : public KMLineEdit
{
    Q_OBJECT
  TQ_OBJECT
public:
    KMLineEditSpell(bool useCompletion, TQWidget *parent = 0,
               const char *name = 0);
    void highLightWord( unsigned int length, unsigned int pos );
    void spellCheckDone( const TQString &s );
    void spellCheckerMisspelling( const TQString &text, const TQStringList &, unsigned int pos);
    void spellCheckerCorrected( const TQString &old, const TQString &corr, unsigned int pos);

 signals:
  void subjectTextSpellChecked();
};

#endif // __KMAIL_KMLINEEDITSPELL_H__