summaryrefslogtreecommitdiffstats
path: root/kmail/kmlineeditspell.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/kmlineeditspell.h
downloadtdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz
tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmlineeditspell.h')
-rw-r--r--kmail/kmlineeditspell.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/kmail/kmlineeditspell.h b/kmail/kmlineeditspell.h
new file mode 100644
index 000000000..85b4c1c9d
--- /dev/null
+++ b/kmail/kmlineeditspell.h
@@ -0,0 +1,55 @@
+/* -*- 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 <libkdepim/addresseelineedit.h>
+
+class QPopupMenu;
+
+class KMLineEdit : public KPIM::AddresseeLineEdit
+{
+ Q_OBJECT
+public:
+ KMLineEdit(bool useCompletion, QWidget *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(QKeyEvent*);
+
+ virtual QPopupMenu *createPopupMenu();
+
+private slots:
+ void editRecentAddresses();
+
+private:
+ void dropEvent( QDropEvent *event );
+ void insertEmails( const QStringList & emails );
+};
+
+
+class KMLineEditSpell : public KMLineEdit
+{
+ Q_OBJECT
+public:
+ KMLineEditSpell(bool useCompletion, QWidget *parent = 0,
+ const char *name = 0);
+ void highLightWord( unsigned int length, unsigned int pos );
+ void spellCheckDone( const QString &s );
+ void spellCheckerMisspelling( const QString &text, const QStringList &, unsigned int pos);
+ void spellCheckerCorrected( const QString &old, const QString &corr, unsigned int pos);
+
+ signals:
+ void subjectTextSpellChecked();
+};
+
+#endif // __KMAIL_KMLINEEDITSPELL_H__