author | harlekin <harlekin> | 2003-12-08 21:36:54 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-12-08 21:36:54 (UTC) |
commit | 97a9c3426600791b2a25bb744a460be8d40acb85 (patch) (unidiff) | |
tree | 6948e7dfc01a040181cc8678cda0b568cf84818a | |
parent | 6ecac17fdf96f2244af762f303639d8e79b453ff (diff) | |
download | opie-97a9c3426600791b2a25bb744a460be8d40acb85.zip opie-97a9c3426600791b2a25bb744a460be8d40acb85.tar.gz opie-97a9c3426600791b2a25bb744a460be8d40acb85.tar.bz2 |
remove unused includes
-rw-r--r-- | core/pim/today/main.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginconfig.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 8 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookevent.cpp | 2 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookplugin.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginconfig.cpp | 4 | ||||
-rw-r--r-- | core/pim/today/plugins/datebook/datebookpluginwidget.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/todolist/todopluginconfig.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/today.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/todaybase.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/todayconfig.cpp | 3 |
11 files changed, 0 insertions, 28 deletions
diff --git a/core/pim/today/main.cpp b/core/pim/today/main.cpp index 156cd0f..d4ec3ce 100644 --- a/core/pim/today/main.cpp +++ b/core/pim/today/main.cpp | |||
@@ -5,20 +5,19 @@ | |||
5 | * | 5 | * |
6 | * begin : Sun 10 17:20:00 CEST 2002 | 6 | * begin : Sun 10 17:20:00 CEST 2002 |
7 | * copyright : (c) 2002 by Maximilian Reiß | 7 | * copyright : (c) 2002 by Maximilian Reiß |
8 | * email : max.reiss@gmx.de | 8 | * email : max.reiss@gmx.de |
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | /*************************************************************************** | 11 | /*************************************************************************** |
12 | * * | 12 | * * |
13 | * This program is free software; you can redistribute it and/or modify * | 13 | * This program is free software; you can redistribute it and/or modify * |
14 | * it under the terms of the GNU General Public License as published by * | 14 | * it under the terms of the GNU General Public License as published by * |
15 | * the Free Software Foundation; either version 2 of the License, or * | 15 | * the Free Software Foundation; either version 2 of the License, or * |
16 | * (at your option) any later version. * | 16 | * (at your option) any later version. * |
17 | * * | 17 | * * |
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | 19 | ||
20 | #include "today.h" | 20 | #include "today.h" |
21 | #include <qpe/qpeapplication.h> | ||
22 | #include <opie/oapplicationfactory.h> | 21 | #include <opie/oapplicationfactory.h> |
23 | 22 | ||
24 | OPIE_EXPORT_APP( OApplicationFactory<Today> ) | 23 | OPIE_EXPORT_APP( OApplicationFactory<Today> ) |
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp index 8863192..8c55937 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp | |||
@@ -9,33 +9,32 @@ | |||
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "addresspluginconfig.h" | 19 | #include "addresspluginconfig.h" |
20 | 20 | ||
21 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
22 | 22 | ||
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qhbox.h> | 24 | #include <qhbox.h> |
25 | #include <qtoolbutton.h> | ||
26 | #include <qlabel.h> | 25 | #include <qlabel.h> |
27 | #include <qwhatsthis.h> | 26 | #include <qwhatsthis.h> |
28 | #include <qvgroupbox.h> | 27 | #include <qvgroupbox.h> |
29 | 28 | ||
30 | 29 | ||
31 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) | 30 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) |
32 | : TodayConfigWidget(parent, name ) { | 31 | : TodayConfigWidget(parent, name ) { |
33 | 32 | ||
34 | QVBoxLayout * layout = new QVBoxLayout( this ); | 33 | QVBoxLayout * layout = new QVBoxLayout( this ); |
35 | layout->setMargin( 20 ); | 34 | layout->setMargin( 20 ); |
36 | 35 | ||
37 | #if 0 | 36 | #if 0 |
38 | // Informational stuff | 37 | // Informational stuff |
39 | QHBox *box4 = new QHBox( this ); | 38 | QHBox *box4 = new QHBox( this ); |
40 | QLabel* colorLabel = new QLabel( box4, "" ); | 39 | QLabel* colorLabel = new QLabel( box4, "" ); |
41 | colorLabel->setText( tr( "To activate settings: Restart application !" ) ); | 40 | colorLabel->setText( tr( "To activate settings: Restart application !" ) ); |
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index d47bc0b..c8652f3 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -5,42 +5,34 @@ | |||
5 | * email : eilers.stefan@epost.de | 5 | * email : eilers.stefan@epost.de |
6 | * | 6 | * |
7 | * This implementation was derived from the todolist plugin implementation | 7 | * This implementation was derived from the todolist plugin implementation |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "addresspluginwidget.h" | 19 | #include "addresspluginwidget.h" |
20 | 20 | ||
21 | #include <qvaluelist.h> | ||
22 | #include <qtl.h> | ||
23 | #include <qstring.h> | ||
24 | #include <qscrollview.h> | ||
25 | #include <qobject.h> | ||
26 | #include <qdatetime.h> | ||
27 | 21 | ||
28 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
29 | #include <qpe/timestring.h> | ||
30 | #include <qpe/qcopenvelope_qws.h> | ||
31 | 23 | ||
32 | #include <opie/ocontact.h> | 24 | #include <opie/ocontact.h> |
33 | 25 | ||
34 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) | 26 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) |
35 | : QWidget( parent, name ) { | 27 | : QWidget( parent, name ) { |
36 | 28 | ||
37 | addressLabel = 0l; | 29 | addressLabel = 0l; |
38 | m_contactdb = 0l; | 30 | m_contactdb = 0l; |
39 | layoutTodo = 0l; | 31 | layoutTodo = 0l; |
40 | 32 | ||
41 | // Hä ? Nonsense ! (se) | 33 | // Hä ? Nonsense ! (se) |
42 | if ( m_contactdb ) { | 34 | if ( m_contactdb ) { |
43 | delete m_contactdb; | 35 | delete m_contactdb; |
44 | } | 36 | } |
45 | 37 | ||
46 | m_contactdb = new OContactAccess("addressplugin"); | 38 | m_contactdb = new OContactAccess("addressplugin"); |
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index e595047..e19a690 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp | |||
@@ -3,35 +3,33 @@ | |||
3 | * | 3 | * |
4 | * copyright : (c) 2002, 2003 by Maximilian Reiß | 4 | * copyright : (c) 2002, 2003 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "datebookevent.h" | 17 | #include "datebookevent.h" |
18 | #include <qpe/config.h> | 18 | #include <qpe/config.h> |
19 | #include <qpe/timestring.h> | ||
20 | #include <qpe/qcopenvelope_qws.h> | 19 | #include <qpe/qcopenvelope_qws.h> |
21 | #include <qpe/qpeapplication.h> | ||
22 | #include <qpe/calendar.h> | 20 | #include <qpe/calendar.h> |
23 | 21 | ||
24 | #include <opie/odevice.h> | 22 | #include <opie/odevice.h> |
25 | 23 | ||
26 | using namespace Opie; | 24 | using namespace Opie; |
27 | 25 | ||
28 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | 26 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, |
29 | QWidget* parent, | 27 | QWidget* parent, |
30 | bool show_location, | 28 | bool show_location, |
31 | bool show_notes, | 29 | bool show_notes, |
32 | bool timeExtraLine, | 30 | bool timeExtraLine, |
33 | int maxCharClip, | 31 | int maxCharClip, |
34 | const char* name, | 32 | const char* name, |
35 | WFlags fl) : | 33 | WFlags fl) : |
36 | OClickableLabel(parent,name,fl), event(ev) { | 34 | OClickableLabel(parent,name,fl), event(ev) { |
37 | 35 | ||
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp index f77e440..8dfa52f 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.cpp +++ b/core/pim/today/plugins/datebook/datebookplugin.cpp | |||
@@ -4,33 +4,32 @@ | |||
4 | * | 4 | * |
5 | * copyright : (c) 2002,2003 by Maximilian Reiß | 5 | * copyright : (c) 2002,2003 by Maximilian Reiß |
6 | * email : harlekin@handhelds.org | 6 | * email : harlekin@handhelds.org |
7 | * | 7 | * |
8 | */ | 8 | */ |
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | #include "datebookevent.h" | ||
21 | #include "datebookplugin.h" | 20 | #include "datebookplugin.h" |
22 | #include "datebookpluginconfig.h" | 21 | #include "datebookpluginconfig.h" |
23 | 22 | ||
24 | 23 | ||
25 | DatebookPlugin::DatebookPlugin() { | 24 | DatebookPlugin::DatebookPlugin() { |
26 | } | 25 | } |
27 | 26 | ||
28 | DatebookPlugin::~DatebookPlugin() { | 27 | DatebookPlugin::~DatebookPlugin() { |
29 | delete (DatebookPluginWidget*)m_widget; | 28 | delete (DatebookPluginWidget*)m_widget; |
30 | } | 29 | } |
31 | 30 | ||
32 | QString DatebookPlugin::pluginName() const { | 31 | QString DatebookPlugin::pluginName() const { |
33 | return QObject::tr( "Datebook plugin"); | 32 | return QObject::tr( "Datebook plugin"); |
34 | } | 33 | } |
35 | 34 | ||
36 | double DatebookPlugin::versionNumber() const { | 35 | double DatebookPlugin::versionNumber() const { |
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp index 54f820b..8ead40d 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp | |||
@@ -7,36 +7,32 @@ | |||
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | 17 | ||
18 | #include "datebookpluginconfig.h" | 18 | #include "datebookpluginconfig.h" |
19 | 19 | ||
20 | #include <qpe/config.h> | 20 | #include <qpe/config.h> |
21 | 21 | ||
22 | #include <qlayout.h> | 22 | #include <qlayout.h> |
23 | #include <qlabel.h> | ||
24 | #include <qhbox.h> | ||
25 | #include <qwhatsthis.h> | ||
26 | #include <qvbox.h> | ||
27 | 23 | ||
28 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) | 24 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) |
29 | : TodayConfigWidget( parent, name ) { | 25 | : TodayConfigWidget( parent, name ) { |
30 | 26 | ||
31 | QVBoxLayout *layout = new QVBoxLayout( this ); | 27 | QVBoxLayout *layout = new QVBoxLayout( this ); |
32 | 28 | ||
33 | m_gui = new DatebookPluginConfigBase( this ); | 29 | m_gui = new DatebookPluginConfigBase( this ); |
34 | 30 | ||
35 | layout->addWidget( m_gui ); | 31 | layout->addWidget( m_gui ); |
36 | 32 | ||
37 | readConfig(); | 33 | readConfig(); |
38 | } | 34 | } |
39 | 35 | ||
40 | void DatebookPluginConfig::readConfig() { | 36 | void DatebookPluginConfig::readConfig() { |
41 | Config cfg( "todaydatebookplugin" ); | 37 | Config cfg( "todaydatebookplugin" ); |
42 | cfg.setGroup( "config" ); | 38 | cfg.setGroup( "config" ); |
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp index 9e95bcd..1b11d1b 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp | |||
@@ -4,37 +4,34 @@ | |||
4 | * copyright : (c) 2002,2003 by Maximilian Reiß | 4 | * copyright : (c) 2002,2003 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | 17 | ||
18 | #include "datebookpluginwidget.h" | 18 | #include "datebookpluginwidget.h" |
19 | 19 | ||
20 | #include <qpe/timestring.h> | ||
21 | #include <qpe/config.h> | 20 | #include <qpe/config.h> |
22 | 21 | ||
23 | #include <qdatetime.h> | ||
24 | #include <qlabel.h> | ||
25 | #include <qtl.h> | 22 | #include <qtl.h> |
26 | 23 | ||
27 | DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name ) | 24 | DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name ) |
28 | : QWidget(parent, name ) { | 25 | : QWidget(parent, name ) { |
29 | 26 | ||
30 | db = 0l; | 27 | db = 0l; |
31 | m_layoutDates = 0l; | 28 | m_layoutDates = 0l; |
32 | 29 | ||
33 | if ( m_layoutDates ) { | 30 | if ( m_layoutDates ) { |
34 | delete m_layoutDates; | 31 | delete m_layoutDates; |
35 | } | 32 | } |
36 | m_layoutDates = new QVBoxLayout( this ); | 33 | m_layoutDates = new QVBoxLayout( this ); |
37 | m_layoutDates->setAutoAdd( true ); | 34 | m_layoutDates->setAutoAdd( true ); |
38 | 35 | ||
39 | m_eventsList.setAutoDelete( true ); | 36 | m_eventsList.setAutoDelete( true ); |
40 | 37 | ||
diff --git a/core/pim/today/plugins/todolist/todopluginconfig.cpp b/core/pim/today/plugins/todolist/todopluginconfig.cpp index 4821776..76c08a9 100644 --- a/core/pim/today/plugins/todolist/todopluginconfig.cpp +++ b/core/pim/today/plugins/todolist/todopluginconfig.cpp | |||
@@ -6,33 +6,32 @@ | |||
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "todopluginconfig.h" | 17 | #include "todopluginconfig.h" |
18 | 18 | ||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | 20 | ||
21 | #include <qlayout.h> | 21 | #include <qlayout.h> |
22 | #include <qwhatsthis.h> | ||
23 | 22 | ||
24 | 23 | ||
25 | TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) | 24 | TodolistPluginConfig::TodolistPluginConfig( QWidget *parent, const char* name) |
26 | : TodayConfigWidget(parent, name ) { | 25 | : TodayConfigWidget(parent, name ) { |
27 | 26 | ||
28 | QVBoxLayout * layout = new QVBoxLayout( this ); | 27 | QVBoxLayout * layout = new QVBoxLayout( this ); |
29 | 28 | ||
30 | m_gui = new TodoPluginConfigBase( this ); | 29 | m_gui = new TodoPluginConfigBase( this ); |
31 | 30 | ||
32 | layout->addWidget( m_gui ); | 31 | layout->addWidget( m_gui ); |
33 | 32 | ||
34 | readConfig(); | 33 | readConfig(); |
35 | } | 34 | } |
36 | 35 | ||
37 | void TodolistPluginConfig::readConfig() { | 36 | void TodolistPluginConfig::readConfig() { |
38 | Config cfg( "todaytodoplugin" ); | 37 | Config cfg( "todaytodoplugin" ); |
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index d4a0ae6..2e7e1a8 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -13,39 +13,36 @@ | |||
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | 17 | ||
18 | 18 | ||
19 | #define QTOPIA_INTERNAL_LANGLIST | 19 | #define QTOPIA_INTERNAL_LANGLIST |
20 | 20 | ||
21 | #include "today.h" | 21 | #include "today.h" |
22 | 22 | ||
23 | #include <qpe/config.h> | 23 | #include <qpe/config.h> |
24 | #include <qpe/qcopenvelope_qws.h> | 24 | #include <qpe/qcopenvelope_qws.h> |
25 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
26 | #include <qpe/global.h> | 26 | #include <qpe/global.h> |
27 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
28 | #include <qpe/contact.h> | 28 | #include <qpe/contact.h> |
29 | #include <qpe/timestring.h> | ||
30 | 29 | ||
31 | #include <qdir.h> | 30 | #include <qdir.h> |
32 | #include <qfile.h> | ||
33 | #include <qtimer.h> | 31 | #include <qtimer.h> |
34 | #include <qwhatsthis.h> | 32 | #include <qwhatsthis.h> |
35 | #include <qtranslator.h> | ||
36 | 33 | ||
37 | struct TodayPlugin { | 34 | struct TodayPlugin { |
38 | TodayPlugin() : library( 0 ), iface( 0 ), guiPart( 0 ), guiBox( 0 ) {} | 35 | TodayPlugin() : library( 0 ), iface( 0 ), guiPart( 0 ), guiBox( 0 ) {} |
39 | QLibrary *library; | 36 | QLibrary *library; |
40 | QInterfacePtr<TodayPluginInterface> iface; | 37 | QInterfacePtr<TodayPluginInterface> iface; |
41 | TodayPluginObject *guiPart; | 38 | TodayPluginObject *guiPart; |
42 | QWidget *guiBox; | 39 | QWidget *guiBox; |
43 | QString name; | 40 | QString name; |
44 | bool active; | 41 | bool active; |
45 | bool excludeRefresh; | 42 | bool excludeRefresh; |
46 | int pos; | 43 | int pos; |
47 | }; | 44 | }; |
48 | 45 | ||
49 | static QValueList<TodayPlugin> pluginList; | 46 | static QValueList<TodayPlugin> pluginList; |
50 | 47 | ||
51 | static QMap<QString, TodayPlugin> tempList; | 48 | static QMap<QString, TodayPlugin> tempList; |
diff --git a/core/pim/today/todaybase.cpp b/core/pim/today/todaybase.cpp index feb9a84..f2958ad 100644 --- a/core/pim/today/todaybase.cpp +++ b/core/pim/today/todaybase.cpp | |||
@@ -4,33 +4,32 @@ | |||
4 | * copyright : (c) 2002, 2003 by Maximilian Reiß | 4 | * copyright : (c) 2002, 2003 by Maximilian Reiß |
5 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
6 | * | 6 | * |
7 | */ | 7 | */ |
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "todaybase.h" | 17 | #include "todaybase.h" |
18 | 18 | ||
19 | #include <qvbox.h> | 19 | #include <qvbox.h> |
20 | #include <qlabel.h> | ||
21 | #include <qwhatsthis.h> | 20 | #include <qwhatsthis.h> |
22 | 21 | ||
23 | #include <qpe/resource.h> | 22 | #include <qpe/resource.h> |
24 | 23 | ||
25 | 24 | ||
26 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) | 25 | TodayBase::TodayBase( QWidget* parent, const char* name, WFlags ) |
27 | : QWidget( parent, name, WStyle_ContextHelp ) { | 26 | : QWidget( parent, name, WStyle_ContextHelp ) { |
28 | 27 | ||
29 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo | 28 | QPixmap logo = Resource::loadPixmap( "today/today_logo"); // logo |
30 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla | 29 | QPixmap opiezilla = Resource::loadPixmap("today/opiezilla" ); //the opiezilla |
31 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon | 30 | QPixmap config = Resource::loadPixmap( "SettingsIcon" ); // config icon |
32 | 31 | ||
33 | layout = 0L; | 32 | layout = 0L; |
34 | 33 | ||
35 | QPalette pal = this->palette(); | 34 | QPalette pal = this->palette(); |
36 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); | 35 | QColor col = pal.color( QPalette::Active, QColorGroup::Background ); |
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp index bfb5ec6..e71c5b0 100644 --- a/core/pim/today/todayconfig.cpp +++ b/core/pim/today/todayconfig.cpp | |||
@@ -10,39 +10,36 @@ | |||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #include "todayconfig.h" | 17 | #include "todayconfig.h" |
18 | 18 | ||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #include <qpe/resource.h> | 20 | #include <qpe/resource.h> |
21 | #include <qpe/qcopenvelope_qws.h> | 21 | #include <qpe/qcopenvelope_qws.h> |
22 | 22 | ||
23 | #include <qcheckbox.h> | 23 | #include <qcheckbox.h> |
24 | #include <qlabel.h> | 24 | #include <qlabel.h> |
25 | #include <qspinbox.h> | 25 | #include <qspinbox.h> |
26 | #include <qtabwidget.h> | ||
27 | #include <qlayout.h> | 26 | #include <qlayout.h> |
28 | #include <qheader.h> | 27 | #include <qheader.h> |
29 | #include <qhbox.h> | ||
30 | #include <qvbox.h> | 28 | #include <qvbox.h> |
31 | #include <qtoolbutton.h> | 29 | #include <qtoolbutton.h> |
32 | #include <qtooltip.h> | ||
33 | #include <qwhatsthis.h> | 30 | #include <qwhatsthis.h> |
34 | 31 | ||
35 | class ToolButton : public QToolButton { | 32 | class ToolButton : public QToolButton { |
36 | 33 | ||
37 | public: | 34 | public: |
38 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) | 35 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) |
39 | : QToolButton( parent, name ) { | 36 | : QToolButton( parent, name ) { |
40 | setPixmap( Resource::loadPixmap( icon ) ); | 37 | setPixmap( Resource::loadPixmap( icon ) ); |
41 | setAutoRaise( TRUE ); | 38 | setAutoRaise( TRUE ); |
42 | setFocusPolicy( QWidget::NoFocus ); | 39 | setFocusPolicy( QWidget::NoFocus ); |
43 | setToggleButton( t ); | 40 | setToggleButton( t ); |
44 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); | 41 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); |
45 | } | 42 | } |
46 | }; | 43 | }; |
47 | 44 | ||
48 | 45 | ||