author | zautrix <zautrix> | 2004-10-30 17:07:04 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-30 17:07:04 (UTC) |
commit | 28df10a0eb5ff343191755a06391bc6ce2fd84b0 (patch) (unidiff) | |
tree | 930882e7400006887d68fd434939e3a376b8631b /kmicromail | |
parent | c8662dc632987a317386b923e24acb9507859528 (diff) | |
download | kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.zip kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.tar.gz kdepimpi-28df10a0eb5ff343191755a06391bc6ce2fd84b0.tar.bz2 |
ompi fixes
-rw-r--r-- | kmicromail/composemailui.ui | 11 | ||||
-rw-r--r-- | kmicromail/libmailwrapper/libmailwrapper.pro | 2 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 3 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 26 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog.h | 8 | ||||
-rw-r--r-- | kmicromail/qpe/qdialog_hacked.cpp | 5 |
6 files changed, 35 insertions, 20 deletions
diff --git a/kmicromail/composemailui.ui b/kmicromail/composemailui.ui index c66b0c8..029922c 100644 --- a/kmicromail/composemailui.ui +++ b/kmicromail/composemailui.ui | |||
@@ -1,67 +1,74 @@ | |||
1 | <!DOCTYPE UI><UI> | 1 | <!DOCTYPE UI><UI> |
2 | <class>ComposeMailUI</class> | 2 | <class>ComposeMailUI</class> |
3 | <include location="local">tr.h</include> | 3 | <include location="local">tr.h</include> |
4 | <widget> | 4 | <widget> |
5 | <class>QDialog</class> | 5 | <class>QDialog</class> |
6 | <property stdset="1"> | 6 | <property stdset="1"> |
7 | <name>name</name> | 7 | <name>name</name> |
8 | <cstring>ComposeMailUI</cstring> | 8 | <cstring>ComposeMailUI</cstring> |
9 | </property> | 9 | </property> |
10 | <property stdset="1"> | 10 | <property stdset="1"> |
11 | <name>geometry</name> | 11 | <name>geometry</name> |
12 | <rect> | 12 | <rect> |
13 | <x>0</x> | 13 | <x>0</x> |
14 | <y>0</y> | 14 | <y>0</y> |
15 | <width>276</width> | 15 | <width>579</width> |
16 | <height>263</height> | 16 | <height>476</height> |
17 | </rect> | 17 | </rect> |
18 | </property> | 18 | </property> |
19 | <property stdset="1"> | 19 | <property stdset="1"> |
20 | <name>sizePolicy</name> | ||
21 | <sizepolicy> | ||
22 | <hsizetype>7</hsizetype> | ||
23 | <vsizetype>7</vsizetype> | ||
24 | </sizepolicy> | ||
25 | </property> | ||
26 | <property stdset="1"> | ||
20 | <name>caption</name> | 27 | <name>caption</name> |
21 | <string>Compose Message</string> | 28 | <string>Compose Message</string> |
22 | </property> | 29 | </property> |
23 | <property> | 30 | <property> |
24 | <name>layoutMargin</name> | 31 | <name>layoutMargin</name> |
25 | </property> | 32 | </property> |
26 | <property> | 33 | <property> |
27 | <name>layoutSpacing</name> | 34 | <name>layoutSpacing</name> |
28 | </property> | 35 | </property> |
29 | <grid> | 36 | <grid> |
30 | <property stdset="1"> | 37 | <property stdset="1"> |
31 | <name>margin</name> | 38 | <name>margin</name> |
32 | <number>2</number> | 39 | <number>2</number> |
33 | </property> | 40 | </property> |
34 | <property stdset="1"> | 41 | <property stdset="1"> |
35 | <name>spacing</name> | 42 | <name>spacing</name> |
36 | <number>1</number> | 43 | <number>1</number> |
37 | </property> | 44 | </property> |
38 | <widget row="1" column="0" rowspan="1" colspan="4" > | 45 | <widget row="1" column="0" rowspan="1" colspan="4" > |
39 | <class>QTabWidget</class> | 46 | <class>QTabWidget</class> |
40 | <property stdset="1"> | 47 | <property stdset="1"> |
41 | <name>name</name> | 48 | <name>name</name> |
42 | <cstring>tabWidget</cstring> | 49 | <cstring>tabWidget</cstring> |
43 | </property> | 50 | </property> |
44 | <property> | 51 | <property> |
45 | <name>layoutMargin</name> | 52 | <name>layoutMargin</name> |
46 | </property> | 53 | </property> |
47 | <property> | 54 | <property> |
48 | <name>layoutSpacing</name> | 55 | <name>layoutSpacing</name> |
49 | </property> | 56 | </property> |
50 | <widget> | 57 | <widget> |
51 | <class>QWidget</class> | 58 | <class>QWidget</class> |
52 | <property stdset="1"> | 59 | <property stdset="1"> |
53 | <name>name</name> | 60 | <name>name</name> |
54 | <cstring>mailTab</cstring> | 61 | <cstring>mailTab</cstring> |
55 | </property> | 62 | </property> |
56 | <attribute> | 63 | <attribute> |
57 | <name>title</name> | 64 | <name>title</name> |
58 | <string>Mail</string> | 65 | <string>Mail</string> |
59 | </attribute> | 66 | </attribute> |
60 | <vbox> | 67 | <vbox> |
61 | <property stdset="1"> | 68 | <property stdset="1"> |
62 | <name>margin</name> | 69 | <name>margin</name> |
63 | <number>1</number> | 70 | <number>1</number> |
64 | </property> | 71 | </property> |
65 | <property stdset="1"> | 72 | <property stdset="1"> |
66 | <name>spacing</name> | 73 | <name>spacing</name> |
67 | <number>1</number> | 74 | <number>1</number> |
diff --git a/kmicromail/libmailwrapper/libmailwrapper.pro b/kmicromail/libmailwrapper/libmailwrapper.pro index 10d45b1..0919cd2 100644 --- a/kmicromail/libmailwrapper/libmailwrapper.pro +++ b/kmicromail/libmailwrapper/libmailwrapper.pro | |||
@@ -1,65 +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/qdialog_hacked.cpp \ |
39 | ../qpe/global.cpp | 39 | ../qpe/global.cpp |
40 | 40 | ||
41 | INTERFACES = logindialogui.ui \ | 41 | INTERFACES = logindialogui.ui \ |
42 | sendmailprogressui.ui | 42 | sendmailprogressui.ui |
43 | 43 | ||
44 | INCLUDEPATH += ../qpe .. ../../microkde ../../microkde/kdecore ../libetpan/include | 44 | INCLUDEPATH += ../qpe .. ../../microkde ../../microkde/kdecore ../libetpan/include |
45 | LIBS += -lssl -lcrypto | 45 | LIBS += -lssl -lcrypto |
46 | 46 | ||
47 | #-lqpe -letpan | 47 | #-lqpe -letpan |
48 | 48 | ||
49 | DESTDIR = ../../bin | 49 | DESTDIR = ../../bin |
50 | TARGET = micromailwrapper | 50 | TARGET = micromailwrapper |
51 | 51 | ||
52 | DEFINES += DESKTOP_VERSION | 52 | DEFINES += DESKTOP_VERSION |
53 | unix : { | 53 | unix : { |
54 | OBJECTS_DIR = obj/unix | 54 | OBJECTS_DIR = obj/unix |
55 | MOC_DIR = moc/unix | 55 | MOC_DIR = moc/unix |
56 | } | 56 | } |
57 | win32: { | 57 | win32: { |
58 | DEFINES += _WIN32_ | 58 | DEFINES += _WIN32_ |
59 | LIBS += mfc71u.lib | 59 | LIBS += mfc71u.lib |
60 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 60 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
61 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 61 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
62 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 62 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
63 | OBJECTS_DIR = obj/win | 63 | OBJECTS_DIR = obj/win |
64 | MOC_DIR = moc/win | 64 | MOC_DIR = moc/win |
65 | } | 65 | } |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 7655385..4115276 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -134,96 +134,99 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
134 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); | 134 | QPEApplication::setStylusOperation( mailView->viewport(),QPEApplication::RightOnHold); |
135 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); | 135 | QPEApplication::setStylusOperation( folderView->viewport(),QPEApplication::RightOnHold); |
136 | #endif | 136 | #endif |
137 | connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this, | 137 | connect( mailView, SIGNAL( doubleClicked (QListViewItem* )),this, |
138 | SLOT( mailLeftClicked(QListViewItem*) ) ); | 138 | SLOT( mailLeftClicked(QListViewItem*) ) ); |
139 | connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this, | 139 | connect( mailView, SIGNAL( returnPressed (QListViewItem* )),this, |
140 | SLOT( mailLeftClicked(QListViewItem*) ) ); | 140 | SLOT( mailLeftClicked(QListViewItem*) ) ); |
141 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, | 141 | connect( mailView, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ),this, |
142 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); | 142 | SLOT( mailHold(int,QListViewItem*,const QPoint&,int) ) ); |
143 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), | 143 | connect(folderView, SIGNAL(refreshMailview(const QValueList<RecMailP>&)), |
144 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); | 144 | this,SLOT(refreshMailView(const QValueList<RecMailP>&))); |
145 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); | 145 | connect( composeMail, SIGNAL( activated() ), SLOT( slotComposeMail() ) ); |
146 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); | 146 | connect( sendQueued, SIGNAL( activated() ), SLOT( slotSendQueued() ) ); |
147 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); | 147 | // connect( searchMails, SIGNAL( activated() ), SLOT( slotSearchMails() ) ); |
148 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); | 148 | connect( editAccounts, SIGNAL( activated() ), SLOT( slotEditAccounts() ) ); |
149 | //mailView->setMultiSelection ( true ); | 149 | //mailView->setMultiSelection ( true ); |
150 | mailView->setSelectionMode( QListView::Extended ); | 150 | mailView->setSelectionMode( QListView::Extended ); |
151 | QValueList<int> list; | 151 | QValueList<int> list; |
152 | int fw = 100; | 152 | int fw = 100; |
153 | if ( QApplication::desktop()->width() > 320 ) | 153 | if ( QApplication::desktop()->width() > 320 ) |
154 | fw = 50; | 154 | fw = 50; |
155 | list.append( fw ); | 155 | list.append( fw ); |
156 | list.append( 100 ); | 156 | list.append( 100 ); |
157 | split->setSizes( list ); | 157 | split->setSizes( list ); |
158 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); | 158 | QTimer::singleShot( 1000, this, SLOT( slotAdjustColumns() ) ); |
159 | mailView->setShowSortIndicator ( true ); | 159 | mailView->setShowSortIndicator ( true ); |
160 | QLabel *spacer = new QLabel( toolBar ); | 160 | QLabel *spacer = new QLabel( toolBar ); |
161 | spacer->setBackgroundMode( QWidget::PaletteButton ); | 161 | spacer->setBackgroundMode( QWidget::PaletteButton ); |
162 | toolBar->setStretchableWidget( spacer ); | 162 | toolBar->setStretchableWidget( spacer ); |
163 | 163 | ||
164 | QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); | 164 | QAction* closeMail = new QAction(i18n("Close"),SmallIcon("exit"), 0, 0, this); |
165 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); | 165 | connect( closeMail, SIGNAL( activated() ), SLOT( close() ) ); |
166 | if ( QApplication::desktop()->width() > 320 ) | 166 | if ( QApplication::desktop()->width() > 320 ) |
167 | closeMail->addTo(toolBar); | 167 | closeMail->addTo(toolBar); |
168 | closeMail->addTo(mailMenu); | 168 | closeMail->addTo(mailMenu); |
169 | 169 | ||
170 | 170 | ||
171 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); | 171 | QPopupMenu* helpMenu = new QPopupMenu( menuBar ); |
172 | menuBar->insertItem( i18n( "Help" ), helpMenu ); | 172 | menuBar->insertItem( i18n( "Help" ), helpMenu ); |
173 | QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); | 173 | QAction* li = new QAction(i18n("About"), QPixmap(), 0, 0, this); |
174 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); | 174 | connect( li, SIGNAL( activated() ), SLOT( showAbout()) ); |
175 | li->addTo(helpMenu); | 175 | li->addTo(helpMenu); |
176 | li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); | 176 | li = new QAction(i18n("Licence"),QPixmap(), 0, 0, this); |
177 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); | 177 | connect( li, SIGNAL( activated() ), SLOT( showLicence()) ); |
178 | li->addTo(helpMenu); | 178 | li->addTo(helpMenu); |
179 | li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); | 179 | li = new QAction(i18n("LibEtPan Licence"), QPixmap(), 0, 0, this); |
180 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); | 180 | connect( li, SIGNAL( activated() ), SLOT( showEtpanLicence()) ); |
181 | li->addTo(helpMenu); | 181 | li->addTo(helpMenu); |
182 | #ifdef DESKTOP_VERSION | ||
183 | resize ( 640, 480 ); | ||
184 | #endif | ||
182 | } | 185 | } |
183 | 186 | ||
184 | MainWindow::~MainWindow() | 187 | MainWindow::~MainWindow() |
185 | { | 188 | { |
186 | } | 189 | } |
187 | 190 | ||
188 | void MainWindow::showLicence() | 191 | void MainWindow::showLicence() |
189 | { | 192 | { |
190 | KApplication::showLicence(); | 193 | KApplication::showLicence(); |
191 | } | 194 | } |
192 | void MainWindow::showAbout() | 195 | void MainWindow::showAbout() |
193 | { | 196 | { |
194 | QString version; | 197 | QString version; |
195 | #include <../version> | 198 | #include <../version> |
196 | 199 | ||
197 | QString cap = "About KOpieMail/Pi"; | 200 | QString cap = "About KOpieMail/Pi"; |
198 | QString text =i18n("KOpieMail/Platform-independent\n") + | 201 | QString text =i18n("KOpieMail/Platform-independent\n") + |
199 | "(OM/Pi) " + version + " - " | 202 | "(OM/Pi) " + version + " - " |
200 | 203 | ||
201 | #ifdef DESKTOP_VERSION | 204 | #ifdef DESKTOP_VERSION |
202 | "Desktop Edition\n" | 205 | "Desktop Edition\n" |
203 | #else | 206 | #else |
204 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 207 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
205 | #endif | 208 | #endif |
206 | "www.pi-sync.net\n\n" | 209 | "www.pi-sync.net\n\n" |
207 | 210 | ||
208 | 211 | ||
209 | 212 | ||
210 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | 213 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" |
211 | "KOpieMail/Pi is based on Opie Mail\n" | 214 | "KOpieMail/Pi is based on Opie Mail\n" |
212 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 215 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
213 | "KOpieMail/Pi is licensed under the GPL\n" | 216 | "KOpieMail/Pi is licensed under the GPL\n" |
214 | "\n" | 217 | "\n" |
215 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 218 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |
216 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | 219 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" |
217 | "libEtPan has its own licence - see LibEtPan licence\n"; | 220 | "libEtPan has its own licence - see LibEtPan licence\n"; |
218 | 221 | ||
219 | KApplication::showText( cap, text ); | 222 | KApplication::showText( cap, text ); |
220 | } | 223 | } |
221 | void MainWindow::showEtpanLicence() | 224 | void MainWindow::showEtpanLicence() |
222 | { | 225 | { |
223 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); | 226 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); |
224 | 227 | ||
225 | } | 228 | } |
226 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 229 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
227 | { | 230 | { |
228 | qDebug("appMessage implemented by subclass"); | 231 | qDebug("appMessage implemented by subclass"); |
229 | } | 232 | } |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index e088b9e..ca3faaf 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -1,86 +1,82 @@ | |||
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" | 4 | #include "koprefsdialog.h" |
5 | #include <kapplication.h> | ||
5 | #include <libkdepim/externalapphandler.h> | 6 | #include <libkdepim/externalapphandler.h> |
6 | #include <libkdepim/kpimglobalprefs.h> | 7 | #include <libkdepim/kpimglobalprefs.h> |
7 | #ifdef MINIKDE_KDIALOG_H | 8 | #ifdef MINIKDE_KDIALOG_H |
8 | #undef MINIKDE_KDIALOG_H | 9 | #undef MINIKDE_KDIALOG_H |
9 | #endif | 10 | #endif |
10 | #include "settingsdialog.h" | 11 | #include "settingsdialog.h" |
11 | #include "opiemail.h" | 12 | #include "opiemail.h" |
12 | #include "editaccounts.h" | 13 | #include "editaccounts.h" |
13 | #include "composemail.h" | 14 | #include "composemail.h" |
14 | #include "mailistviewitem.h" | 15 | #include "mailistviewitem.h" |
15 | #include "viewmail.h" | 16 | #include "viewmail.h" |
16 | #include "selectstore.h" | 17 | #include "selectstore.h" |
17 | #include "selectsmtp.h" | 18 | #include "selectsmtp.h" |
18 | #include "accountitem.h" | 19 | #include "accountitem.h" |
19 | #include "klocale.h" | 20 | #include "klocale.h" |
20 | 21 | ||
21 | #include <qmessagebox.h> | 22 | #include <qmessagebox.h> |
22 | #include <qtimer.h> | 23 | #include <qtimer.h> |
23 | #include <qcursor.h> | 24 | #include <qcursor.h> |
24 | #include <qregexp.h> | 25 | #include <qregexp.h> |
25 | 26 | ||
26 | #ifdef DESKTOP_VERSION | 27 | #ifdef DESKTOP_VERSION |
27 | #include <qapplication.h> | 28 | #include <qapplication.h> |
28 | #else | 29 | #else |
29 | #include <qpe/qpeapplication.h> | 30 | #include <qpe/qpeapplication.h> |
30 | #endif | 31 | #endif |
31 | #include <libmailwrapper/smtpwrapper.h> | 32 | #include <libmailwrapper/smtpwrapper.h> |
32 | #include <libmailwrapper/mailtypes.h> | 33 | #include <libmailwrapper/mailtypes.h> |
33 | #include <libmailwrapper/abstractmail.h> | 34 | #include <libmailwrapper/abstractmail.h> |
34 | /* OPIE */ | ||
35 | //#include <qpe/resource.h> | ||
36 | //#include <qpe/qpeapplication.h> | ||
37 | |||
38 | /* QT */ | ||
39 | 35 | ||
40 | //using namespace Opie::Core; | 36 | //using namespace Opie::Core; |
41 | 37 | ||
42 | OpieMail::OpieMail( QWidget *parent, const char *name ) | 38 | OpieMail::OpieMail( QWidget *parent, const char *name ) |
43 | : MainWindow( parent, name) //, WStyle_ContextHelp ) | 39 | : MainWindow( parent, name) //, WStyle_ContextHelp ) |
44 | { | 40 | { |
45 | settings = new Settings(); | 41 | settings = new Settings(); |
46 | 42 | ||
47 | folderView->populate( settings->getAccounts() ); | 43 | folderView->populate( settings->getAccounts() ); |
48 | 44 | ||
49 | } | 45 | } |
50 | 46 | ||
51 | OpieMail::~OpieMail() | 47 | OpieMail::~OpieMail() |
52 | { | 48 | { |
53 | if (settings) delete settings; | 49 | if (settings) delete settings; |
54 | } | 50 | } |
55 | 51 | ||
56 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) | 52 | void OpieMail::appMessage(const QCString &msg, const QByteArray &data) |
57 | { | 53 | { |
58 | 54 | ||
59 | } | 55 | } |
60 | #include <stdlib.h> | 56 | #include <stdlib.h> |
61 | void OpieMail::message(const QCString &msg, const QByteArray &data) | 57 | void OpieMail::message(const QCString &msg, const QByteArray &data) |
62 | { | 58 | { |
63 | // copied from old mail2 | 59 | // copied from old mail2 |
64 | static int ii = 0; | 60 | static int ii = 0; |
65 | //qDebug("QCOP CALL ############################# %d ", ii); | 61 | //qDebug("QCOP CALL ############################# %d ", ii); |
66 | //QString mess ( msg ); | 62 | //QString mess ( msg ); |
67 | //qDebug("Message = %s ",mess.latin1()); | 63 | //qDebug("Message = %s ",mess.latin1()); |
68 | ++ii; | 64 | ++ii; |
69 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); | 65 | //qDebug("KM:appMessage %d *%s* %x", ii, msg.data(), this); |
70 | 66 | ||
71 | mPendingEmail = QString::null; | 67 | mPendingEmail = QString::null; |
72 | mPendingName = QString::null; | 68 | mPendingName = QString::null; |
73 | if (msg == "writeMail(QString,QString)") | 69 | if (msg == "writeMail(QString,QString)") |
74 | { | 70 | { |
75 | //qDebug("writeMail(QString,QString) "); | 71 | //qDebug("writeMail(QString,QString) "); |
76 | QDataStream stream(data,IO_ReadOnly); | 72 | QDataStream stream(data,IO_ReadOnly); |
77 | stream >> mPendingName >> mPendingEmail; | 73 | stream >> mPendingName >> mPendingEmail; |
78 | // removing the whitespaces at beginning and end is needed! | 74 | // removing the whitespaces at beginning and end is needed! |
79 | QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) ); | 75 | QTimer::singleShot ( 50, this, SLOT(slotComposeMail() ) ); |
80 | } | 76 | } |
81 | else if (msg == "newMail()") | 77 | else if (msg == "newMail()") |
82 | { | 78 | { |
83 | //qDebug("slotComposeMail() "); | 79 | //qDebug("slotComposeMail() "); |
84 | // we cannot call slotComposeMail(); directly, because may be executing a QCOP call | 80 | // we cannot call slotComposeMail(); directly, because may be executing a QCOP call |
85 | // and a QCOP call does not like a processevents in his execution | 81 | // and a QCOP call does not like a processevents in his execution |
86 | // with the Qtimer we call slotComposeMail() after we reached the main event loop | 82 | // with the Qtimer we call slotComposeMail() after we reached the main event loop |
@@ -176,128 +172,134 @@ void OpieMail::slotSendQueued() | |||
176 | smtpList.setAutoDelete(false); | 172 | smtpList.setAutoDelete(false); |
177 | Account *it; | 173 | Account *it; |
178 | for ( it = list.first(); it; it = list.next() ) | 174 | for ( it = list.first(); it; it = list.next() ) |
179 | { | 175 | { |
180 | if ( it->getType() == MAILLIB::A_SMTP ) | 176 | if ( it->getType() == MAILLIB::A_SMTP ) |
181 | { | 177 | { |
182 | smtp = static_cast<SMTPaccount *>(it); | 178 | smtp = static_cast<SMTPaccount *>(it); |
183 | smtpList.append(smtp); | 179 | smtpList.append(smtp); |
184 | } | 180 | } |
185 | } | 181 | } |
186 | if (smtpList.count()==0) | 182 | if (smtpList.count()==0) |
187 | { | 183 | { |
188 | QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n")); | 184 | QMessageBox::information(0,i18n("Info"),i18n("Define a smtp account first!\n")); |
189 | return; | 185 | return; |
190 | } | 186 | } |
191 | if (smtpList.count()==1) | 187 | if (smtpList.count()==1) |
192 | { | 188 | { |
193 | smtp = smtpList.at(0); | 189 | smtp = smtpList.at(0); |
194 | } | 190 | } |
195 | else | 191 | else |
196 | { | 192 | { |
197 | smtp = 0; | 193 | smtp = 0; |
198 | selectsmtp selsmtp; | 194 | selectsmtp selsmtp; |
199 | selsmtp.setSelectionlist(&smtpList); | 195 | selsmtp.setSelectionlist(&smtpList); |
200 | selsmtp.showMaximized(); | 196 | selsmtp.showMaximized(); |
201 | if ( selsmtp.exec() == QDialog::Accepted ) | 197 | if ( selsmtp.exec() == QDialog::Accepted ) |
202 | { | 198 | { |
203 | smtp = selsmtp.selected_smtp(); | 199 | smtp = selsmtp.selected_smtp(); |
204 | } | 200 | } |
205 | } | 201 | } |
206 | if (smtp) | 202 | if (smtp) |
207 | { | 203 | { |
208 | SMTPwrapper * wrap = new SMTPwrapper(smtp); | 204 | SMTPwrapper * wrap = new SMTPwrapper(smtp); |
209 | if ( wrap->flushOutbox() ) | 205 | if ( wrap->flushOutbox() ) |
210 | { | 206 | { |
211 | QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed")); | 207 | QMessageBox::information(0,i18n("Info"),i18n("Mail queue flushed")); |
212 | } | 208 | } |
213 | delete wrap; | 209 | delete wrap; |
214 | } | 210 | } |
215 | } | 211 | } |
216 | 212 | ||
217 | void OpieMail::slotSearchMails() | 213 | void OpieMail::slotSearchMails() |
218 | { | 214 | { |
219 | qDebug("OpieMail::slotSearchMails():not implemented "); | 215 | qDebug("OpieMail::slotSearchMails():not implemented "); |
220 | } | 216 | } |
221 | 217 | ||
222 | void OpieMail::slotEditSettings() | 218 | void OpieMail::slotEditSettings() |
223 | { | 219 | { |
224 | #if 0 | 220 | |
225 | SettingsDialog settingsDialog( this, 0, true, WStyle_ContextHelp ); | ||
226 | settingsDialog.showMaximized(); | ||
227 | settingsDialog.exec(); | ||
228 | #endif | ||
229 | KOPrefsDialog settingsDialog( this, "koprefs", true ); | 221 | KOPrefsDialog settingsDialog( this, "koprefs", true ); |
222 | #ifndef DESKTOP_VERSION | ||
230 | settingsDialog.showMaximized(); | 223 | settingsDialog.showMaximized(); |
224 | #endif | ||
231 | settingsDialog.exec(); | 225 | settingsDialog.exec(); |
226 | |||
227 | // KApplication::execDialog(settingsDialog); | ||
232 | } | 228 | } |
233 | 229 | ||
234 | void OpieMail::slotEditAccounts() | 230 | void OpieMail::slotEditAccounts() |
235 | { | 231 | { |
236 | EditAccounts eaDialog( settings, this, 0, true ); | 232 | EditAccounts eaDialog( settings, this, 0, true ); |
237 | eaDialog.slotAdjustColumns(); | 233 | eaDialog.slotAdjustColumns(); |
234 | #ifndef DESKTOP_VERSION | ||
238 | eaDialog.showMaximized(); | 235 | eaDialog.showMaximized(); |
236 | #endif | ||
239 | eaDialog.exec(); | 237 | eaDialog.exec(); |
240 | if ( settings ) delete settings; | 238 | if ( settings ) delete settings; |
241 | settings = new Settings(); | 239 | settings = new Settings(); |
242 | 240 | ||
243 | folderView->populate( settings->getAccounts() ); | 241 | folderView->populate( settings->getAccounts() ); |
244 | } | 242 | } |
245 | 243 | ||
246 | void OpieMail::displayMail() | 244 | void OpieMail::displayMail() |
247 | { | 245 | { |
248 | QListViewItem*item = mailView->currentItem(); | 246 | QListViewItem*item = mailView->currentItem(); |
249 | if (!item) return; | 247 | if (!item) return; |
250 | RecMailP mail = ((MailListViewItem*)item)->data(); | 248 | RecMailP mail = ((MailListViewItem*)item)->data(); |
251 | RecBodyP body = folderView->fetchBody(mail); | 249 | RecBodyP body = folderView->fetchBody(mail); |
252 | ViewMail readMail( this,"", Qt::WType_Modal ); | 250 | ViewMail readMail( this,"", Qt::WType_Modal ); |
253 | readMail.setBody( body ); | 251 | readMail.setBody( body ); |
254 | readMail.setMail( mail ); | 252 | readMail.setMail( mail ); |
253 | #ifndef DESKTOP_VERSION | ||
255 | readMail.showMaximized(); | 254 | readMail.showMaximized(); |
255 | #else | ||
256 | readMail.resize( 640, 480); | ||
257 | #endif | ||
256 | readMail.exec(); | 258 | readMail.exec(); |
257 | 259 | ||
258 | if ( readMail.deleted ) | 260 | if ( readMail.deleted ) |
259 | { | 261 | { |
260 | folderView->refreshCurrent(); | 262 | folderView->refreshCurrent(); |
261 | } | 263 | } |
262 | else | 264 | else |
263 | { | 265 | { |
264 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); | 266 | ( (MailListViewItem*)item )->setPixmap( 0, QPixmap() ); |
265 | } | 267 | } |
266 | } | 268 | } |
267 | void OpieMail::slotGetAllMail() | 269 | void OpieMail::slotGetAllMail() |
268 | { | 270 | { |
269 | QListViewItem * item = folderView->firstChild(); | 271 | QListViewItem * item = folderView->firstChild(); |
270 | while ( item ){ | 272 | while ( item ){ |
271 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); | 273 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); |
272 | item = item->nextSibling (); | 274 | item = item->nextSibling (); |
273 | } | 275 | } |
274 | } | 276 | } |
275 | void OpieMail::slotGetMail() | 277 | void OpieMail::slotGetMail() |
276 | { | 278 | { |
277 | QListViewItem * item = folderView->currentItem(); | 279 | QListViewItem * item = folderView->currentItem(); |
278 | if ( ! item ) return; | 280 | if ( ! item ) return; |
279 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); | 281 | ((AccountViewItem *)item)->contextMenuSelected( 101 ); |
280 | } | 282 | } |
281 | void OpieMail::slotDeleteMail() | 283 | void OpieMail::slotDeleteMail() |
282 | { | 284 | { |
283 | if (!mailView->currentItem()) return; | 285 | if (!mailView->currentItem()) return; |
284 | RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); | 286 | RecMailP mail = ((MailListViewItem*)mailView->currentItem() )->data(); |
285 | if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) | 287 | if ( QMessageBox::warning(this, i18n("Delete Mail"), QString( i18n("<p>Do you really want to delete this mail? <br><br>" ) + mail->getFrom() + " - " + mail->getSubject() ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) |
286 | { | 288 | { |
287 | mail->Wrapper()->deleteMail( mail ); | 289 | mail->Wrapper()->deleteMail( mail ); |
288 | folderView->refreshCurrent(); | 290 | folderView->refreshCurrent(); |
289 | } | 291 | } |
290 | } | 292 | } |
291 | void OpieMail::slotDeleteAllMail() | 293 | void OpieMail::slotDeleteAllMail() |
292 | { | 294 | { |
293 | 295 | ||
294 | QValueList<RecMailP> t; | 296 | QValueList<RecMailP> t; |
295 | if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) | 297 | if ( QMessageBox::warning(this, i18n("Delete All Mails"), i18n("Do you really want to delete\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) |
296 | { | 298 | { |
297 | MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); | 299 | MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); |
298 | while ( item ) { | 300 | while ( item ) { |
299 | if ( item->isSelected() ) { | 301 | if ( item->isSelected() ) { |
300 | t.append( item->data() ); | 302 | t.append( item->data() ); |
301 | } | 303 | } |
302 | item = (MailListViewItem*)item->nextSibling(); | 304 | item = (MailListViewItem*)item->nextSibling(); |
303 | } | 305 | } |
@@ -427,51 +429,55 @@ void OpieMail::slotMoveCopyAllMail() | |||
427 | QValueList<RecMailP> t; | 429 | QValueList<RecMailP> t; |
428 | // if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) | 430 | // if ( QMessageBox::warning(this, i18n("Move/Copy all selected mails"), i18n("Do you really want to copy/move\nall selected mails?" ) , QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) |
429 | { | 431 | { |
430 | MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); | 432 | MailListViewItem* item = (MailListViewItem*)mailView->firstChild (); |
431 | while ( item ) { | 433 | while ( item ) { |
432 | if ( item->isSelected() ) { | 434 | if ( item->isSelected() ) { |
433 | t.append( item->data() ); | 435 | t.append( item->data() ); |
434 | } | 436 | } |
435 | item = (MailListViewItem*)item->nextSibling(); | 437 | item = (MailListViewItem*)item->nextSibling(); |
436 | } | 438 | } |
437 | } | 439 | } |
438 | // else | 440 | // else |
439 | // return; | 441 | // return; |
440 | if ( t.count() == 0 ) | 442 | if ( t.count() == 0 ) |
441 | return; | 443 | return; |
442 | RecMailP mail = t.first(); | 444 | RecMailP mail = t.first(); |
443 | AbstractMail*targetMail = 0; | 445 | AbstractMail*targetMail = 0; |
444 | QString targetFolder = ""; | 446 | QString targetFolder = ""; |
445 | Selectstore sels; | 447 | Selectstore sels; |
446 | folderView->setupFolderselect(&sels); | 448 | folderView->setupFolderselect(&sels); |
447 | if (!sels.exec()) return; | 449 | if (!sels.exec()) return; |
448 | targetMail = sels.currentMail(); | 450 | targetMail = sels.currentMail(); |
449 | targetFolder = sels.currentFolder(); | 451 | targetFolder = sels.currentFolder(); |
450 | if ( (mail->Wrapper()==targetMail && mail->getMbox()==targetFolder) || | 452 | if ( (mail->Wrapper()==targetMail && mail->getMbox()==targetFolder) || |
451 | targetFolder.isEmpty()) | 453 | targetFolder.isEmpty()) |
452 | { | 454 | { |
453 | return; | 455 | return; |
454 | } | 456 | } |
455 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) | 457 | if (sels.newFolder() && !targetMail->createMbox(targetFolder)) |
456 | { | 458 | { |
457 | QMessageBox::critical(0,i18n("Error creating new Folder"), | 459 | QMessageBox::critical(0,i18n("Error creating new Folder"), |
458 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); | 460 | i18n("<center>Error while creating<br>new folder - breaking.</center>")); |
459 | return; | 461 | return; |
460 | } | 462 | } |
461 | sels.hide(); | 463 | sels.hide(); |
462 | qApp->processEvents(); | 464 | qApp->processEvents(); |
463 | //qDebug("hiding sels "); | 465 | //qDebug("hiding sels "); |
464 | mail->Wrapper()->mvcpMailList(t,targetFolder,targetMail,sels.moveMails()); | 466 | mail->Wrapper()->mvcpMailList(t,targetFolder,targetMail,sels.moveMails()); |
465 | folderView->refreshCurrent(); | 467 | folderView->refreshCurrent(); |
466 | } | 468 | } |
467 | 469 | ||
468 | void OpieMail::reEditMail() | 470 | void OpieMail::reEditMail() |
469 | { | 471 | { |
470 | if (!mailView->currentItem()) return; | 472 | if (!mailView->currentItem()) return; |
471 | 473 | ||
472 | ComposeMail compose( settings, this, 0, true ); | 474 | ComposeMail compose( settings, this, 0, true ); |
473 | compose.reEditMail(((MailListViewItem*)mailView->currentItem() )->data()); | 475 | compose.reEditMail(((MailListViewItem*)mailView->currentItem() )->data()); |
474 | compose.slotAdjustColumns(); | 476 | compose.slotAdjustColumns(); |
477 | #ifndef DESKTOP_VERSION | ||
475 | compose.showMaximized(); | 478 | compose.showMaximized(); |
479 | #else | ||
480 | compose.resize(640,480); | ||
481 | #endif | ||
476 | compose.exec(); | 482 | compose.exec(); |
477 | } | 483 | } |
diff --git a/kmicromail/qpe/qdialog.h b/kmicromail/qpe/qdialog.h index d671e34..aafdf80 100644 --- a/kmicromail/qpe/qdialog.h +++ b/kmicromail/qpe/qdialog.h | |||
@@ -1,35 +1,33 @@ | |||
1 | 1 | ||
2 | #ifndef MINIKDE_KDIALOG_H | 2 | #ifndef MINIKDE_KDIALOG_H |
3 | 3 | ||
4 | #ifndef DEFINE_QDIALOG_HACK | 4 | #ifndef DEFINE_QDIALOG_HACK |
5 | #define DEFINE_QDIALOG_HACK | 5 | #define DEFINE_QDIALOG_HACK |
6 | #warning call of include <qdialog.h> | 6 | #warning call of include <qdialog.h> |
7 | #warning including /usr/local/qt/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 | 8 | #warning if you get a compiling error |
9 | #warning please adjust your path here! | ||
9 | 10 | ||
10 | #include "/usr/local/qt/include/qdialog.h" | 11 | #include "/usr/local/qt/include/qdialog.h" |
11 | class QDialog_hacked : public QDialog | 12 | class QDialog_hacked : public QDialog |
12 | { | 13 | { |
13 | //Q__OBJECT | 14 | //Q__OBJECT |
14 | 15 | ||
15 | public: | 16 | public: |
16 | QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 ); | 17 | QDialog_hacked ( QWidget * parent=0, const char * name=0, bool modal=true, WFlags f=0 ); |
17 | 18 | ||
18 | }; | 19 | }; |
19 | 20 | ||
20 | #define QDialog QDialog_hacked | 21 | #define QDialog QDialog_hacked |
21 | 22 | ||
22 | #endif | 23 | #endif |
23 | 24 | ||
24 | #else | 25 | #else |
25 | #warning ****************************************** | 26 | #warning ****************************************** |
26 | #warning ****************************************** | 27 | #warning ****************************************** |
27 | #warning ****************************************** | 28 | #warning ****************************************** |
28 | #warning ****************************************** | 29 | #warning ****************************************** |
29 | #warning ****************************************** | 30 | #warning "/usr/local/qt/include/qdialog.h" for KDialog |
30 | #warning ****************************************** | ||
31 | #warning ****************************************** | ||
32 | #warning ****************************************** | ||
33 | #include "/usr/local/qt/include/qdialog.h" | 31 | #include "/usr/local/qt/include/qdialog.h" |
34 | 32 | ||
35 | #endif | 33 | #endif |
diff --git a/kmicromail/qpe/qdialog_hacked.cpp b/kmicromail/qpe/qdialog_hacked.cpp index e2ce21a..3669312 100644 --- a/kmicromail/qpe/qdialog_hacked.cpp +++ b/kmicromail/qpe/qdialog_hacked.cpp | |||
@@ -1,30 +1,31 @@ | |||
1 | 1 | ||
2 | #include <qdialog.h> | 2 | #include <qdialog.h> |
3 | #include <qhbox.h> | 3 | #include <qhbox.h> |
4 | #include <qpushbutton.h> | 4 | #include <qpushbutton.h> |
5 | #include <klocale.h> | 5 | #include <klocale.h> |
6 | #ifdef QDialog | 6 | #ifdef QDialog |
7 | #undef QDialog | 7 | #undef QDialog |
8 | #endif | 8 | #endif |
9 | QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) | 9 | QDialog_hacked::QDialog_hacked ( QWidget * parent, const char * name, bool modal, WFlags f ) |
10 | : QDialog( parent,name,modal) | 10 | : QDialog( parent,name,modal, f) |
11 | { | 11 | { |
12 | qDebug("******************** "); | 12 | qDebug("******************** "); |
13 | qDebug("******************** "); | 13 | qDebug("******************** "); |
14 | qDebug("******************** "); | 14 | qDebug("******************** "); |
15 | qDebug("******************** "); | 15 | qDebug("******************** "); |
16 | qDebug("New hacked QDialog == KDialogBase "); | 16 | qDebug("New hacked QDialog for ompi "); |
17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); | 17 | //QTimer::singleShot( 1, this,SLOT(addaddbuttons()) ); |
18 | 18 | ||
19 | setOrientation ( Vertical ); | 19 | setOrientation ( Vertical ); |
20 | QHBox * hb = new QHBox ( this ); | 20 | QHBox * hb = new QHBox ( this ); |
21 | QPushButton *ok = new QPushButton( i18n("OK"), hb ); | 21 | QPushButton *ok = new QPushButton( i18n("OK"), hb ); |
22 | QPushButton *cancel = new QPushButton( i18n("Cancel"), hb ); | 22 | QPushButton *cancel = new QPushButton( i18n("Cancel"), hb ); |
23 | setExtension ( hb ); | 23 | setExtension ( hb ); |
24 | showExtension ( true ); | 24 | showExtension ( true ); |
25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); | 25 | connect ( ok, SIGNAL ( clicked()),this, SLOT (accept() ) ); |
26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); | 26 | connect ( cancel, SIGNAL ( clicked()),this, SLOT (reject() ) ); |
27 | //setWFlags(WStyle_MinMax ); | ||
27 | 28 | ||
28 | } | 29 | } |
29 | 30 | ||
30 | 31 | ||