author | zautrix <zautrix> | 2004-10-30 15:56:24 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-30 15:56:24 (UTC) |
commit | c8662dc632987a317386b923e24acb9507859528 (patch) (unidiff) | |
tree | 97ca9b266d075c3c0f2689769829c453f8118cd8 | |
parent | 632b43950f1ac2980c281eb8901d797deb0ba971 (diff) | |
download | kdepimpi-c8662dc632987a317386b923e24acb9507859528.zip kdepimpi-c8662dc632987a317386b923e24acb9507859528.tar.gz kdepimpi-c8662dc632987a317386b923e24acb9507859528.tar.bz2 |
ompi desktop compile hack
-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,86 +1,92 @@ | |||
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> |
15 | #include <qpe/global.h> | 31 | #include <qpe/global.h> |
16 | //#include <qpe/contact.h> | 32 | //#include <qpe/contact.h> |
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) { |
51 | KConfig config( locateLocal("config", "kabcrc") ); | 57 | KConfig config( locateLocal("config", "kabcrc") ); |
52 | config.setGroup( "General" ); | 58 | config.setGroup( "General" ); |
53 | QString whoami_uid = config.readEntry( "WhoAmI" ); | 59 | QString whoami_uid = config.readEntry( "WhoAmI" ); |
54 | 60 | ||
55 | if ( whoami_uid.isEmpty() ) { | 61 | if ( whoami_uid.isEmpty() ) { |
56 | QMessageBox::information( 0, i18n( "Hint" ), | 62 | QMessageBox::information( 0, i18n( "Hint" ), |
57 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 63 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
58 | i18n( "Ok" ) ); | 64 | i18n( "Ok" ) ); |
59 | 65 | ||
60 | 66 | ||
61 | fillSettings(); | 67 | fillSettings(); |
62 | } else | 68 | } else |
63 | ExternalAppHandler::instance()->requestDetailsFromKAPI("", "sendbacklist", whoami_uid); | 69 | ExternalAppHandler::instance()->requestDetailsFromKAPI("", "sendbacklist", whoami_uid); |
64 | 70 | ||
65 | 71 | ||
66 | #ifdef DESKTOP_VERSION | 72 | #ifdef DESKTOP_VERSION |
67 | KABC::Addressee con = KABC::StdAddressBook::self()->whoAmI( ); | 73 | KABC::Addressee con = KABC::StdAddressBook::self()->whoAmI( ); |
68 | QStringList mails = con.emails(); | 74 | QStringList mails = con.emails(); |
69 | QString defmail = con.preferredEmail(); | 75 | QString defmail = con.preferredEmail(); |
70 | if ( mails.count() == 0) | 76 | if ( mails.count() == 0) |
71 | QMessageBox::information( 0, i18n( "Hint" ), | 77 | QMessageBox::information( 0, i18n( "Hint" ), |
72 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), | 78 | i18n( "Please apply\n\"Set Who Am I\"\nin KA/Pi to get the from\nfield automatically filled out!\n" ), |
73 | i18n( "Ok" ) ); | 79 | i18n( "Ok" ) ); |
74 | if (defmail.length()!=0) { | 80 | if (defmail.length()!=0) { |
75 | fromBox->insertItem(defmail); | 81 | fromBox->insertItem(defmail); |
76 | } | 82 | } |
77 | QStringList::ConstIterator sit = mails.begin(); | 83 | QStringList::ConstIterator sit = mails.begin(); |
78 | for (;sit!=mails.end();++sit) { | 84 | for (;sit!=mails.end();++sit) { |
79 | if ( (*sit)==defmail) | 85 | if ( (*sit)==defmail) |
80 | continue; | 86 | continue; |
81 | fromBox->insertItem((*sit)); | 87 | fromBox->insertItem((*sit)); |
82 | } | 88 | } |
83 | senderNameEdit->setText(con.formattedName()); | 89 | senderNameEdit->setText(con.formattedName()); |
84 | #endif | 90 | #endif |
85 | 91 | ||
86 | } else { | 92 | } else { |
diff --git a/kmicromail/defines.h b/kmicromail/defines.h index f2d7265..c890def 100644 --- a/kmicromail/defines.h +++ b/kmicromail/defines.h | |||
@@ -1,36 +1,36 @@ | |||
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" |
19 | #define SMTP_SSL_PORT "465" | 19 | #define SMTP_SSL_PORT "465" |
20 | #define POP3_PORT "110" | 20 | #define POP3_PORT "110" |
21 | #define POP3_SSL_PORT "995" | 21 | #define POP3_SSL_PORT "995" |
22 | #define NNTP_PORT "119" | 22 | #define NNTP_PORT "119" |
23 | #define NNTP_SSL_PORT "563" | 23 | #define NNTP_SSL_PORT "563" |
24 | 24 | ||
25 | /* used for decoding imapfoldername */ | 25 | /* used for decoding imapfoldername */ |
26 | #define UNDEFINED 64 | 26 | #define UNDEFINED 64 |
27 | #define MAXLINE 76 | 27 | #define MAXLINE 76 |
28 | #define UTF16MASK 0x03FFUL | 28 | #define UTF16MASK 0x03FFUL |
29 | #define UTF16SHIFT 10 | 29 | #define UTF16SHIFT 10 |
30 | #define UTF16BASE 0x10000UL | 30 | #define UTF16BASE 0x10000UL |
31 | #define UTF16HIGHSTART 0xD800UL | 31 | #define UTF16HIGHSTART 0xD800UL |
32 | #define UTF16HIGHEND 0xDBFFUL | 32 | #define UTF16HIGHEND 0xDBFFUL |
33 | #define UTF16LOSTART 0xDC00UL | 33 | #define UTF16LOSTART 0xDC00UL |
34 | #define UTF16LOEND 0xDFFFUL | 34 | #define UTF16LOEND 0xDFFFUL |
35 | 35 | ||
36 | #endif | 36 | #endif |
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp index c931e45..0d30097 100644 --- a/kmicromail/editaccounts.cpp +++ b/kmicromail/editaccounts.cpp | |||
@@ -1,52 +1,53 @@ | |||
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> |
17 | #include <qtabwidget.h> | 18 | #include <qtabwidget.h> |
18 | #include <qlistview.h> | 19 | #include <qlistview.h> |
19 | #include <qspinbox.h> | 20 | #include <qspinbox.h> |
20 | #include <klocale.h> | 21 | #include <klocale.h> |
21 | 22 | ||
22 | #include <libmailwrapper/nntpwrapper.h> | 23 | #include <libmailwrapper/nntpwrapper.h> |
23 | 24 | ||
24 | using namespace Opie::Core; | 25 | using namespace Opie::Core; |
25 | 26 | ||
26 | AccountListItem::AccountListItem( QListView *parent, Account *a) | 27 | AccountListItem::AccountListItem( QListView *parent, Account *a) |
27 | : QListViewItem( parent ) | 28 | : QListViewItem( parent ) |
28 | { | 29 | { |
29 | account = a; | 30 | account = a; |
30 | setText( 0, account->getAccountName() ); | 31 | setText( 0, account->getAccountName() ); |
31 | QString ttext = ""; | 32 | QString ttext = ""; |
32 | switch (account->getType()) { | 33 | switch (account->getType()) { |
33 | case MAILLIB::A_NNTP: | 34 | case MAILLIB::A_NNTP: |
34 | ttext="NNTP"; | 35 | ttext="NNTP"; |
35 | break; | 36 | break; |
36 | case MAILLIB::A_POP3: | 37 | case MAILLIB::A_POP3: |
37 | ttext = "POP3"; | 38 | ttext = "POP3"; |
38 | break; | 39 | break; |
39 | case MAILLIB::A_IMAP: | 40 | case MAILLIB::A_IMAP: |
40 | ttext = "IMAP"; | 41 | ttext = "IMAP"; |
41 | break; | 42 | break; |
42 | case MAILLIB::A_SMTP: | 43 | case MAILLIB::A_SMTP: |
43 | ttext = "SMTP"; | 44 | ttext = "SMTP"; |
44 | break; | 45 | break; |
45 | default: | 46 | default: |
46 | ttext = "UNKNOWN"; | 47 | ttext = "UNKNOWN"; |
47 | break; | 48 | break; |
48 | } | 49 | } |
49 | setText( 1, ttext); | 50 | setText( 1, ttext); |
50 | } | 51 | } |
51 | 52 | ||
52 | EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) | 53 | EditAccounts::EditAccounts( Settings *s, QWidget *parent, const char *name, bool modal, WFlags flags ) |
diff --git a/kmicromail/kmicromail.pro b/kmicromail/kmicromail.pro index cd5a3c1..927dc8a 100644 --- a/kmicromail/kmicromail.pro +++ b/kmicromail/kmicromail.pro | |||
@@ -1,77 +1,78 @@ | |||
1 | CONFIG += qt warn_on | 1 | CONFIG += qt warn_on |
2 | TEMPLATE= app | 2 | TEMPLATE= app |
3 | HEADERS = defines.h \ | 3 | HEADERS = defines.h \ |
4 | editaccounts.h \ | 4 | editaccounts.h \ |
5 | composemail.h \ | 5 | composemail.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 \ |
30 | viewmail.cpp \ | 31 | viewmail.cpp \ |
31 | viewmailbase.cpp \ | 32 | viewmailbase.cpp \ |
32 | mailistviewitem.cpp \ | 33 | mailistviewitem.cpp \ |
33 | settingsdialog.cpp \ | 34 | settingsdialog.cpp \ |
34 | statuswidget.cpp \ | 35 | statuswidget.cpp \ |
35 | newmaildir.cpp \ | 36 | newmaildir.cpp \ |
36 | selectstore.cpp \ | 37 | selectstore.cpp \ |
37 | selectsmtp.cpp \ | 38 | selectsmtp.cpp \ |
38 | nntpgroups.cpp \ | 39 | nntpgroups.cpp \ |
39 | koprefs.cpp\ | 40 | koprefs.cpp\ |
40 | koprefsdialog.cpp\ | 41 | koprefsdialog.cpp\ |
41 | nntpgroupsdlg.cpp | 42 | nntpgroupsdlg.cpp |
42 | 43 | ||
43 | INTERFACES = editaccountsui.ui \ | 44 | INTERFACES = editaccountsui.ui \ |
44 | selectmailtypeui.ui \ | 45 | selectmailtypeui.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_ |
70 | LIBS += mfc71u.lib | 71 | LIBS += mfc71u.lib |
71 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 72 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
72 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 73 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
73 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 74 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
74 | OBJECTS_DIR = obj/win | 75 | OBJECTS_DIR = obj/win |
75 | MOC_DIR = moc/win | 76 | MOC_DIR = moc/win |
76 | } | 77 | } |
77 | 78 | ||
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index 598d12f..c878fc9 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp | |||
@@ -1,71 +1,71 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
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> |
36 | #include <qregexp.h> | 36 | #include <qregexp.h> |
37 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
38 | #include <qdatetime.h> | 38 | #include <qdatetime.h> |
39 | #include <qcheckbox.h> | 39 | #include <qcheckbox.h> |
40 | #include <qradiobutton.h> | 40 | #include <qradiobutton.h> |
41 | #include <qpushbutton.h> | 41 | #include <qpushbutton.h> |
42 | #include <qstrlist.h> | 42 | #include <qstrlist.h> |
43 | #include <qapplication.h> | 43 | #include <qapplication.h> |
44 | 44 | ||
45 | #include <kcolorbutton.h> | 45 | #include <kcolorbutton.h> |
46 | #include <kdebug.h> | 46 | #include <kdebug.h> |
47 | #include <klocale.h> | 47 | #include <klocale.h> |
48 | #include <kglobal.h> | 48 | #include <kglobal.h> |
49 | #include <kfontdialog.h> | 49 | #include <kfontdialog.h> |
50 | #include <kfiledialog.h> | 50 | #include <kfiledialog.h> |
51 | #include <kmessagebox.h> | 51 | #include <kmessagebox.h> |
52 | #include <kcolordialog.h> | 52 | #include <kcolordialog.h> |
53 | #include <kiconloader.h> | 53 | #include <kiconloader.h> |
54 | #include <kemailsettings.h> | 54 | #include <kemailsettings.h> |
55 | #include <kstandarddirs.h> | 55 | #include <kstandarddirs.h> |
56 | 56 | ||
57 | #include <klineedit.h> | 57 | #include <klineedit.h> |
58 | 58 | ||
59 | 59 | ||
60 | #include "koprefs.h" | 60 | #include "koprefs.h" |
61 | 61 | ||
62 | #include "koprefsdialog.h" | 62 | #include "koprefsdialog.h" |
63 | //#include <kprefswidget.h> | 63 | //#include <kprefswidget.h> |
64 | 64 | ||
65 | 65 | ||
66 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | 66 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : |
67 | KPrefsDialog(KOPrefs::instance(),parent,name,true) | 67 | KPrefsDialog(KOPrefs::instance(),parent,name,true) |
68 | { | 68 | { |
69 | 69 | ||
70 | setCaption( i18n("Settings - some need a restart (nr)")); | 70 | setCaption( i18n("Settings - some need a restart (nr)")); |
71 | setupGlobalTab(); | 71 | setupGlobalTab(); |
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 | |||
@@ -1,64 +1,65 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | 3 | ||
4 | HEADERS = mailwrapper.h \ | 4 | HEADERS = mailwrapper.h \ |
5 | imapwrapper.h \ | 5 | imapwrapper.h \ |
6 | mailtypes.h \ | 6 | mailtypes.h \ |
7 | pop3wrapper.h \ | 7 | pop3wrapper.h \ |
8 | abstractmail.h \ | 8 | abstractmail.h \ |
9 | smtpwrapper.h \ | 9 | smtpwrapper.h \ |
10 | genericwrapper.h \ | 10 | genericwrapper.h \ |
11 | mboxwrapper.h \ | 11 | mboxwrapper.h \ |
12 | settings.h \ | 12 | settings.h \ |
13 | logindialog.h \ | 13 | logindialog.h \ |
14 | sendmailprogress.h \ | 14 | sendmailprogress.h \ |
15 | statusmail.h \ | 15 | statusmail.h \ |
16 | mhwrapper.h \ | 16 | mhwrapper.h \ |
17 | nntpwrapper.h \ | 17 | nntpwrapper.h \ |
18 | generatemail.h \ | 18 | generatemail.h \ |
19 | storemail.h \ | 19 | storemail.h \ |
20 | ../qpe/global.h | 20 | ../qpe/global.h |
21 | 21 | ||
22 | SOURCES = imapwrapper.cpp \ | 22 | SOURCES = imapwrapper.cpp \ |
23 | mailwrapper.cpp \ | 23 | mailwrapper.cpp \ |
24 | mailtypes.cpp \ | 24 | mailtypes.cpp \ |
25 | pop3wrapper.cpp \ | 25 | pop3wrapper.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 | } |
56 | win32: { | 57 | win32: { |
57 | DEFINES += _WIN32_ | 58 | DEFINES += _WIN32_ |
58 | LIBS += mfc71u.lib | 59 | LIBS += mfc71u.lib |
59 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 60 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
60 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 61 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
61 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 62 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
62 | OBJECTS_DIR = obj/win | 63 | OBJECTS_DIR = obj/win |
63 | MOC_DIR = moc/win | 64 | MOC_DIR = moc/win |
64 | } | 65 | } |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index b19dbbe..7655385 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -1,56 +1,56 @@ | |||
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 | ||
21 | 21 | ||
22 | #include <kabc/stdaddressbook.h> | 22 | #include <kabc/stdaddressbook.h> |
23 | 23 | ||
24 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | 24 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) |
25 | : QMainWindow( parent, name ) //, flags ) | 25 | : QMainWindow( parent, name ) //, flags ) |
26 | { | 26 | { |
27 | setCaption( i18n( "KOpieMail/Pi" ) ); | 27 | setCaption( i18n( "KOpieMail/Pi" ) ); |
28 | setToolBarsMovable( false ); | 28 | setToolBarsMovable( false ); |
29 | //KABC::StdAddressBook::self(); | 29 | //KABC::StdAddressBook::self(); |
30 | toolBar = new QToolBar( this ); | 30 | toolBar = new QToolBar( this ); |
31 | menuBar = new QPEMenuBar( toolBar ); | 31 | menuBar = new QPEMenuBar( toolBar ); |
32 | mailMenu = new QPopupMenu( menuBar ); | 32 | mailMenu = new QPopupMenu( menuBar ); |
33 | menuBar->insertItem( i18n( "Mail" ), mailMenu ); | 33 | menuBar->insertItem( i18n( "Mail" ), mailMenu ); |
34 | settingsMenu = new QPopupMenu( menuBar ); | 34 | settingsMenu = new QPopupMenu( menuBar ); |
35 | menuBar->insertItem( i18n( "Settings" ), settingsMenu ); | 35 | menuBar->insertItem( i18n( "Settings" ), settingsMenu ); |
36 | 36 | ||
37 | addToolBar( toolBar ); | 37 | addToolBar( toolBar ); |
38 | toolBar->setHorizontalStretchable( true ); | 38 | toolBar->setHorizontalStretchable( true ); |
39 | QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"), | 39 | QAction* getMail = new QAction( i18n( "Get all new mails" ), SmallIcon("enter"), |
40 | 0, 0, this ); | 40 | 0, 0, this ); |
41 | connect(getMail, SIGNAL( activated() ), | 41 | connect(getMail, SIGNAL( activated() ), |
42 | SLOT( slotGetAllMail() ) ); | 42 | SLOT( slotGetAllMail() ) ); |
43 | getMail->addTo( mailMenu ); | 43 | getMail->addTo( mailMenu ); |
44 | 44 | ||
45 | getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"), | 45 | getMail = new QAction( i18n( "Get new messages" ), SmallIcon("add"), |
46 | 0, 0, this ); | 46 | 0, 0, this ); |
47 | getMail->addTo( toolBar ); | 47 | getMail->addTo( toolBar ); |
48 | getMail->addTo( mailMenu ); | 48 | getMail->addTo( mailMenu ); |
49 | connect(getMail, SIGNAL( activated() ), | 49 | connect(getMail, SIGNAL( activated() ), |
50 | SLOT( slotGetMail() ) ); | 50 | SLOT( slotGetMail() ) ); |
51 | 51 | ||
52 | composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"), | 52 | composeMail = new QAction( i18n( "Compose new mail" ), SmallIcon("composemail"), |
53 | 0, 0, this ); | 53 | 0, 0, this ); |
54 | composeMail->addTo( toolBar ); | 54 | composeMail->addTo( toolBar ); |
55 | composeMail->addTo( mailMenu ); | 55 | composeMail->addTo( mailMenu ); |
56 | 56 | ||
diff --git a/kmicromail/nntpgroupsdlg.cpp b/kmicromail/nntpgroupsdlg.cpp index a461bdf..f564b10 100644 --- a/kmicromail/nntpgroupsdlg.cpp +++ b/kmicromail/nntpgroupsdlg.cpp | |||
@@ -1,30 +1,30 @@ | |||
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 | { |
23 | } | 23 | } |
24 | 24 | ||
25 | void NNTPGroupsDlg::accept() | 25 | void NNTPGroupsDlg::accept() |
26 | { | 26 | { |
27 | groupsWidget->storeValues(); | 27 | groupsWidget->storeValues(); |
28 | m_Account->save(); | 28 | m_Account->save(); |
29 | QDialog::accept(); | 29 | QDialog::accept(); |
30 | } | 30 | } |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 153c7c0..e088b9e 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,69 +1,72 @@ | |||
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> |
34 | 37 | ||
35 | /* QT */ | 38 | /* QT */ |
36 | 39 | ||
37 | //using namespace Opie::Core; | 40 | //using namespace Opie::Core; |
38 | 41 | ||
39 | OpieMail::OpieMail( QWidget *parent, const char *name ) | 42 | OpieMail::OpieMail( QWidget *parent, const char *name ) |
40 | : MainWindow( parent, name) //, WStyle_ContextHelp ) | 43 | : MainWindow( parent, name) //, WStyle_ContextHelp ) |
41 | { | 44 | { |
42 | settings = new Settings(); | 45 | settings = new Settings(); |
43 | 46 | ||
44 | folderView->populate( settings->getAccounts() ); | 47 | folderView->populate( settings->getAccounts() ); |
45 | 48 | ||
46 | } | 49 | } |
47 | 50 | ||
48 | OpieMail::~OpieMail() | 51 | OpieMail::~OpieMail() |
49 | { | 52 | { |
50 | if (settings) delete settings; | 53 | if (settings) delete settings; |
51 | } | 54 | } |
52 | 55 | ||
53 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 56 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
54 | { | 57 | { |
55 | 58 | ||
56 | } | 59 | } |
57 | #include <stdlib.h> | 60 | #include <stdlib.h> |
58 | void OpieMail::message(const QCString &msg, const QByteArray &data) | 61 | void OpieMail::message(const QCString &msg, const QByteArray &data) |
59 | { | 62 | { |
60 | // copied from old mail2 | 63 | // copied from old mail2 |
61 | static int ii = 0; | 64 | static int ii = 0; |
62 | //qDebug("QCOP CALL ############################# %d ", ii); | 65 | //qDebug("QCOP CALL ############################# %d ", ii); |
63 | //QString mess ( msg ); | 66 | //QString mess ( msg ); |
64 | //qDebug("Message = %s ",mess.latin1()); | 67 | //qDebug("Message = %s ",mess.latin1()); |
65 | ++ii; | 68 | ++ii; |
66 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); | 69 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); |
67 | 70 | ||
68 | mPendingEmail = QString::null; | 71 | mPendingEmail = QString::null; |
69 | mPendingName = QString::null; | 72 | mPendingName = QString::null; |
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,78 +1,81 @@ | |||
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); |
43 | setText(3, fsize); | 46 | setText(3, fsize); |
44 | } | 47 | } |
45 | 48 | ||
46 | AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 49 | AttachItem::AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
47 | const QString&fsize,int num,const QValueList<int>&path) | 50 | const QString&fsize,int num,const QValueList<int>&path) |
48 | : QListViewItem(parent,after),_partNum(num) | 51 | : QListViewItem(parent,after),_partNum(num) |
49 | { | 52 | { |
50 | _path=path; | 53 | _path=path; |
51 | setText(0, mime); | 54 | setText(0, mime); |
52 | setText(1, desc); | 55 | setText(1, desc); |
53 | setText(2, file); | 56 | setText(2, file); |
54 | setText(3, fsize); | 57 | setText(3, fsize); |
55 | } | 58 | } |
56 | 59 | ||
57 | bool AttachItem::isParentof(const QValueList<int>&path) | 60 | bool AttachItem::isParentof(const QValueList<int>&path) |
58 | { | 61 | { |
59 | /* if not set, then no parent */ | 62 | /* if not set, then no parent */ |
60 | if (path.count()==0||_path.count()==0) return false; | 63 | if (path.count()==0||_path.count()==0) return false; |
61 | /* the parent must have one digit less then a child */ | 64 | /* the parent must have one digit less then a child */ |
62 | if (path.count()!=_path.count()+1) return false; | 65 | if (path.count()!=_path.count()+1) return false; |
63 | for (unsigned int i=0; i < _path.count();++i) | 66 | for (unsigned int i=0; i < _path.count();++i) |
64 | { | 67 | { |
65 | if (_path[i]!=path[i]) return false; | 68 | if (_path[i]!=path[i]) return false; |
66 | } | 69 | } |
67 | return true; | 70 | return true; |
68 | } | 71 | } |
69 | 72 | ||
70 | AttachItem* ViewMail::searchParent(const QValueList<int>&path) | 73 | AttachItem* ViewMail::searchParent(const QValueList<int>&path) |
71 | { | 74 | { |
72 | QListViewItemIterator it( attachments ); | 75 | QListViewItemIterator it( attachments ); |
73 | for ( ; it.current(); ++it ) | 76 | for ( ; it.current(); ++it ) |
74 | { | 77 | { |
75 | AttachItem*ati = (AttachItem*)it.current(); | 78 | AttachItem*ati = (AttachItem*)it.current(); |
76 | if (ati->isParentof(path)) return ati; | 79 | if (ati->isParentof(path)) return ati; |
77 | } | 80 | } |
78 | return 0; | 81 | return 0; |
@@ -468,66 +471,66 @@ void ViewMail::slotReply() | |||
468 | } | 471 | } |
469 | 472 | ||
470 | void ViewMail::slotForward() | 473 | void ViewMail::slotForward() |
471 | { | 474 | { |
472 | if (!m_gotBody) | 475 | if (!m_gotBody) |
473 | { | 476 | { |
474 | QMessageBox::information(this, i18n("Error"), i18n("<p>The mail body is not yet downloaded, so you cannot forward yet."), i18n("Ok")); | 477 | QMessageBox::information(this, i18n("Error"), i18n("<p>The mail body is not yet downloaded, so you cannot forward yet."), i18n("Ok")); |
475 | return; | 478 | return; |
476 | } | 479 | } |
477 | 480 | ||
478 | QString ftext; | 481 | QString ftext; |
479 | ftext += QString("\n----- Forwarded message from %1 -----\n\n") | 482 | ftext += QString("\n----- Forwarded message from %1 -----\n\n") |
480 | .arg( m_mail[0] ); | 483 | .arg( m_mail[0] ); |
481 | if (!m_mail[3].isNull()) | 484 | if (!m_mail[3].isNull()) |
482 | ftext += QString("Date: %1\n") | 485 | ftext += QString("Date: %1\n") |
483 | .arg( m_mail[3] ); | 486 | .arg( m_mail[3] ); |
484 | if (!m_mail[0].isNull()) | 487 | if (!m_mail[0].isNull()) |
485 | ftext += QString("From: %1\n") | 488 | ftext += QString("From: %1\n") |
486 | .arg( m_mail[0] ); | 489 | .arg( m_mail[0] ); |
487 | if (!m_mail[1].isNull()) | 490 | if (!m_mail[1].isNull()) |
488 | ftext += QString("Subject: %1\n") | 491 | ftext += QString("Subject: %1\n") |
489 | .arg( m_mail[1] ); | 492 | .arg( m_mail[1] ); |
490 | 493 | ||
491 | ftext += QString("\n%1\n") | 494 | ftext += QString("\n%1\n") |
492 | .arg( m_mail[2]); | 495 | .arg( m_mail[2]); |
493 | 496 | ||
494 | ftext += QString("----- End forwarded message -----\n"); | 497 | ftext += QString("----- End forwarded message -----\n"); |
495 | 498 | ||
496 | Settings *settings = new Settings(); | 499 | Settings *settings = new Settings(); |
497 | ComposeMail composer( settings ,this, 0, true); | 500 | ComposeMail composer( settings ,this, 0, true); |
498 | composer.setSubject( "Fwd: " + m_mail[1] ); | 501 | composer.setSubject( "Fwd: " + m_mail[1] ); |
499 | composer.setMessage( ftext ); | 502 | composer.setMessage( ftext ); |
500 | if ( QDialog::Accepted == KApplication::execDialog( &composer )) | 503 | if ( QDialog::Accepted == KApplication::execDialog( &composer )) |
501 | { | 504 | { |
502 | } | 505 | } |
503 | } | 506 | } |
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 | ||
529 | void MailImageDlg::setName(const QString&fname) | 532 | void MailImageDlg::setName(const QString&fname) |
530 | { | 533 | { |
531 | qDebug("viewmail.cpp: MailImageDlg::setName Pending"); | 534 | qDebug("viewmail.cpp: MailImageDlg::setName Pending"); |
532 | // m_imageview->setImage(fname); | 535 | // m_imageview->setImage(fname); |
533 | } | 536 | } |
diff --git a/kmicromail/viewmail.h b/kmicromail/viewmail.h index c42577e..194ac8e 100644 --- a/kmicromail/viewmail.h +++ b/kmicromail/viewmail.h | |||
@@ -1,86 +1,86 @@ | |||
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, |
20 | const QString&fsize,int num,const QValueList<int>&path); | 20 | const QString&fsize,int num,const QValueList<int>&path); |
21 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, | 21 | AttachItem(QListViewItem * parent,QListViewItem *after, const QString&mime,const QString&desc,const QString&file, |
22 | const QString&fsize,int num,const QValueList<int>&path); | 22 | const QString&fsize,int num,const QValueList<int>&path); |
23 | int Partnumber() { return _partNum; } | 23 | int Partnumber() { return _partNum; } |
24 | bool isParentof(const QValueList<int>&path); | 24 | bool isParentof(const QValueList<int>&path); |
25 | 25 | ||
26 | private: | 26 | private: |
27 | int _partNum; | 27 | int _partNum; |
28 | /* needed for a better display of attachments */ | 28 | /* needed for a better display of attachments */ |
29 | QValueList<int> _path; | 29 | QValueList<int> _path; |
30 | }; | 30 | }; |
31 | 31 | ||
32 | class ViewMail : public ViewMailBase | 32 | class ViewMail : public ViewMailBase |
33 | { | 33 | { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | 35 | ||
36 | public: | 36 | public: |
37 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); | 37 | ViewMail( QWidget *parent = 0, const char *name = 0, WFlags fl = 0); |
38 | ~ViewMail(); | 38 | ~ViewMail(); |
39 | 39 | ||
40 | void hide(); | 40 | void hide(); |
41 | void exec(); | 41 | void exec(); |
42 | void setMail(const RecMailP&mail ); | 42 | void setMail(const RecMailP&mail ); |
43 | void setBody(const RecBodyP&body); | 43 | void setBody(const RecBodyP&body); |
44 | bool deleted; | 44 | bool deleted; |
45 | 45 | ||
46 | protected: | 46 | protected: |
47 | QString deHtml(const QString &string); | 47 | QString deHtml(const QString &string); |
48 | AttachItem* searchParent(const QValueList<int>&path); | 48 | AttachItem* searchParent(const QValueList<int>&path); |
49 | AttachItem* lastChild(AttachItem*parent); | 49 | AttachItem* lastChild(AttachItem*parent); |
50 | 50 | ||
51 | protected slots: | 51 | protected slots: |
52 | void slotReply(); | 52 | void slotReply(); |
53 | void slotForward(); | 53 | void slotForward(); |
54 | void setText(); | 54 | void setText(); |
55 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); | 55 | void slotItemClicked( QListViewItem * item , const QPoint & point, int c ); |
56 | void slotDeleteMail( ); | 56 | void slotDeleteMail( ); |
57 | void slotShowHtml( bool ); | 57 | void slotShowHtml( bool ); |
58 | 58 | ||
59 | private: | 59 | private: |
60 | void readConfig(); | 60 | void readConfig(); |
61 | 61 | ||
62 | bool _inLoop; | 62 | bool _inLoop; |
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,27 +1,30 @@ | |||
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 | */ |
18 | static QString randomString(int length); | 21 | static QString randomString(int length); |
19 | static int execDialog( QDialog* ); | 22 | static int execDialog( QDialog* ); |
20 | static void showLicence(); | 23 | static void showLicence(); |
21 | static void showFile(QString caption, QString file); | 24 | static void showFile(QString caption, QString file); |
22 | static void showText(QString caption, QString text); | 25 | static void showText(QString caption, QString text); |
23 | static bool convert2latin1(QString file); | 26 | static bool convert2latin1(QString file); |
24 | }; | 27 | }; |
25 | 28 | ||
26 | 29 | ||
27 | #endif | 30 | #endif |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 6e75442..c58e184 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -13,98 +13,96 @@ OBJECTS_DIR = obj/unix | |||
13 | MOC_DIR = moc/unix | 13 | MOC_DIR = moc/unix |
14 | } | 14 | } |
15 | win32: { | 15 | win32: { |
16 | DEFINES += _WIN32_ | 16 | DEFINES += _WIN32_ |
17 | OBJECTS_DIR = obj/win | 17 | OBJECTS_DIR = obj/win |
18 | MOC_DIR = moc/win | 18 | MOC_DIR = moc/win |
19 | } | 19 | } |
20 | include( ../variables.pri ) | 20 | include( ../variables.pri ) |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | HEADERS = \ | 24 | HEADERS = \ |
25 | qlayoutengine_p.h \ | 25 | qlayoutengine_p.h \ |
26 | KDGanttMinimizeSplitter.h \ | 26 | KDGanttMinimizeSplitter.h \ |
27 | kapplication.h \ | 27 | kapplication.h \ |
28 | kaudioplayer.h \ | 28 | kaudioplayer.h \ |
29 | kcalendarsystem.h \ | 29 | kcalendarsystem.h \ |
30 | kcalendarsystemgregorian.h \ | 30 | kcalendarsystemgregorian.h \ |
31 | kcolorbutton.h \ | 31 | kcolorbutton.h \ |
32 | kcolordialog.h \ | 32 | kcolordialog.h \ |
33 | kcombobox.h \ | 33 | kcombobox.h \ |
34 | kconfig.h \ | 34 | kconfig.h \ |
35 | kdatetbl.h \ | 35 | kdatetbl.h \ |
36 | kdebug.h \ | 36 | kdebug.h \ |
37 | kdialog.h \ | 37 | kdialog.h \ |
38 | kdialogbase.h \ | 38 | kdialogbase.h \ |
39 | keditlistbox.h \ | 39 | keditlistbox.h \ |
40 | kemailsettings.h \ | 40 | kemailsettings.h \ |
41 | kfiledialog.h \ | 41 | kfiledialog.h \ |
42 | kfontdialog.h \ | 42 | kfontdialog.h \ |
43 | kglobal.h \ | 43 | kglobal.h \ |
44 | kglobalsettings.h \ | 44 | kglobalsettings.h \ |
45 | kiconloader.h \ | 45 | kiconloader.h \ |
46 | klineedit.h \ | 46 | klineedit.h \ |
47 | klineeditdlg.h \ | 47 | klineeditdlg.h \ |
48 | kmessagebox.h \ | 48 | kmessagebox.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 \ |
75 | kio/kio/kdirwatch.h \ | 73 | kio/kio/kdirwatch.h \ |
76 | kio/kio/kdirwatch_p.h \ | 74 | kio/kio/kdirwatch_p.h \ |
77 | kio/kfile/kurlrequester.h \ | 75 | kio/kfile/kurlrequester.h \ |
78 | kresources/resource.h \ | 76 | kresources/resource.h \ |
79 | kresources/factory.h \ | 77 | kresources/factory.h \ |
80 | kresources/managerimpl.h \ | 78 | kresources/managerimpl.h \ |
81 | kresources/manager.h \ | 79 | kresources/manager.h \ |
82 | kresources/selectdialog.h \ | 80 | kresources/selectdialog.h \ |
83 | kresources/configpage.h \ | 81 | kresources/configpage.h \ |
84 | kresources/configwidget.h \ | 82 | kresources/configwidget.h \ |
85 | kresources/configdialog.h \ | 83 | kresources/configdialog.h \ |
86 | kresources/kcmkresources.h \ | 84 | kresources/kcmkresources.h \ |
87 | kdecore/kmdcodec.h \ | 85 | kdecore/kmdcodec.h \ |
88 | kdecore/kconfigbase.h \ | 86 | kdecore/kconfigbase.h \ |
89 | kdecore/klocale.h \ | 87 | kdecore/klocale.h \ |
90 | kdecore/kcatalogue.h \ | 88 | kdecore/kcatalogue.h \ |
91 | kdecore/ksharedptr.h \ | 89 | kdecore/ksharedptr.h \ |
92 | kdecore/kshell.h \ | 90 | kdecore/kshell.h \ |
93 | kdecore/kstandarddirs.h \ | 91 | kdecore/kstandarddirs.h \ |
94 | kdecore/kstringhandler.h \ | 92 | kdecore/kstringhandler.h \ |
95 | kdecore/kshortcut.h \ | 93 | kdecore/kshortcut.h \ |
96 | kutils/kcmultidialog.h \ | 94 | kutils/kcmultidialog.h \ |
97 | kdeui/kxmlguiclient.h \ | 95 | kdeui/kxmlguiclient.h \ |
98 | kdeui/kstdaction.h \ | 96 | kdeui/kstdaction.h \ |
99 | kdeui/kmainwindow.h \ | 97 | kdeui/kmainwindow.h \ |
100 | kdeui/ktoolbar.h \ | 98 | kdeui/ktoolbar.h \ |
101 | kdeui/ktoolbarbutton.h \ | 99 | kdeui/ktoolbarbutton.h \ |
102 | kdeui/ktoolbarhandler.h \ | 100 | kdeui/ktoolbarhandler.h \ |
103 | kdeui/kaction.h \ | 101 | kdeui/kaction.h \ |
104 | kdeui/kactionclasses.h \ | 102 | kdeui/kactionclasses.h \ |
105 | kdeui/kactioncollection.h \ | 103 | kdeui/kactioncollection.h \ |
106 | kdecore/kprefs.h \ | 104 | kdecore/kprefs.h \ |
107 | kdecore/klibloader.h \ | 105 | kdecore/klibloader.h \ |
108 | kidmanager.h | 106 | kidmanager.h |
109 | 107 | ||
110 | 108 | ||
@@ -129,51 +127,49 @@ KDGanttMinimizeSplitter.cpp \ | |||
129 | kglobal.cpp \ | 127 | kglobal.cpp \ |
130 | kglobalsettings.cpp \ | 128 | kglobalsettings.cpp \ |
131 | kiconloader.cpp \ | 129 | kiconloader.cpp \ |
132 | kmessagebox.cpp \ | 130 | kmessagebox.cpp \ |
133 | ktextedit.cpp \ | 131 | ktextedit.cpp \ |
134 | kprocess.cpp \ | 132 | kprocess.cpp \ |
135 | krun.cpp \ | 133 | krun.cpp \ |
136 | ksystemtray.cpp \ | 134 | ksystemtray.cpp \ |
137 | ktempfile.cpp \ | 135 | ktempfile.cpp \ |
138 | kurl.cpp \ | 136 | kurl.cpp \ |
139 | kdecore/kcatalogue.cpp \ | 137 | kdecore/kcatalogue.cpp \ |
140 | kdecore/klocale.cpp \ | 138 | kdecore/klocale.cpp \ |
141 | kdecore/kmdcodec.cpp \ | 139 | kdecore/kmdcodec.cpp \ |
142 | kdecore/kshell.cpp \ | 140 | kdecore/kshell.cpp \ |
143 | kdecore/kstandarddirs.cpp \ | 141 | kdecore/kstandarddirs.cpp \ |
144 | kdecore/kstringhandler.cpp \ | 142 | kdecore/kstringhandler.cpp \ |
145 | kdeui/kbuttonbox.cpp \ | 143 | kdeui/kbuttonbox.cpp \ |
146 | kdeui/kcmodule.cpp \ | 144 | kdeui/kcmodule.cpp \ |
147 | kdeui/kguiitem.cpp \ | 145 | kdeui/kguiitem.cpp \ |
148 | kdeui/kjanuswidget.cpp \ | 146 | kdeui/kjanuswidget.cpp \ |
149 | kdeui/klistbox.cpp \ | 147 | kdeui/klistbox.cpp \ |
150 | kdeui/klistview.cpp \ | 148 | kdeui/klistview.cpp \ |
151 | kdeui/knuminput.cpp \ | 149 | kdeui/knuminput.cpp \ |
152 | kdeui/knumvalidator.cpp \ | 150 | kdeui/knumvalidator.cpp \ |
153 | kdeui/kseparator.cpp \ | 151 | kdeui/kseparator.cpp \ |
154 | kdeui/ksqueezedtextlabel.cpp \ | 152 | kdeui/ksqueezedtextlabel.cpp \ |
155 | kio/kio/kdirwatch.cpp \ | 153 | kio/kio/kdirwatch.cpp \ |
156 | kio/kfile/kurlrequester.cpp \ | 154 | kio/kfile/kurlrequester.cpp \ |
157 | kresources/configpage.cpp \ | 155 | kresources/configpage.cpp \ |
158 | kresources/configdialog.cpp \ | 156 | kresources/configdialog.cpp \ |
159 | kresources/configwidget.cpp \ | 157 | kresources/configwidget.cpp \ |
160 | kresources/factory.cpp \ | 158 | kresources/factory.cpp \ |
161 | kresources/kcmkresources.cpp \ | 159 | kresources/kcmkresources.cpp \ |
162 | kresources/managerimpl.cpp \ | 160 | kresources/managerimpl.cpp \ |
163 | kresources/resource.cpp \ | 161 | kresources/resource.cpp \ |
164 | kresources/selectdialog.cpp \ | 162 | kresources/selectdialog.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 | ||