author | harlekin <harlekin> | 2003-02-23 14:42:14 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-23 14:42:14 (UTC) |
commit | 15c2cf367bc38c17fb488e6d8be44c148ecfb1bf (patch) (unidiff) | |
tree | d151df2a4a21b49f57f93f79dbfc066d03dce606 | |
parent | 93d5fdc889cd724c1f2938497b6c6460a13be2ba (diff) | |
download | opie-15c2cf367bc38c17fb488e6d8be44c148ecfb1bf.zip opie-15c2cf367bc38c17fb488e6d8be44c148ecfb1bf.tar.gz opie-15c2cf367bc38c17fb488e6d8be44c148ecfb1bf.tar.bz2 |
got rid of not needed includes
6 files changed, 34 insertions, 12 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp index f095478..4e75a13 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.cpp +++ b/core/pim/today/plugins/datebook/datebookplugin.cpp | |||
@@ -1,29 +1,29 @@ | |||
1 | 1 | ||
2 | /* | 2 | /* |
3 | * datebookplugin.cpp | 3 | * datebookplugin.cpp |
4 | * | 4 | * |
5 | * copyright : (c) 2002 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" | 20 | #include "datebookevent.h" |
21 | #include "datebookplugin.h" | 21 | #include "datebookplugin.h" |
22 | #include "datebookpluginconfig.h" | 22 | #include "datebookpluginconfig.h" |
23 | 23 | ||
24 | 24 | ||
25 | DatebookPlugin::DatebookPlugin() { | 25 | DatebookPlugin::DatebookPlugin() { |
26 | } | 26 | } |
27 | 27 | ||
28 | DatebookPlugin::~DatebookPlugin() { | 28 | DatebookPlugin::~DatebookPlugin() { |
29 | delete (DatebookPluginWidget*)m_widget; | 29 | delete (DatebookPluginWidget*)m_widget; |
diff --git a/core/pim/today/plugins/datebook/datebookplugin.h b/core/pim/today/plugins/datebook/datebookplugin.h index eb7a401..db899e8 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.h +++ b/core/pim/today/plugins/datebook/datebookplugin.h | |||
@@ -1,46 +1,44 @@ | |||
1 | /* | 1 | /* |
2 | * datebookplugin.h | 2 | * datebookplugin.h |
3 | * | 3 | * |
4 | * copyright : (c) 2002 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 | #ifndef DATEBOOK_PLUGIN_H | 17 | #ifndef DATEBOOK_PLUGIN_H |
18 | #define DATEBOOK_PLUGIN_H | 18 | #define DATEBOOK_PLUGIN_H |
19 | 19 | ||
20 | #include <qstring.h> | ||
21 | #include <qguardedptr.h> | 20 | #include <qguardedptr.h> |
22 | #include <qwidget.h> | ||
23 | 21 | ||
24 | #include <opie/oclickablelabel.h> | 22 | #include <opie/oclickablelabel.h> |
25 | #include <opie/todayplugininterface.h> | 23 | #include <opie/todayplugininterface.h> |
26 | 24 | ||
27 | #include "datebookpluginwidget.h" | 25 | #include "datebookpluginwidget.h" |
28 | 26 | ||
29 | class DatebookPlugin : public TodayPluginObject { | 27 | class DatebookPlugin : public TodayPluginObject { |
30 | 28 | ||
31 | public: | 29 | public: |
32 | DatebookPlugin(); | 30 | DatebookPlugin(); |
33 | ~DatebookPlugin(); | 31 | ~DatebookPlugin(); |
34 | 32 | ||
35 | QString pluginName() const; | 33 | QString pluginName() const; |
36 | double versionNumber() const; | 34 | double versionNumber() const; |
37 | QString pixmapNameWidget() const; | 35 | QString pixmapNameWidget() const; |
38 | QWidget* widget( QWidget *); | 36 | QWidget* widget( QWidget *); |
39 | QString pixmapNameConfig() const; | 37 | QString pixmapNameConfig() const; |
40 | TodayConfigWidget* configWidget( QWidget *); | 38 | TodayConfigWidget* configWidget( QWidget *); |
41 | QString appName() const; | 39 | QString appName() const; |
42 | bool excludeFromRefresh() const; | 40 | bool excludeFromRefresh() const; |
43 | void refresh(); | 41 | void refresh(); |
44 | 42 | ||
45 | private: | 43 | private: |
46 | QGuardedPtr<DatebookPluginWidget> m_widget; | 44 | QGuardedPtr<DatebookPluginWidget> m_widget; |
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp index 0fc38de..dc6dee9 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp | |||
@@ -1,32 +1,46 @@ | |||
1 | /* | ||
2 | * datebookpluginconfig.cpp | ||
3 | * | ||
4 | * copyright : (c) 2002,2003 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | ||
6 | * | ||
7 | */ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
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 * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
1 | 16 | ||
2 | 17 | ||
3 | #include "datebookpluginconfig.h" | 18 | #include "datebookpluginconfig.h" |
4 | 19 | ||
5 | #include <qpe/config.h> | 20 | #include <qpe/config.h> |
6 | 21 | ||
7 | #include <qlayout.h> | 22 | #include <qlayout.h> |
8 | #include <qtoolbutton.h> | ||
9 | #include <qlabel.h> | 23 | #include <qlabel.h> |
10 | #include <qhbox.h> | 24 | #include <qhbox.h> |
11 | #include <qwhatsthis.h> | 25 | #include <qwhatsthis.h> |
12 | #include <qvbox.h> | 26 | #include <qvbox.h> |
13 | 27 | ||
14 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) | 28 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) |
15 | : TodayConfigWidget( parent, name ) { | 29 | : TodayConfigWidget( parent, name ) { |
16 | 30 | ||
17 | QVBoxLayout * layout = new QVBoxLayout( this ); | 31 | QVBoxLayout * layout = new QVBoxLayout( this ); |
18 | layout->setMargin( 20 ); | 32 | layout->setMargin( 20 ); |
19 | 33 | ||
20 | QHBox *box1 = new QHBox( this ); | 34 | QHBox *box1 = new QHBox( this ); |
21 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); | 35 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); |
22 | TextLabel4->setText( tr( "Show location" ) ); | 36 | TextLabel4->setText( tr( "Show location" ) ); |
23 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); | 37 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); |
24 | QWhatsThis::add( CheckBox1 , tr( "Check this if the location of an appointment should be shown for each one" ) ); | 38 | QWhatsThis::add( CheckBox1 , tr( "Check this if the location of an appointment should be shown for each one" ) ); |
25 | 39 | ||
26 | QHBox *box2 = new QHBox( this ); | 40 | QHBox *box2 = new QHBox( this ); |
27 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); | 41 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); |
28 | TextLabel5->setText( tr( "Show notes" ) ); | 42 | TextLabel5->setText( tr( "Show notes" ) ); |
29 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); | 43 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); |
30 | QWhatsThis::add( CheckBox2 , tr( "Check this if the note attached to an appointment should be shown for each one" ) ); | 44 | QWhatsThis::add( CheckBox2 , tr( "Check this if the note attached to an appointment should be shown for each one" ) ); |
31 | 45 | ||
32 | QHBox *box3 = new QHBox( this ); | 46 | QHBox *box3 = new QHBox( this ); |
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.h b/core/pim/today/plugins/datebook/datebookpluginconfig.h index 6c32ae9..be00aad 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.h +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.h | |||
@@ -1,24 +1,39 @@ | |||
1 | /* | ||
2 | * datebookpluginconfig.h | ||
3 | * | ||
4 | * copyright : (c) 2002,2003 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | ||
6 | * | ||
7 | */ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
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 * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
1 | 16 | ||
2 | #ifndef DATEBOOK_PLUGIN_CONFIG_H | 17 | #ifndef DATEBOOK_PLUGIN_CONFIG_H |
3 | #define DATEBOOK_PLUGIN_CONFIG_H | 18 | #define DATEBOOK_PLUGIN_CONFIG_H |
4 | 19 | ||
5 | 20 | ||
6 | #include <qcheckbox.h> | 21 | #include <qcheckbox.h> |
7 | #include <qspinbox.h> | 22 | #include <qspinbox.h> |
8 | 23 | ||
9 | #include <opie/todayconfigwidget.h> | 24 | #include <opie/todayconfigwidget.h> |
10 | 25 | ||
11 | class DatebookPluginConfig : public TodayConfigWidget { | 26 | class DatebookPluginConfig : public TodayConfigWidget { |
12 | 27 | ||
13 | 28 | ||
14 | 29 | ||
15 | public: | 30 | public: |
16 | DatebookPluginConfig( QWidget *parent, const char *name ); | 31 | DatebookPluginConfig( QWidget *parent, const char *name ); |
17 | ~DatebookPluginConfig(); | 32 | ~DatebookPluginConfig(); |
18 | 33 | ||
19 | void writeConfig(); | 34 | void writeConfig(); |
20 | private: | 35 | private: |
21 | /** | 36 | /** |
22 | * if changed then save | 37 | * if changed then save |
23 | */ | 38 | */ |
24 | bool changed(); | 39 | bool changed(); |
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp index 97fb77e..896d41d 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.cpp | |||
@@ -1,52 +1,49 @@ | |||
1 | /* | 1 | /* |
2 | * datebookpluginwidget.cpp | 2 | * datebookpluginwidget.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 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> | 20 | #include <qpe/timestring.h> |
21 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
22 | 22 | ||
23 | #include <qdatetime.h> | 23 | #include <qdatetime.h> |
24 | #include <qlabel.h> | 24 | #include <qlabel.h> |
25 | #include <qlayout.h> | ||
26 | #include <qtl.h> | 25 | #include <qtl.h> |
27 | #include <qscrollview.h> | ||
28 | #include <qtimer.h> | ||
29 | 26 | ||
30 | DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name ) | 27 | DatebookPluginWidget::DatebookPluginWidget( QWidget *parent, const char* name ) |
31 | : QWidget(parent, name ) { | 28 | : QWidget(parent, name ) { |
32 | 29 | ||
33 | db = 0l; | 30 | db = 0l; |
34 | m_layoutDates = 0l; | 31 | m_layoutDates = 0l; |
35 | 32 | ||
36 | if ( db ) { | 33 | if ( db ) { |
37 | delete db; | 34 | delete db; |
38 | } | 35 | } |
39 | db = new DateBookDB; | 36 | db = new DateBookDB; |
40 | 37 | ||
41 | if ( m_layoutDates ) { | 38 | if ( m_layoutDates ) { |
42 | delete m_layoutDates; | 39 | delete m_layoutDates; |
43 | } | 40 | } |
44 | m_layoutDates = new QVBoxLayout( this ); | 41 | m_layoutDates = new QVBoxLayout( this ); |
45 | m_layoutDates->setAutoAdd( true ); | 42 | m_layoutDates->setAutoAdd( true ); |
46 | 43 | ||
47 | m_eventsList.setAutoDelete( true ); | 44 | m_eventsList.setAutoDelete( true ); |
48 | 45 | ||
49 | readConfig(); | 46 | readConfig(); |
50 | getDates(); | 47 | getDates(); |
51 | } | 48 | } |
52 | 49 | ||
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.h b/core/pim/today/plugins/datebook/datebookpluginwidget.h index e10f059..35d43cd 100644 --- a/core/pim/today/plugins/datebook/datebookpluginwidget.h +++ b/core/pim/today/plugins/datebook/datebookpluginwidget.h | |||
@@ -1,45 +1,43 @@ | |||
1 | /* | 1 | /* |
2 | * datebookpluginwidget.h | 2 | * datebookpluginwidget.h |
3 | * | 3 | * |
4 | * copyright : (c) 2002 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 | #ifndef DATEBOOK_PLUGIN_WIDGET_H | 17 | #ifndef DATEBOOK_PLUGIN_WIDGET_H |
18 | #define DATEBOOK_PLUGIN_WIDGET_H | 18 | #define DATEBOOK_PLUGIN_WIDGET_H |
19 | 19 | ||
20 | #include <qstring.h> | ||
21 | #include <qwidget.h> | ||
22 | #include <qlayout.h> | 20 | #include <qlayout.h> |
23 | #include <qguardedptr.h> | 21 | #include <qguardedptr.h> |
24 | #include <qlist.h> | 22 | #include <qlist.h> |
25 | 23 | ||
26 | #include <qpe/datebookdb.h> | 24 | #include <qpe/datebookdb.h> |
27 | #include <opie/oclickablelabel.h> | 25 | #include <opie/oclickablelabel.h> |
28 | 26 | ||
29 | #include "datebookevent.h" | 27 | #include "datebookevent.h" |
30 | 28 | ||
31 | class DatebookPluginWidget : public QWidget { | 29 | class DatebookPluginWidget : public QWidget { |
32 | 30 | ||
33 | Q_OBJECT | 31 | Q_OBJECT |
34 | 32 | ||
35 | public: | 33 | public: |
36 | DatebookPluginWidget( QWidget *parent, const char *name ); | 34 | DatebookPluginWidget( QWidget *parent, const char *name ); |
37 | ~DatebookPluginWidget(); | 35 | ~DatebookPluginWidget(); |
38 | void refresh(); | 36 | void refresh(); |
39 | 37 | ||
40 | private: | 38 | private: |
41 | DateBookDB* db; | 39 | DateBookDB* db; |
42 | QGuardedPtr<QVBoxLayout> m_layoutDates; | 40 | QGuardedPtr<QVBoxLayout> m_layoutDates; |
43 | QList<QWidget> m_eventsList; | 41 | QList<QWidget> m_eventsList; |
44 | void readConfig(); | 42 | void readConfig(); |
45 | void getDates(); | 43 | void getDates(); |