-rw-r--r-- | kmicromail/composemail.cpp | 26 | ||||
-rw-r--r-- | kmicromail/defines.h | 2 | ||||
-rw-r--r-- | kmicromail/editaccounts.cpp | 3 | ||||
-rw-r--r-- | kmicromail/kmicromail.pro | 3 | ||||
-rw-r--r-- | kmicromail/koprefsdialog.cpp | 2 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/libmailwrapper.pro | 3 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 2 | ||||
-rw-r--r-- | kmicromail/nntpgroupsdlg.cpp | 2 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 9 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog.h | 35 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog_hacked.cpp | 30 | ||||
-rw-r--r-- | kmicromail/viewmail.cpp | 27 | ||||
-rw-r--r-- | kmicromail/viewmail.h | 4 | ||||
-rw-r--r-- | microkde/kapplication.h | 3 | ||||
-rw-r--r-- | microkde/microkde.pro | 6 |
15 files changed, 118 insertions, 39 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp index 0cd0b23..5945b7f 100644 --- a/kmicromail/composemail.cpp +++ b/kmicromail/composemail.cpp | |||
@@ -1,14 +1,30 @@ | |||
1 | // CHANGED 2004-08-06 Lutz Rogowski | 1 | // CHANGED 2004-08-06 Lutz Rogowski |
2 | 2 | ||
3 | #include <kabc/addresseedialog.h> | ||
4 | #include <kabc/stdaddressbook.h> | ||
5 | #include <kabc/addressee.h> | ||
6 | #ifdef DESKTOP_VERSION | ||
7 | #include <qapplication.h> | ||
8 | #include <kabc/addresseedialog.h> | ||
9 | #endif //DESKTOP_VERSION | ||
10 | #include <libkdepim/externalapphandler.h> | ||
11 | |||
12 | #include "koprefs.h" | ||
13 | |||
14 | #ifdef MINIKDE_KDIALOG_H | ||
15 | #undef MINIKDE_KDIALOG_H | ||
16 | #endif | ||
17 | |||
18 | |||
3 | #include "composemail.h" | 19 | #include "composemail.h" |
4 | 20 | ||
5 | #include <libmailwrapper/smtpwrapper.h> | 21 | #include <libmailwrapper/smtpwrapper.h> |
6 | #include <libmailwrapper/storemail.h> | 22 | #include <libmailwrapper/storemail.h> |
7 | #include <libmailwrapper/abstractmail.h> | 23 | #include <libmailwrapper/abstractmail.h> |
8 | #include <libmailwrapper/mailtypes.h> | 24 | #include <libmailwrapper/mailtypes.h> |
9 | 25 | ||
10 | /* OPIE */ | 26 | /* OPIE */ |
11 | //#include <opie2/ofiledialog.h> | 27 | //#include <opie2/ofiledialog.h> |
12 | //#include <opie2/odebug.h> | 28 | //#include <opie2/odebug.h> |
13 | #include <kfiledialog.h> | 29 | #include <kfiledialog.h> |
14 | //#include <qpe/resource.h> | 30 | //#include <qpe/resource.h> |
@@ -17,34 +33,24 @@ | |||
17 | 33 | ||
18 | 34 | ||
19 | #include <qcombobox.h> | 35 | #include <qcombobox.h> |
20 | #include <qcheckbox.h> | 36 | #include <qcheckbox.h> |
21 | #include <qiconset.h> | 37 | #include <qiconset.h> |
22 | #include <qtimer.h> | 38 | #include <qtimer.h> |
23 | #include <qmessagebox.h> | 39 | #include <qmessagebox.h> |
24 | #include <qpushbutton.h> | 40 | #include <qpushbutton.h> |
25 | #include <qmultilineedit.h> | 41 | #include <qmultilineedit.h> |
26 | #include <qlabel.h> | 42 | #include <qlabel.h> |
27 | #include <qtabwidget.h> | 43 | #include <qtabwidget.h> |
28 | #include <qlistview.h> | 44 | #include <qlistview.h> |
29 | #include <kabc/addresseedialog.h> | ||
30 | #include <kabc/stdaddressbook.h> | ||
31 | #include <kabc/addressee.h> | ||
32 | #ifdef DESKTOP_VERSION | ||
33 | #include <qapplication.h> | ||
34 | #include <kabc/addresseedialog.h> | ||
35 | #endif //DESKTOP_VERSION | ||
36 | #include <libkdepim/externalapphandler.h> | ||
37 | |||
38 | #include "koprefs.h" | ||
39 | 45 | ||
40 | //using namespace Opie::Core; | 46 | //using namespace Opie::Core; |
41 | //using namespace Opie::Ui; | 47 | //using namespace Opie::Ui; |
42 | ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal ) | 48 | ComposeMail::ComposeMail( Settings *s, QWidget *parent, const char *name, bool modal ) |
43 | : ComposeMailUI( parent, name, modal ) | 49 | : ComposeMailUI( parent, name, modal ) |
44 | { | 50 | { |
45 | mPickLineEdit = 0; | 51 | mPickLineEdit = 0; |
46 | connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), | 52 | connect(ExternalAppHandler::instance(), SIGNAL(receivedNameEmailUidListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&)), |
47 | this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); | 53 | this, SLOT(insertAttendees(const QString&, const QStringList&, const QStringList&, const QStringList&))); |
48 | settings = s; | 54 | settings = s; |
49 | m_replyid = ""; | 55 | m_replyid = ""; |
50 | if ( KOPrefs::instance()->mUseKapi) { | 56 | if ( KOPrefs::instance()->mUseKapi) { |
diff --git a/kmicromail/defines.h b/kmicromail/defines.h index f2d7265..c890def 100644 --- a/kmicromail/defines.h +++ b/kmicromail/defines.h | |||
@@ -1,18 +1,18 @@ | |||
1 | #ifndef DEFINE_CONSTANTS_H | 1 | #ifndef DEFINE_CONSTANTS_H |
2 | #define DEFINE_CONSTANTS_H | 2 | #define DEFINE_CONSTANTS_H |
3 | 3 | ||
4 | 4 | ||
5 | 5 | ||
6 | #define USER_AGENT "KMicroMail v1.92" | 6 | #define USER_AGENT "KOpieMail v1.9.11" |
7 | 7 | ||
8 | #define PIXMAP_IMAPFOLDER SmallIcon ( "imapfolder" ) | 8 | #define PIXMAP_IMAPFOLDER SmallIcon ( "imapfolder" ) |
9 | #define PIXMAP_POP3FOLDER SmallIcon ( "pop3folder" ) | 9 | #define PIXMAP_POP3FOLDER SmallIcon ( "pop3folder" ) |
10 | #define PIXMAP_INBOXFOLDER SmallIcon ( "inbox" ) | 10 | #define PIXMAP_INBOXFOLDER SmallIcon ( "inbox" ) |
11 | #define PIXMAP_MBOXFOLDER SmallIcon ( "mboxfolder" ) | 11 | #define PIXMAP_MBOXFOLDER SmallIcon ( "mboxfolder" ) |
12 | #define PIXMAP_OUTBOXFOLDER SmallIcon ( "outbox" ) | 12 | #define PIXMAP_OUTBOXFOLDER SmallIcon ( "outbox" ) |
13 | #define PIXMAP_LOCALFOLDER SmallIcon ( "localfolder" ) | 13 | #define PIXMAP_LOCALFOLDER SmallIcon ( "localfolder" ) |
14 | #define PIXMAP_OFFLINE SmallIcon ( "notconnected" ) | 14 | #define PIXMAP_OFFLINE SmallIcon ( "notconnected" ) |
15 | 15 | ||
16 | #define IMAP_PORT "143" | 16 | #define IMAP_PORT "143" |
17 | #define IMAP_SSL_PORT "993" | 17 | #define IMAP_SSL_PORT "993" |
18 | #define SMTP_PORT "25" | 18 | #define SMTP_PORT "25" |
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index c931e45..0d30097 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -1,16 +1,17 @@ | |||
1 | 1 | ||
2 | #include <qdialog.h> | ||
3 | #include "kapplication.h" | ||
2 | #include "defines.h" | 4 | #include "defines.h" |
3 | #include "editaccounts.h" | 5 | #include "editaccounts.h" |
4 | #include "kapplication.h" | ||
5 | /* OPIE */ | 6 | /* OPIE */ |
6 | #include <qpe/qpeapplication.h> | 7 | #include <qpe/qpeapplication.h> |
7 | 8 | ||
8 | /* QT */ | 9 | /* QT */ |
9 | #include <qstringlist.h> | 10 | #include <qstringlist.h> |
10 | 11 | ||
11 | #include <qcombobox.h> | 12 | #include <qcombobox.h> |
12 | #include <qcheckbox.h> | 13 | #include <qcheckbox.h> |
13 | #include <qmessagebox.h> | 14 | #include <qmessagebox.h> |
14 | #include <qpushbutton.h> | 15 | #include <qpushbutton.h> |
15 | #include <qlineedit.h> | 16 | #include <qlineedit.h> |
16 | #include <qlabel.h> | 17 | #include <qlabel.h> |
diff --git a/kmicromail/kmicromail.pro b/kmicromail/kmicromail.pro index cd5a3c1..927dc8a 100644 --- a/kmicromail/kmicromail.pro +++ b/kmicromail/kmicromail.pro | |||
@@ -6,24 +6,25 @@ HEADERS = defines.h \ | |||
6 | accountview.h \ | 6 | accountview.h \ |
7 | accountitem.h \ | 7 | accountitem.h \ |
8 | mainwindow.h \ | 8 | mainwindow.h \ |
9 | viewmail.h \ | 9 | viewmail.h \ |
10 | viewmailbase.h \ | 10 | viewmailbase.h \ |
11 | opiemail.h \ | 11 | opiemail.h \ |
12 | mailistviewitem.h \ | 12 | mailistviewitem.h \ |
13 | settingsdialog.h \ | 13 | settingsdialog.h \ |
14 | statuswidget.h \ | 14 | statuswidget.h \ |
15 | newmaildir.h \ | 15 | newmaildir.h \ |
16 | selectstore.h \ | 16 | selectstore.h \ |
17 | selectsmtp.h \ | 17 | selectsmtp.h \ |
18 | ./qpe/qdialog.h \ | ||
18 | nntpgroups.h \ | 19 | nntpgroups.h \ |
19 | koprefs.h \ | 20 | koprefs.h \ |
20 | koprefsdialog.h \ | 21 | koprefsdialog.h \ |
21 | nntpgroupsdlg.h | 22 | nntpgroupsdlg.h |
22 | 23 | ||
23 | SOURCES = main.cpp \ | 24 | SOURCES = main.cpp \ |
24 | opiemail.cpp \ | 25 | opiemail.cpp \ |
25 | mainwindow.cpp \ | 26 | mainwindow.cpp \ |
26 | accountview.cpp \ | 27 | accountview.cpp \ |
27 | accountitem.cpp \ | 28 | accountitem.cpp \ |
28 | composemail.cpp \ | 29 | composemail.cpp \ |
29 | editaccounts.cpp \ | 30 | editaccounts.cpp \ |
@@ -45,25 +46,25 @@ INTERFACES = editaccountsui.ui \ | |||
45 | imapconfigui.ui \ | 46 | imapconfigui.ui \ |
46 | pop3configui.ui \ | 47 | pop3configui.ui \ |
47 | nntpconfigui.ui \ | 48 | nntpconfigui.ui \ |
48 | smtpconfigui.ui \ | 49 | smtpconfigui.ui \ |
49 | composemailui.ui \ | 50 | composemailui.ui \ |
50 | settingsdialogui.ui \ | 51 | settingsdialogui.ui \ |
51 | statuswidgetui.ui \ | 52 | statuswidgetui.ui \ |
52 | newmaildirui.ui \ | 53 | newmaildirui.ui \ |
53 | selectstoreui.ui \ | 54 | selectstoreui.ui \ |
54 | nntpgroupsui.ui | 55 | nntpgroupsui.ui |
55 | 56 | ||
56 | 57 | ||
57 | INCLUDEPATH += . .. ../libkdepim ../microkde ../microkde/kdecore libetpan/include ../microkde/kdeui | 58 | INCLUDEPATH += ./qpe . .. ../libkdepim ../microkde ../microkde/kdecore libetpan/include ../microkde/kdeui |
58 | LIBS += -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc | 59 | LIBS += -L../bin -lmicromailwrapper -lmicrolibetpan -lmicrokde -lssl -lcrypto -lmicrokdepim -lmicrokabc |
59 | 60 | ||
60 | DESTDIR= ../bin | 61 | DESTDIR= ../bin |
61 | TARGET = ompi | 62 | TARGET = ompi |
62 | 63 | ||
63 | DEFINES += DESKTOP_VERSION | 64 | DEFINES += DESKTOP_VERSION |
64 | unix : { | 65 | unix : { |
65 | OBJECTS_DIR = obj/unix | 66 | OBJECTS_DIR = obj/unix |
66 | MOC_DIR = moc/unix | 67 | MOC_DIR = moc/unix |
67 | } | 68 | } |
68 | win32: { | 69 | win32: { |
69 | DEFINES += _WIN32_ | 70 | DEFINES += _WIN32_ |
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index 598d12f..c878fc9 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp | |||
@@ -11,25 +11,25 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | #include <kdialog.h> | |
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qgroupbox.h> | 26 | #include <qgroupbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <qbuttongroup.h> |
28 | #include <qlineedit.h> | 28 | #include <qlineedit.h> |
29 | #include <qfont.h> | 29 | #include <qfont.h> |
30 | #include <qslider.h> | 30 | #include <qslider.h> |
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qtextstream.h> | 32 | #include <qtextstream.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | #include <qhbox.h> | 35 | #include <qhbox.h> |
diff --git a/kmicromail/libmailwrapper/libmailwrapper.pro b/kmicromail/libmailwrapper/libmailwrapper.pro index 2b005d8..10d45b1 100644 --- a/kmicromail/libmailwrapper/libmailwrapper.pro +++ b/kmicromail/libmailwrapper/libmailwrapper.pro | |||
@@ -26,30 +26,31 @@ SOURCES = imapwrapper.cpp \ | |||
26 | abstractmail.cpp \ | 26 | abstractmail.cpp \ |
27 | smtpwrapper.cpp \ | 27 | smtpwrapper.cpp \ |
28 | genericwrapper.cpp \ | 28 | genericwrapper.cpp \ |
29 | mboxwrapper.cpp \ | 29 | mboxwrapper.cpp \ |
30 | settings.cpp \ | 30 | settings.cpp \ |
31 | logindialog.cpp \ | 31 | logindialog.cpp \ |
32 | sendmailprogress.cpp \ | 32 | sendmailprogress.cpp \ |
33 | statusmail.cpp \ | 33 | statusmail.cpp \ |
34 | mhwrapper.cpp \ | 34 | mhwrapper.cpp \ |
35 | nntpwrapper.cpp \ | 35 | nntpwrapper.cpp \ |
36 | generatemail.cpp \ | 36 | generatemail.cpp \ |
37 | storemail.cpp \ | 37 | storemail.cpp \ |
38 | ./qpe/qdialog_hacked.cpp \ | ||
38 | ../qpe/global.cpp | 39 | ../qpe/global.cpp |
39 | 40 | ||
40 | INTERFACES = logindialogui.ui \ | 41 | INTERFACES = logindialogui.ui \ |
41 | sendmailprogressui.ui | 42 | sendmailprogressui.ui |
42 | 43 | ||
43 | INCLUDEPATH += .. ../../microkde ../../microkde/kdecore ../libetpan/include | 44 | INCLUDEPATH += ../qpe .. ../../microkde ../../microkde/kdecore ../libetpan/include |
44 | LIBS += -lssl -lcrypto | 45 | LIBS += -lssl -lcrypto |
45 | 46 | ||
46 | #-lqpe -letpan | 47 | #-lqpe -letpan |
47 | 48 | ||
48 | DESTDIR = ../../bin | 49 | DESTDIR = ../../bin |
49 | TARGET = micromailwrapper | 50 | TARGET = micromailwrapper |
50 | 51 | ||
51 | DEFINES += DESKTOP_VERSION | 52 | DEFINES += DESKTOP_VERSION |
52 | unix : { | 53 | unix : { |
53 | OBJECTS_DIR = obj/unix | 54 | OBJECTS_DIR = obj/unix |
54 | MOC_DIR = moc/unix | 55 | MOC_DIR = moc/unix |
55 | } | 56 | } |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index b19dbbe..7655385 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -1,20 +1,20 @@ | |||
1 | 1 | ||
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | #include <qlabel.h> | 3 | #include <qlabel.h> |
4 | #include <qvbox.h> | 4 | #include <qvbox.h> |
5 | #include <qheader.h> | 5 | #include <qheader.h> |
6 | #include <qtimer.h> | 6 | #include <qtimer.h> |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <kdialog.h> | 8 | //#include <kdialog.h> |
9 | #include <kiconloader.h> | 9 | #include <kiconloader.h> |
10 | #include <kapplication.h> | 10 | #include <kapplication.h> |
11 | 11 | ||
12 | #ifdef DESKTOP_VERSION | 12 | #ifdef DESKTOP_VERSION |
13 | #include <qapplication.h> | 13 | #include <qapplication.h> |
14 | #else | 14 | #else |
15 | #include <qpe/qpeapplication.h> | 15 | #include <qpe/qpeapplication.h> |
16 | #endif | 16 | #endif |
17 | #include "defines.h" | 17 | #include "defines.h" |
18 | #include "mainwindow.h" | 18 | #include "mainwindow.h" |
19 | #include <KDGanttMinimizeSplitter.h> | 19 | #include <KDGanttMinimizeSplitter.h> |
20 | 20 | ||
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp index a461bdf..f564b10 100644 --- a/kmicromail/nntpgroupsdlg.cpp +++ b/kmicromail/nntpgroupsdlg.cpp | |||
@@ -1,22 +1,22 @@ | |||
1 | #include "nntpgroupsdlg.h" | 1 | #include "nntpgroupsdlg.h" |
2 | #include "nntpgroups.h" | 2 | #include "nntpgroups.h" |
3 | #include <klocale.h> | 3 | #include <klocale.h> |
4 | 4 | ||
5 | #include <libmailwrapper/settings.h> | 5 | #include <libmailwrapper/settings.h> |
6 | 6 | ||
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | 8 | ||
9 | NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name) | 9 | NNTPGroupsDlg::NNTPGroupsDlg(NNTPaccount *account,QWidget * parent, const char * name) |
10 | : QDialog(parent,name,true,WStyle_ContextHelp) | 10 | : QDialog(parent,name,true,0) |
11 | { | 11 | { |
12 | setCaption(i18n("Subscribed newsgroups")); | 12 | setCaption(i18n("Subscribed newsgroups")); |
13 | m_Account = account; | 13 | m_Account = account; |
14 | QVBoxLayout*dlglayout = new QVBoxLayout(this); | 14 | QVBoxLayout*dlglayout = new QVBoxLayout(this); |
15 | dlglayout->setSpacing(2); | 15 | dlglayout->setSpacing(2); |
16 | dlglayout->setMargin(1); | 16 | dlglayout->setMargin(1); |
17 | groupsWidget = new NNTPGroups(account,this); | 17 | groupsWidget = new NNTPGroups(account,this); |
18 | dlglayout->addWidget(groupsWidget); | 18 | dlglayout->addWidget(groupsWidget); |
19 | } | 19 | } |
20 | 20 | ||
21 | NNTPGroupsDlg::~NNTPGroupsDlg() | 21 | NNTPGroupsDlg::~NNTPGroupsDlg() |
22 | { | 22 | { |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 153c7c0..e088b9e 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,33 +1,36 @@ | |||
1 | // CHANGED 2004-09-31 Lutz Rogowski | 1 | // CHANGED 2004-09-31 Lutz Rogowski |
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | 3 | ||
4 | #include "koprefsdialog.h" | ||
5 | #include <libkdepim/externalapphandler.h> | ||
6 | #include <libkdepim/kpimglobalprefs.h> | ||
7 | #ifdef MINIKDE_KDIALOG_H | ||
8 | #undef MINIKDE_KDIALOG_H | ||
9 | #endif | ||
4 | #include "settingsdialog.h" | 10 | #include "settingsdialog.h" |
5 | #include "opiemail.h" | 11 | #include "opiemail.h" |
6 | #include "editaccounts.h" | 12 | #include "editaccounts.h" |
7 | #include "composemail.h" | 13 | #include "composemail.h" |
8 | #include "mailistviewitem.h" | 14 | #include "mailistviewitem.h" |
9 | #include "viewmail.h" | 15 | #include "viewmail.h" |
10 | #include "selectstore.h" | 16 | #include "selectstore.h" |
11 | #include "selectsmtp.h" | 17 | #include "selectsmtp.h" |
12 | #include "accountitem.h" | 18 | #include "accountitem.h" |
13 | #include "koprefsdialog.h" | ||
14 | #include "klocale.h" | 19 | #include "klocale.h" |
15 | 20 | ||
16 | #include <qmessagebox.h> | 21 | #include <qmessagebox.h> |
17 | #include <qtimer.h> | 22 | #include <qtimer.h> |
18 | #include <qcursor.h> | 23 | #include <qcursor.h> |
19 | #include <qregexp.h> | 24 | #include <qregexp.h> |
20 | #include <libkdepim/externalapphandler.h> | ||
21 | #include <libkdepim/kpimglobalprefs.h> | ||
22 | 25 | ||
23 | #ifdef DESKTOP_VERSION | 26 | #ifdef DESKTOP_VERSION |
24 | #include <qapplication.h> | 27 | #include <qapplication.h> |
25 | #else | 28 | #else |
26 | #include <qpe/qpeapplication.h> | 29 | #include <qpe/qpeapplication.h> |
27 | #endif | 30 | #endif |
28 | #include <libmailwrapper/smtpwrapper.h> | 31 | #include <libmailwrapper/smtpwrapper.h> |
29 | #include <libmailwrapper/mailtypes.h> | 32 | #include <libmailwrapper/mailtypes.h> |
30 | #include <libmailwrapper/abstractmail.h> | 33 | #include <libmailwrapper/abstractmail.h> |
31 | /* OPIE */ | 34 | /* OPIE */ |
32 | //#include <qpe/resource.h> | 35 | //#include <qpe/resource.h> |
33 | //#include <qpe/qpeapplication.h> | 36 | //#include <qpe/qpeapplication.h> |
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h new file mode 100644 index 0000000..d671e34 --- a/dev/null +++ b/kmicromail/qpe/qdialog.h | |||
@@ -0,0 +1,35 @@ | |||
1 | |||
2 | #ifndef MINIKDE_KDIALOG_H | ||
3 | |||
4 | #ifndef DEFINE_QDIALOG_HACK | ||
5 | #define DEFINE_QDIALOG_HACK | ||
6 | #warning call of include <qdialog.h> | ||
7 | #warning including /usr/local/qt/include/qdialog.h | ||
8 | #warning if you get an compiling error please adjust your path her | ||
9 | |||
10 | #include "/usr/local/qt/include/qdialog.h" | ||
11 | class QDialog_hacked : public QDialog | ||
12 | { | ||
13 | //Q__OBJECT | ||
14 | |||
15 | public: | ||
16 | QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 ); | ||
17 | |||
18 | }; | ||
19 | |||
20 | #define QDialog QDialog_hacked | ||
21 | |||
22 | #endif | ||
23 | |||
24 | #else | ||
25 | #warning ****************************************** | ||
26 | #warning ****************************************** | ||
27 | #warning ****************************************** | ||
28 | #warning ****************************************** | ||
29 | #warning ****************************************** | ||
30 | #warning ****************************************** | ||
31 | #warning ****************************************** | ||
32 | #warning ****************************************** | ||
33 | #include "/usr/local/qt/include/qdialog.h" | ||
34 | |||
35 | #endif | ||
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp new file mode 100644 index 0000000..e2ce21a --- a/dev/null +++ b/kmicromail/qpe/qdialog_hacked.cpp | |||
@@ -0,0 +1,30 @@ | |||
1 | |||
2 | #include <qdialog.h> | ||
3 | #include <qhbox.h> | ||
4 | #include <qpushbutton.h> | ||
5 | #include <klocale.h> | ||
6 | #ifdef QDialog | ||
7 | #undef QDialog | ||
8 | #endif | ||
9 | QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) | ||
10 | : QDialog( parent,name,modal) | ||
11 | { | ||
12 | qDebug("******************** "); | ||
13 | qDebug("******************** "); | ||
14 | qDebug("******************** "); | ||
15 | qDebug("******************** "); | ||
16 | qDebug("New hacked QDialog == KDialogBase "); | ||
17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); | ||
18 | |||
19 | setOrientation ( Vertical ); | ||
20 | QHBox * hb = new QHBox ( this ); | ||
21 | QPushButton *ok = new QPushButton( i18n("OK"), hb ); | ||
22 | QPushButton *cancel = new QPushButton( i18n("Cancel"), hb ); | ||
23 | setExtension ( hb ); | ||
24 | showExtension ( true ); | ||
25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); | ||
26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); | ||
27 | |||
28 | } | ||
29 | |||
30 | |||
diff --git a/kmicromail/viewmail.cpp b/kmicromail/viewmail.cpp index 0b4c322..f1e0225 100644 --- a/kmicromail/viewmail.cpp +++ b/kmicromail/viewmail.cpp | |||
@@ -1,42 +1,45 @@ | |||
1 | // CHANGED 2004-08-06 Lutz Rogowski | 1 | // CHANGED 2004-08-06 Lutz Rogowski |
2 | |||
3 | |||
4 | |||
5 | #include <kfiledialog.h> | ||
6 | #include "koprefs.h" | ||
7 | #include <klocale.h> | ||
8 | #include <kglobal.h> | ||
9 | #include <kapplication.h> | ||
10 | |||
11 | #ifdef MINIKDE_KDIALOG_H | ||
12 | #undef MINIKDE_KDIALOG_H | ||
13 | #endif | ||
14 | |||
2 | #include "composemail.h" | 15 | #include "composemail.h" |
3 | #include "viewmail.h" | 16 | #include "viewmail.h" |
4 | 17 | ||
5 | #include <libmailwrapper/settings.h> | 18 | #include <libmailwrapper/settings.h> |
6 | #include <libmailwrapper/abstractmail.h> | 19 | #include <libmailwrapper/abstractmail.h> |
7 | #include <libmailwrapper/mailtypes.h> | 20 | #include <libmailwrapper/mailtypes.h> |
8 | #include <kapplication.h> | ||
9 | |||
10 | /* OPIE */ | ||
11 | //#include <opie2/odebug.h> | ||
12 | //#include <opie2/ofiledialog.h> | ||
13 | //#include <opie2/oimagescrollview.h> | ||
14 | 21 | ||
15 | #include <kfiledialog.h> | 22 | #include <qdialog.h> |
16 | #include <kdialog.h> | ||
17 | 23 | ||
18 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
19 | 25 | ||
20 | /* QT */ | 26 | /* QT */ |
21 | #include <qtextbrowser.h> | 27 | #include <qtextbrowser.h> |
22 | #include <qmessagebox.h> | 28 | #include <qmessagebox.h> |
23 | #include <qtextstream.h> | 29 | #include <qtextstream.h> |
24 | #include <qaction.h> | 30 | #include <qaction.h> |
25 | #include <qpopupmenu.h> | 31 | #include <qpopupmenu.h> |
26 | #include <qfile.h> | 32 | #include <qfile.h> |
27 | #include <qlayout.h> | 33 | #include <qlayout.h> |
28 | #include "koprefs.h" | ||
29 | #include <klocale.h> | ||
30 | #include <kglobal.h> | ||
31 | 34 | ||
32 | //using namespace Opie::Ui; | 35 | //using namespace Opie::Ui; |
33 | //using namespace Opie::Core; | 36 | //using namespace Opie::Core; |
34 | 37 | ||
35 | AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 38 | AttachItem::AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
36 | const QString&fsize,int num,const QValueList<int>&path) | 39 | const QString&fsize,int num,const QValueList<int>&path) |
37 | : QListViewItem(parent,after),_partNum(num) | 40 | : QListViewItem(parent,after),_partNum(num) |
38 | { | 41 | { |
39 | _path=path; | 42 | _path=path; |
40 | setText(0, mime); | 43 | setText(0, mime); |
41 | setText(1, desc); | 44 | setText(1, desc); |
42 | setText(2, file); | 45 | setText(2, file); |
@@ -504,25 +507,25 @@ void ViewMail::slotForward() | |||
504 | 507 | ||
505 | void ViewMail::slotDeleteMail( ) | 508 | void ViewMail::slotDeleteMail( ) |
506 | { | 509 | { |
507 | if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) | 510 | if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + m_mail[0] + " - " + m_mail[1] ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) |
508 | { | 511 | { |
509 | m_recMail->Wrapper()->deleteMail( m_recMail ); | 512 | m_recMail->Wrapper()->deleteMail( m_recMail ); |
510 | hide(); | 513 | hide(); |
511 | deleted = true; | 514 | deleted = true; |
512 | } | 515 | } |
513 | } | 516 | } |
514 | 517 | ||
515 | MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, WFlags f) | 518 | MailImageDlg::MailImageDlg(const QString&fname,QWidget *parent, const char *name, bool modal, WFlags f) |
516 | : KDialog(parent,name,modal) | 519 | : QDialog(parent,name,modal) |
517 | { | 520 | { |
518 | QVBoxLayout*dlglayout = new QVBoxLayout(this); | 521 | QVBoxLayout*dlglayout = new QVBoxLayout(this); |
519 | dlglayout->setSpacing(2); | 522 | dlglayout->setSpacing(2); |
520 | dlglayout->setMargin(1); | 523 | dlglayout->setMargin(1); |
521 | //m_imageview = new Opie::MM::OImageScrollView(this); | 524 | //m_imageview = new Opie::MM::OImageScrollView(this); |
522 | //dlglayout->addWidget(m_imageview); | 525 | //dlglayout->addWidget(m_imageview); |
523 | } | 526 | } |
524 | 527 | ||
525 | MailImageDlg::~MailImageDlg() | 528 | MailImageDlg::~MailImageDlg() |
526 | { | 529 | { |
527 | } | 530 | } |
528 | 531 | ||
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h index c42577e..194ac8e 100644 --- a/kmicromail/viewmail.h +++ b/kmicromail/viewmail.h | |||
@@ -1,19 +1,19 @@ | |||
1 | #ifndef VIEWMAIL_H | 1 | #ifndef VIEWMAIL_H |
2 | #define VIEWMAIL_H | 2 | #define VIEWMAIL_H |
3 | 3 | ||
4 | #include "viewmailbase.h" | 4 | #include "viewmailbase.h" |
5 | #include <libmailwrapper/mailtypes.h> | 5 | #include <libmailwrapper/mailtypes.h> |
6 | 6 | ||
7 | #include <kdialog.h> | 7 | #include <qdialog.h> |
8 | 8 | ||
9 | #include <qlistview.h> | 9 | #include <qlistview.h> |
10 | #include <qmap.h> | 10 | #include <qmap.h> |
11 | #include <qstringlist.h> | 11 | #include <qstringlist.h> |
12 | #include <qvaluelist.h> | 12 | #include <qvaluelist.h> |
13 | 13 | ||
14 | //namespace Opie { namespace MM { class OImageScrollView; } } | 14 | //namespace Opie { namespace MM { class OImageScrollView; } } |
15 | 15 | ||
16 | class AttachItem : public QListViewItem | 16 | class AttachItem : public QListViewItem |
17 | { | 17 | { |
18 | public: | 18 | public: |
19 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 19 | AttachItem(QListView * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
@@ -63,24 +63,24 @@ private: | |||
63 | QString m_mailHtml; | 63 | QString m_mailHtml; |
64 | bool m_gotBody; | 64 | bool m_gotBody; |
65 | RecBodyP m_body; | 65 | RecBodyP m_body; |
66 | RecMailP m_recMail; | 66 | RecMailP m_recMail; |
67 | bool m_showHtml; | 67 | bool m_showHtml; |
68 | 68 | ||
69 | // 0 from 1 subject 2 bodytext 3 date | 69 | // 0 from 1 subject 2 bodytext 3 date |
70 | QMap <int,QString> m_mail; | 70 | QMap <int,QString> m_mail; |
71 | // 0 to 1 cc 2 bcc | 71 | // 0 to 1 cc 2 bcc |
72 | QMap <int,QStringList> m_mail2; | 72 | QMap <int,QStringList> m_mail2; |
73 | }; | 73 | }; |
74 | 74 | ||
75 | class MailImageDlg:public KDialog | 75 | class MailImageDlg:public QDialog |
76 | { | 76 | { |
77 | Q_OBJECT | 77 | Q_OBJECT |
78 | public: | 78 | public: |
79 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); | 79 | MailImageDlg(const QString&,QWidget *parent = 0, const char *name = 0, bool modal = true, WFlags f = 0); |
80 | ~MailImageDlg(); | 80 | ~MailImageDlg(); |
81 | void setName(const QString&); | 81 | void setName(const QString&); |
82 | protected: | 82 | protected: |
83 | //Opie::MM::OImageScrollView*m_imageview; | 83 | //Opie::MM::OImageScrollView*m_imageview; |
84 | }; | 84 | }; |
85 | 85 | ||
86 | #endif | 86 | #endif |
diff --git a/microkde/kapplication.h b/microkde/kapplication.h index 41546a0..497ec2f 100644 --- a/microkde/kapplication.h +++ b/microkde/kapplication.h | |||
@@ -1,17 +1,20 @@ | |||
1 | #ifndef MINIKDE_KAPPLICATION_H | 1 | #ifndef MINIKDE_KAPPLICATION_H |
2 | #define MINIKDE_KAPPLICATION_H | 2 | #define MINIKDE_KAPPLICATION_H |
3 | 3 | ||
4 | #include "qstring.h" | 4 | #include "qstring.h" |
5 | #include <qdialog.h> | 5 | #include <qdialog.h> |
6 | #ifdef QDialog | ||
7 | #undef QDialog | ||
8 | #endif | ||
6 | 9 | ||
7 | class KApplication | 10 | class KApplication |
8 | { | 11 | { |
9 | public: | 12 | public: |
10 | static int random(); | 13 | static int random(); |
11 | 14 | ||
12 | //US | 15 | //US |
13 | /** | 16 | /** |
14 | * Generates a random string. It operates in the range [A-Za-z0-9] | 17 | * Generates a random string. It operates in the range [A-Za-z0-9] |
15 | * @param length Generate a string of this length. | 18 | * @param length Generate a string of this length. |
16 | * @return the random string | 19 | * @return the random string |
17 | */ | 20 | */ |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 6e75442..c58e184 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -49,26 +49,24 @@ KDGanttMinimizeSplitter.h \ | |||
49 | knotifyclient.h \ | 49 | knotifyclient.h \ |
50 | kprinter.h \ | 50 | kprinter.h \ |
51 | kprocess.h \ | 51 | kprocess.h \ |
52 | krestrictedline.h \ | 52 | krestrictedline.h \ |
53 | krun.h \ | 53 | krun.h \ |
54 | ksimpleconfig.h \ | 54 | ksimpleconfig.h \ |
55 | kstaticdeleter.h \ | 55 | kstaticdeleter.h \ |
56 | ksystemtray.h \ | 56 | ksystemtray.h \ |
57 | ktempfile.h \ | 57 | ktempfile.h \ |
58 | ktextedit.h \ | 58 | ktextedit.h \ |
59 | kunload.h \ | 59 | kunload.h \ |
60 | kurl.h \ | 60 | kurl.h \ |
61 | oprocctrl.h \ | ||
62 | oprocess.h \ | ||
63 | osmartpointer.h \ | 61 | osmartpointer.h \ |
64 | kdeui/kguiitem.h \ | 62 | kdeui/kguiitem.h \ |
65 | kdeui/kcmodule.h \ | 63 | kdeui/kcmodule.h \ |
66 | kdeui/kbuttonbox.h \ | 64 | kdeui/kbuttonbox.h \ |
67 | kdeui/klistbox.h \ | 65 | kdeui/klistbox.h \ |
68 | kdeui/klistview.h \ | 66 | kdeui/klistview.h \ |
69 | kdeui/kjanuswidget.h \ | 67 | kdeui/kjanuswidget.h \ |
70 | kdeui/kseparator.h \ | 68 | kdeui/kseparator.h \ |
71 | kdeui/knuminput.h \ | 69 | kdeui/knuminput.h \ |
72 | kdeui/knumvalidator.h \ | 70 | kdeui/knumvalidator.h \ |
73 | kdeui/ksqueezedtextlabel.h \ | 71 | kdeui/ksqueezedtextlabel.h \ |
74 | kio/job.h \ | 72 | kio/job.h \ |
@@ -165,15 +163,13 @@ KDGanttMinimizeSplitter.cpp \ | |||
165 | kutils/kcmultidialog.cpp \ | 163 | kutils/kcmultidialog.cpp \ |
166 | kdeui/kaction.cpp \ | 164 | kdeui/kaction.cpp \ |
167 | kdeui/kactionclasses.cpp \ | 165 | kdeui/kactionclasses.cpp \ |
168 | kdeui/kactioncollection.cpp \ | 166 | kdeui/kactioncollection.cpp \ |
169 | kdeui/kmainwindow.cpp \ | 167 | kdeui/kmainwindow.cpp \ |
170 | kdeui/ktoolbar.cpp \ | 168 | kdeui/ktoolbar.cpp \ |
171 | kdeui/ktoolbarbutton.cpp \ | 169 | kdeui/ktoolbarbutton.cpp \ |
172 | kdeui/ktoolbarhandler.cpp \ | 170 | kdeui/ktoolbarhandler.cpp \ |
173 | kdeui/kstdaction.cpp \ | 171 | kdeui/kstdaction.cpp \ |
174 | kdeui/kxmlguiclient.cpp \ | 172 | kdeui/kxmlguiclient.cpp \ |
175 | kdecore/kprefs.cpp \ | 173 | kdecore/kprefs.cpp \ |
176 | kdecore/klibloader.cpp \ | 174 | kdecore/klibloader.cpp \ |
177 | kidmanager.cpp \ | 175 | kidmanager.cpp |
178 | oprocctrl.cpp \ | ||
179 | oprocess.cpp | ||