author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kmicromail/mainwindow.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | kmicromail/mainwindow.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h index f65f3b4..1ccadc2 100644 --- a/kmicromail/mainwindow.h +++ b/kmicromail/mainwindow.h | |||
@@ -1,75 +1,79 @@ | |||
1 | 1 | ||
2 | // CHANGED 2004-08-06 Lutz Rogowski | 2 | // CHANGED 2004-08-06 Lutz Rogowski |
3 | #ifndef MAINWINDOW_H | 3 | #ifndef MAINWINDOW_H |
4 | #define MAINWINDOW_H | 4 | #define MAINWINDOW_H |
5 | 5 | ||
6 | #include <qmainwindow.h> | 6 | #include <q3mainwindow.h> |
7 | //Added by qt3to4: | ||
8 | #include <Q3CString> | ||
9 | #include <Q3ValueList> | ||
10 | #include <Q3PopupMenu> | ||
7 | #include <klistview.h> | 11 | #include <klistview.h> |
8 | #include <qaction.h> | 12 | #include <qaction.h> |
9 | #include <qlineedit.h> | 13 | #include <qlineedit.h> |
10 | 14 | ||
11 | #include <qtoolbar.h> | 15 | #include <q3toolbar.h> |
12 | #ifdef DESKTOP_VERSION | 16 | #ifdef DESKTOP_VERSION |
13 | #include <qmenubar.h> | 17 | #include <qmenubar.h> |
14 | #define QPEMenuBar QMenuBar | 18 | #define QPEMenuBar QMenuBar |
15 | #else | 19 | #else |
16 | #include <qpe/qpemenubar.h> | 20 | #include <qpe/qpemenubar.h> |
17 | #endif | 21 | #endif |
18 | 22 | ||
19 | #include "accountview.h" | 23 | #include "accountview.h" |
20 | #include "statuswidget.h" | 24 | #include "statuswidget.h" |
21 | 25 | ||
22 | #include <libmailwrapper/mailtypes.h> | 26 | #include <libmailwrapper/mailtypes.h> |
23 | #include <opie2/osmartpointer.h> | 27 | #include <opie2/osmartpointer.h> |
24 | 28 | ||
25 | class RecMail; | 29 | class RecMail; |
26 | 30 | ||
27 | class MainWindow : public QMainWindow | 31 | class MainWindow : public Q3MainWindow |
28 | { | 32 | { |
29 | Q_OBJECT | 33 | Q_OBJECT |
30 | 34 | ||
31 | public: | 35 | public: |
32 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags flags = 0 ); | 36 | MainWindow( QWidget *parent = 0, const char *name = 0, Qt::WFlags flags = 0 ); |
33 | virtual ~MainWindow(); | 37 | virtual ~MainWindow(); |
34 | 38 | ||
35 | public slots: | 39 | public slots: |
36 | virtual void slotAdjustColumns(); | 40 | virtual void slotAdjustColumns(); |
37 | virtual void slotAdjustColumnsWide(); | 41 | virtual void slotAdjustColumnsWide(); |
38 | virtual void appMessage(const QCString &msg, const QByteArray &data); | 42 | virtual void appMessage(const Q3CString &msg, const QByteArray &data); |
39 | virtual void slotComposeMail(); | 43 | virtual void slotComposeMail(); |
40 | 44 | ||
41 | protected slots: | 45 | protected slots: |
42 | virtual void setInfoFields(QListViewItem* ); | 46 | virtual void setInfoFields(Q3ListViewItem* ); |
43 | virtual void slotSendQueued(); | 47 | virtual void slotSendQueued(); |
44 | virtual void slotEditAccounts(); | 48 | virtual void slotEditAccounts(); |
45 | virtual void slotShowFolders( bool show ); | 49 | virtual void slotShowFolders( bool show ); |
46 | virtual void refreshMailView(const QValueList<RecMailP>&); | 50 | virtual void refreshMailView(const Q3ValueList<RecMailP>&); |
47 | virtual void displayMail(); | 51 | virtual void displayMail(); |
48 | virtual void slotGetMail() = 0; | 52 | virtual void slotGetMail() = 0; |
49 | virtual void slotGetAllMail() = 0; | 53 | virtual void slotGetAllMail() = 0; |
50 | virtual void slotDeleteMail(); | 54 | virtual void slotDeleteMail(); |
51 | virtual void slotDeleteAllMail() = 0; | 55 | virtual void slotDeleteAllMail() = 0; |
52 | virtual void slotSetCodec(int); | 56 | virtual void slotSetCodec(int); |
53 | virtual void mailHold(int, QListViewItem *,const QPoint&,int); | 57 | virtual void mailHold(int, Q3ListViewItem *,const QPoint&,int); |
54 | virtual void slotAdjustLayout(); | 58 | virtual void slotAdjustLayout(); |
55 | virtual void slotEditSettings(); | 59 | virtual void slotEditSettings(); |
56 | virtual void slotEditGlobalSettings(); | 60 | virtual void slotEditGlobalSettings(); |
57 | virtual void mailLeftClicked( QListViewItem * ); | 61 | virtual void mailLeftClicked( Q3ListViewItem * ); |
58 | void showLicence(); | 62 | void showLicence(); |
59 | void showAbout(); | 63 | void showAbout(); |
60 | void showEtpanLicence(); | 64 | void showEtpanLicence(); |
61 | 65 | ||
62 | protected: | 66 | protected: |
63 | QToolBar *toolBar; | 67 | Q3ToolBar *toolBar; |
64 | StatusWidget *statusWidget; | 68 | StatusWidget *statusWidget; |
65 | QPEMenuBar *menuBar; | 69 | QPEMenuBar *menuBar; |
66 | QPopupMenu *mailMenu, *settingsMenu, *codecMenu; | 70 | Q3PopupMenu *mailMenu, *settingsMenu, *codecMenu; |
67 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, | 71 | QAction *composeMail, *sendQueued, *showFolders, *searchMails, *deleteMails, |
68 | *editSettings, *editAccounts, *syncFolders; | 72 | *editSettings, *editAccounts, *syncFolders; |
69 | AccountView *folderView; | 73 | AccountView *folderView; |
70 | KListView *mailView; | 74 | KListView *mailView; |
71 | QLineEdit* toLE,*fromLE,*subLE; | 75 | QLineEdit* toLE,*fromLE,*subLE; |
72 | //QBoxLayout *layout; | 76 | //QBoxLayout *layout; |
73 | }; | 77 | }; |
74 | 78 | ||
75 | #endif | 79 | #endif |