summaryrefslogtreecommitdiff
authorconber <conber>2002-06-19 13:58:18 (UTC)
committer conber <conber>2002-06-19 13:58:18 (UTC)
commitdee5f6c5a3bd982913d0b234fb9392ce68d5df63 (patch) (unidiff)
tree8a3c2d374d622234b7cf67648c8c4e31a2b530b6
parent230cdc6fd89f9e52859633816f554512cd2121e0 (diff)
downloadopie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.zip
opie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.tar.gz
opie-dee5f6c5a3bd982913d0b234fb9392ce68d5df63.tar.bz2
some small fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/composerbase.cpp8
-rw-r--r--noncore/unsupported/mail2/configdiag.cpp20
-rw-r--r--noncore/unsupported/mail2/configdiag.h2
-rw-r--r--noncore/unsupported/mail2/configdiagbase.ui11
-rw-r--r--noncore/unsupported/mail2/mainwindowbase.cpp8
5 files changed, 8 insertions, 41 deletions
diff --git a/noncore/unsupported/mail2/composerbase.cpp b/noncore/unsupported/mail2/composerbase.cpp
index ff00a73..c456ae5 100644
--- a/noncore/unsupported/mail2/composerbase.cpp
+++ b/noncore/unsupported/mail2/composerbase.cpp
@@ -24,12 +24,16 @@ ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl)
24 menubar = new QPEMenuBar( toolbar ); 24 menubar = new QPEMenuBar( toolbar );
25 mailmenu = new QPopupMenu( menubar ); 25 mailmenu = new QPopupMenu( menubar );
26 menubar->insertItem( tr( "Mail" ), mailmenu ); 26 menubar->insertItem( tr( "Mail" ), mailmenu );
27 addToolBar(toolbar); 27 addToolBar(toolbar);
28 toolbar->setHorizontalStretchable(true); 28 toolbar->setHorizontalStretchable(true);
29 29
30 QLabel *spacer = new QLabel(toolbar);
31 spacer->setBackgroundMode(QWidget::PaletteButton);
32 toolbar->setStretchableWidget(spacer);
33
30 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this); 34 sendmail = new QAction(tr("Send the mail"), QIconSet(Resource::loadPixmap("mail/sendmail")), 0, 0, this);
31 sendmail->addTo(toolbar); 35 sendmail->addTo(toolbar);
32 sendmail->addTo(mailmenu); 36 sendmail->addTo(mailmenu);
33 37
34 queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this); 38 queuemail = new QAction(tr("Queue the mail"), QIconSet(Resource::loadPixmap("mail/sendall")), 0, 0, this);
35 queuemail->addTo(toolbar); 39 queuemail->addTo(toolbar);
@@ -41,16 +45,12 @@ ComposerBase::ComposerBase(QWidget *parent, const char *name, WFlags fl)
41 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool))); 45 connect(attachfile, SIGNAL(toggled(bool)), SLOT(slotAttachfileChanged(bool)));
42 46
43 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this); 47 addressbook = new QAction(tr("Addressbook"), QIconSet(Resource::loadPixmap("mail/addbook")), 0, 0, this);
44 addressbook->addTo(toolbar); 48 addressbook->addTo(toolbar);
45 addressbook->addTo(mailmenu); 49 addressbook->addTo(mailmenu);
46 50
47 QLabel *spacer = new QLabel(toolbar);
48 spacer->setBackgroundMode(QWidget::PaletteButton);
49 toolbar->setStretchableWidget(spacer);
50
51 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); 51 abort = new QAction(tr("Abort sending"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
52 abort->addTo(toolbar); 52 abort->addTo(toolbar);
53 abort->addTo(mailmenu); 53 abort->addTo(mailmenu);
54 54
55 QWidget *main = new QWidget(this); 55 QWidget *main = new QWidget(this);
56 setCentralWidget(main); 56 setCentralWidget(main);
diff --git a/noncore/unsupported/mail2/configdiag.cpp b/noncore/unsupported/mail2/configdiag.cpp
index b89b937..e2b2f13 100644
--- a/noncore/unsupported/mail2/configdiag.cpp
+++ b/noncore/unsupported/mail2/configdiag.cpp
@@ -9,13 +9,12 @@
9#include <qlabel.h> 9#include <qlabel.h>
10 10
11#include <qpe/resource.h> 11#include <qpe/resource.h>
12#include <qpe/config.h> 12#include <qpe/config.h>
13 13
14#include "accounteditor.h" 14#include "accounteditor.h"
15#include "zaurusstuff.h"
16#include "configdiag.h" 15#include "configdiag.h"
17#include "defines.h" 16#include "defines.h"
18 17
19AccountListItem::AccountListItem(QListView *parent, Account &account) 18AccountListItem::AccountListItem(QListView *parent, Account &account)
20 : QListViewItem(parent), _account(account) 19 : QListViewItem(parent), _account(account)
21{ 20{
@@ -46,14 +45,12 @@ ConfigDiag::ConfigDiag(QWidget *parent, const char *name, bool modal, WFlags fl)
46 disclaimer->setText(disclaimer->text().arg(VERSION)); 45 disclaimer->setText(disclaimer->text().arg(VERSION));
47 46
48 connect(accountNew, SIGNAL(clicked()), SLOT(slotNewAccount())); 47 connect(accountNew, SIGNAL(clicked()), SLOT(slotNewAccount()));
49 connect(accountEdit, SIGNAL(clicked()), SLOT(slotEditAccount())); 48 connect(accountEdit, SIGNAL(clicked()), SLOT(slotEditAccount()));
50 connect(accountDelete, SIGNAL(clicked()), SLOT(slotDelAccount())); 49 connect(accountDelete, SIGNAL(clicked()), SLOT(slotDelAccount()));
51 50
52 connect(testbutton, SIGNAL(clicked()), SLOT(slotTestSettings()));
53
54 slotFillLists(); 51 slotFillLists();
55} 52}
56 53
57void ConfigDiag::accept() 54void ConfigDiag::accept()
58{ 55{
59 _configBenD->setGroup("Settings"); 56 _configBenD->setGroup("Settings");
@@ -123,23 +120,6 @@ void ConfigDiag::slotDelAccount()
123 120
124 ConfigFile::deleteAccount(account); 121 ConfigFile::deleteAccount(account);
125 slotFillLists(); 122 slotFillLists();
126 emit changed(); 123 emit changed();
127} 124}
128 125
129void ConfigDiag::slotTestSettings()
130{
131 testbutton->setEnabled(false);
132
133 if (blinkLed->isChecked()) ZaurusStuff::blinkLedOn();
134 if (playSound->isChecked()) ZaurusStuff::buzzerOn();
135 QTimer::singleShot(3000, this, SLOT(slotEndTest()));
136}
137
138void ConfigDiag::slotEndTest()
139{
140 if (playSound->isChecked()) ZaurusStuff::buzzerOff();
141 if (blinkLed->isChecked()) ZaurusStuff::blinkLedOff();
142
143 testbutton->setEnabled(true);
144}
145
diff --git a/noncore/unsupported/mail2/configdiag.h b/noncore/unsupported/mail2/configdiag.h
index f70ba7f..cbc9b22 100644
--- a/noncore/unsupported/mail2/configdiag.h
+++ b/noncore/unsupported/mail2/configdiag.h
@@ -34,14 +34,12 @@ signals:
34protected slots: 34protected slots:
35 void accept(); 35 void accept();
36 void slotFillLists(); 36 void slotFillLists();
37 void slotNewAccount(); 37 void slotNewAccount();
38 void slotEditAccount(); 38 void slotEditAccount();
39 void slotDelAccount(); 39 void slotDelAccount();
40 void slotTestSettings();
41 void slotEndTest();
42 40
43private: 41private:
44 Config *_configBenD; 42 Config *_configBenD;
45 43
46}; 44};
47 45
diff --git a/noncore/unsupported/mail2/configdiagbase.ui b/noncore/unsupported/mail2/configdiagbase.ui
index 182fedc..8b225fe 100644
--- a/noncore/unsupported/mail2/configdiagbase.ui
+++ b/noncore/unsupported/mail2/configdiagbase.ui
@@ -230,23 +230,12 @@
230 </property> 230 </property>
231 <property stdset="1"> 231 <property stdset="1">
232 <name>text</name> 232 <name>text</name>
233 <string>Blink LED</string> 233 <string>Blink LED</string>
234 </property> 234 </property>
235 </widget> 235 </widget>
236 <widget row="2" column="2" >
237 <class>QToolButton</class>
238 <property stdset="1">
239 <name>name</name>
240 <cstring>testbutton</cstring>
241 </property>
242 <property stdset="1">
243 <name>text</name>
244 <string> Test </string>
245 </property>
246 </widget>
247 <widget row="0" column="0" rowspan="1" colspan="3" > 236 <widget row="0" column="0" rowspan="1" colspan="3" >
248 <class>QCheckBox</class> 237 <class>QCheckBox</class>
249 <property stdset="1"> 238 <property stdset="1">
250 <name>name</name> 239 <name>name</name>
251 <cstring>playSound</cstring> 240 <cstring>playSound</cstring>
252 </property> 241 </property>
diff --git a/noncore/unsupported/mail2/mainwindowbase.cpp b/noncore/unsupported/mail2/mainwindowbase.cpp
index 9ffe6f0..d61899b 100644
--- a/noncore/unsupported/mail2/mainwindowbase.cpp
+++ b/noncore/unsupported/mail2/mainwindowbase.cpp
@@ -27,12 +27,16 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
27 menubar->insertItem( tr( "Mail" ), mailmenu ); 27 menubar->insertItem( tr( "Mail" ), mailmenu );
28 menubar->insertItem( tr( "Servers" ), servermenu ); 28 menubar->insertItem( tr( "Servers" ), servermenu );
29 29
30 addToolBar(toolbar); 30 addToolBar(toolbar);
31 toolbar->setHorizontalStretchable(true); 31 toolbar->setHorizontalStretchable(true);
32 32
33 QLabel *spacer = new QLabel(toolbar);
34 spacer->setBackgroundMode(QWidget::PaletteButton);
35 toolbar->setStretchableWidget(spacer);
36
33 compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this); 37 compose = new QAction(tr("Compose new mail"), QIconSet(Resource::loadPixmap("mail/newmail")), 0, 0, this);
34 compose->addTo(toolbar); 38 compose->addTo(toolbar);
35 compose->addTo(mailmenu); 39 compose->addTo(mailmenu);
36 40
37 sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this); 41 sendQueue = new QAction(tr("Send queued mails"), QIconSet(Resource::loadPixmap("mail/sendqueue")), 0, 0, this);
38 sendQueue->addTo(toolbar); 42 sendQueue->addTo(toolbar);
@@ -48,16 +52,12 @@ MainWindowBase::MainWindowBase(QWidget *parent, const char *name, WFlags fl)
48 findmails->addTo(mailmenu); 52 findmails->addTo(mailmenu);
49 53
50 configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this); 54 configure = new QAction(tr("Configuration"), QIconSet(Resource::loadPixmap("mail/configure")), 0, 0, this);
51 configure->addTo(toolbar); 55 configure->addTo(toolbar);
52 configure->addTo(servermenu); 56 configure->addTo(servermenu);
53 57
54 QLabel *spacer = new QLabel(toolbar);
55 spacer->setBackgroundMode(QWidget::PaletteButton);
56 toolbar->setStretchableWidget(spacer);
57
58 stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this); 58 stop = new QAction(tr("Abort"), QIconSet(Resource::loadPixmap("mail/abort")), 0, 0, this);
59 stop->addTo(toolbar); 59 stop->addTo(toolbar);
60 60
61 QVBox *view = new QVBox(this); 61 QVBox *view = new QVBox(this);
62 setCentralWidget(view); 62 setCentralWidget(view);
63 63