6 files changed, 6 insertions, 15 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp index d2a73df..9800e61 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.cpp +++ b/core/pim/today/plugins/datebook/datebookplugin.cpp | |||
@@ -1,73 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | * datebookplugin.cpp | 2 | * datebookplugin.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 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 | 18 | ||
19 | #include "datebookevent.h" | 19 | #include "datebookevent.h" |
20 | #include "datebookplugin.h" | 20 | #include "datebookplugin.h" |
21 | #include "datebookpluginwidget.h" | 21 | #include "datebookpluginwidget.h" |
22 | #include "datebookpluginconfig.h" | 22 | #include "datebookpluginconfig.h" |
23 | 23 | ||
24 | #include "../../configwidget.h" | ||
25 | |||
26 | #include <qpe/timestring.h> | ||
27 | #include <qpe/config.h> | ||
28 | |||
29 | 24 | ||
30 | DatebookPlugin::DatebookPlugin() { | 25 | DatebookPlugin::DatebookPlugin() { |
31 | } | 26 | } |
32 | 27 | ||
33 | DatebookPlugin::~DatebookPlugin() { | 28 | DatebookPlugin::~DatebookPlugin() { |
34 | } | 29 | } |
35 | 30 | ||
36 | QString DatebookPlugin::pluginName() const { | 31 | QString DatebookPlugin::pluginName() const { |
37 | return "Datebook plugin"; | 32 | return "Datebook plugin"; |
38 | } | 33 | } |
39 | 34 | ||
40 | double DatebookPlugin::versionNumber() const { | 35 | double DatebookPlugin::versionNumber() const { |
41 | return 0.1; | 36 | return 0.1; |
42 | } | 37 | } |
43 | 38 | ||
44 | QString DatebookPlugin::pixmapNameWidget() const { | 39 | QString DatebookPlugin::pixmapNameWidget() const { |
45 | return "DateBook"; | 40 | return "DateBook"; |
46 | } | 41 | } |
47 | 42 | ||
48 | QWidget* DatebookPlugin::widget( QWidget* wid ) { | 43 | QWidget* DatebookPlugin::widget( QWidget* wid ) { |
49 | return new DatebookPluginWidget( wid, "Datebook" ); | 44 | return new DatebookPluginWidget( wid, "Datebook" ); |
50 | } | 45 | } |
51 | 46 | ||
52 | QString DatebookPlugin::pixmapNameConfig() const { | 47 | QString DatebookPlugin::pixmapNameConfig() const { |
53 | return "DateBook"; | 48 | return "DateBook"; |
54 | } | 49 | } |
55 | 50 | ||
56 | ConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { | 51 | ConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { |
57 | return new DatebookPluginConfig( wid , "Datebook" ); | 52 | return new DatebookPluginConfig( wid , "Datebook" ); |
58 | } | 53 | } |
59 | 54 | ||
60 | QString DatebookPlugin::appName() const { | 55 | QString DatebookPlugin::appName() const { |
61 | return "datebook"; | 56 | return "datebook"; |
62 | } | 57 | } |
63 | 58 | ||
64 | int DatebookPlugin::minHeight() const { | 59 | int DatebookPlugin::minHeight() const { |
65 | return 10; | 60 | return 10; |
66 | } | 61 | } |
67 | 62 | ||
68 | int DatebookPlugin::maxHeight() const { | 63 | int DatebookPlugin::maxHeight() const { |
69 | return 100; | 64 | return 100; |
70 | } | 65 | } |
71 | 66 | ||
72 | 67 | ||
73 | 68 | int main() { | |
69 | } | ||
diff --git a/core/pim/today/plugins/datebook/datebookplugin.h b/core/pim/today/plugins/datebook/datebookplugin.h index f2c4446..61dc9f3 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.h +++ b/core/pim/today/plugins/datebook/datebookplugin.h | |||
@@ -1,47 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * datebookplugin.h | 2 | * datebookplugin.h |
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 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> | 20 | #include <qstring.h> |
21 | #include <qwidget.h> | 21 | #include <qwidget.h> |
22 | 22 | ||
23 | #include <qpe/datebookdb.h> | ||
24 | #include <opie/oclickablelabel.h> | 23 | #include <opie/oclickablelabel.h> |
25 | 24 | ||
26 | #include "../../todayplugininterface.h" | 25 | #include "../../todayplugininterface.h" |
27 | 26 | ||
28 | class DatebookPlugin : public TodayPluginObject { | 27 | class DatebookPlugin : public TodayPluginObject { |
29 | 28 | ||
30 | public: | 29 | public: |
31 | DatebookPlugin(); | 30 | DatebookPlugin(); |
32 | ~DatebookPlugin(); | 31 | ~DatebookPlugin(); |
33 | 32 | ||
34 | QString pluginName() const; | 33 | QString pluginName() const; |
35 | double versionNumber() const; | 34 | double versionNumber() const; |
36 | QString pixmapNameWidget() const; | 35 | QString pixmapNameWidget() const; |
37 | QWidget* widget( QWidget *); | 36 | QWidget* widget( QWidget *); |
38 | QString pixmapNameConfig() const; | 37 | QString pixmapNameConfig() const; |
39 | ConfigWidget* configWidget( QWidget *); | 38 | ConfigWidget* configWidget( QWidget *); |
40 | QString appName() const; | 39 | QString appName() const; |
41 | virtual int minHeight() const; | 40 | virtual int minHeight() const; |
42 | virtual int maxHeight() const; | 41 | virtual int maxHeight() const; |
43 | 42 | ||
44 | }; | 43 | }; |
45 | 44 | ||
46 | 45 | ||
47 | #endif | 46 | #endif |
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp index 7482f5e..51be40e 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.cpp +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.cpp | |||
@@ -1,39 +1,38 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | #include "datebookpluginconfig.h" | 3 | #include "datebookpluginconfig.h" |
4 | 4 | ||
5 | |||
6 | #include <qpe/config.h> | 5 | #include <qpe/config.h> |
7 | 6 | ||
8 | #include <qlayout.h> | 7 | #include <qlayout.h> |
9 | #include <qtoolbutton.h> | 8 | #include <qtoolbutton.h> |
10 | #include <qlabel.h> | 9 | #include <qlabel.h> |
11 | #include <qhbox.h> | 10 | #include <qhbox.h> |
12 | #include <qvbox.h> | 11 | #include <qvbox.h> |
13 | 12 | ||
14 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) | 13 | DatebookPluginConfig::DatebookPluginConfig( QWidget* parent, const char* name) |
15 | : ConfigWidget( parent, name ) { | 14 | : ConfigWidget( parent, name ) { |
16 | 15 | ||
17 | QVBoxLayout * layout = new QVBoxLayout( this ); | 16 | QVBoxLayout * layout = new QVBoxLayout( this ); |
18 | 17 | ||
19 | QHBox *box1 = new QHBox( this ); | 18 | QHBox *box1 = new QHBox( this ); |
20 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); | 19 | QLabel* TextLabel4 = new QLabel( box1, "TextLabel4" ); |
21 | TextLabel4->setText( tr( "Show location" ) ); | 20 | TextLabel4->setText( tr( "Show location" ) ); |
22 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); | 21 | CheckBox1 = new QCheckBox( box1, "CheckBox1" ); |
23 | 22 | ||
24 | QHBox *box2 = new QHBox( this ); | 23 | QHBox *box2 = new QHBox( this ); |
25 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); | 24 | QLabel* TextLabel5 = new QLabel( box2 , "TextLabel5" ); |
26 | TextLabel5->setText( tr( "Show notes" ) ); | 25 | TextLabel5->setText( tr( "Show notes" ) ); |
27 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); | 26 | CheckBox2 = new QCheckBox( box2, "CheckBox2" ); |
28 | 27 | ||
29 | QHBox *box3 = new QHBox( this ); | 28 | QHBox *box3 = new QHBox( this ); |
30 | QLabel* TextLabel6 = new QLabel( box3, "All Day"); | 29 | QLabel* TextLabel6 = new QLabel( box3, "All Day"); |
31 | TextLabel6->setText( tr( "Show only later\n" | 30 | TextLabel6->setText( tr( "Show only later\n" |
32 | "appointments") ); | 31 | "appointments") ); |
33 | CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); | 32 | CheckBox3 = new QCheckBox ( box3, "CheckBox3" ); |
34 | 33 | ||
35 | QHBox *box4 = new QHBox( this ); | 34 | QHBox *box4 = new QHBox( this ); |
36 | QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); | 35 | QLabel *TextLabel3 = new QLabel( box4, "TextLabel3" ); |
37 | TextLabel3->setText( tr( "How many \nappointment\n" | 36 | TextLabel3->setText( tr( "How many \nappointment\n" |
38 | "should be \nshown?" ) ); | 37 | "should be \nshown?" ) ); |
39 | SpinBox1 = new QSpinBox( box4, "SpinBox1" ); | 38 | SpinBox1 = new QSpinBox( box4, "SpinBox1" ); |
diff --git a/core/pim/today/plugins/datebook/datebookpluginconfig.h b/core/pim/today/plugins/datebook/datebookpluginconfig.h index 33d3c4e..9505a2d 100644 --- a/core/pim/today/plugins/datebook/datebookpluginconfig.h +++ b/core/pim/today/plugins/datebook/datebookpluginconfig.h | |||
@@ -1,41 +1,41 @@ | |||
1 | 1 | ||
2 | #ifndef DATEBOOK_PLUGIN_CONFIG_H | 2 | #ifndef DATEBOOK_PLUGIN_CONFIG_H |
3 | #define DATEBOOK_PLUGIN_CONFIG_H | 3 | #define DATEBOOK_PLUGIN_CONFIG_H |
4 | 4 | ||
5 | #include <qwidget.h> | 5 | //#include <qwidget.h> |
6 | #include <qcheckbox.h> | 6 | #include <qcheckbox.h> |
7 | #include <qspinbox.h> | 7 | #include <qspinbox.h> |
8 | 8 | ||
9 | #include "../../configwidget.h" | 9 | #include "../../configwidget.h" |
10 | 10 | ||
11 | class DatebookPluginConfig : public ConfigWidget { | 11 | class DatebookPluginConfig : public ConfigWidget { |
12 | 12 | ||
13 | Q_OBJECT | 13 | |
14 | 14 | ||
15 | public: | 15 | public: |
16 | DatebookPluginConfig( QWidget *parent, const char *name ); | 16 | DatebookPluginConfig( QWidget *parent, const char *name ); |
17 | ~DatebookPluginConfig(); | 17 | ~DatebookPluginConfig(); |
18 | 18 | ||
19 | void writeConfig(); | 19 | void writeConfig(); |
20 | private: | 20 | private: |
21 | /** | 21 | /** |
22 | * if changed then save | 22 | * if changed then save |
23 | */ | 23 | */ |
24 | bool changed(); | 24 | bool changed(); |
25 | void readConfig(); | 25 | void readConfig(); |
26 | 26 | ||
27 | QCheckBox* CheckBox2; | 27 | QCheckBox* CheckBox2; |
28 | QCheckBox* CheckBox1; | 28 | QCheckBox* CheckBox1; |
29 | QCheckBox* CheckBox3; | 29 | QCheckBox* CheckBox3; |
30 | QSpinBox* SpinBox1; | 30 | QSpinBox* SpinBox1; |
31 | 31 | ||
32 | // how many lines should be showed in the datebook section | 32 | // how many lines should be showed in the datebook section |
33 | int m_max_lines_meet; | 33 | int m_max_lines_meet; |
34 | // If location is to be showed too, 1 to activate it. | 34 | // If location is to be showed too, 1 to activate it. |
35 | int m_show_location; | 35 | int m_show_location; |
36 | // if notes should be shown | 36 | // if notes should be shown |
37 | int m_show_notes; | 37 | int m_show_notes; |
38 | // should only later appointments be shown or all for the current day. | 38 | // should only later appointments be shown or all for the current day. |
39 | int m_only_later; | 39 | int m_only_later; |
40 | 40 | ||
41 | 41 | ||
diff --git a/core/pim/today/plugins/todolist/todoplugin.h b/core/pim/today/plugins/todolist/todoplugin.h index 77889d6..7e5006f 100644 --- a/core/pim/today/plugins/todolist/todoplugin.h +++ b/core/pim/today/plugins/todolist/todoplugin.h | |||
@@ -3,45 +3,43 @@ | |||
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 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 TODOLIST_PLUGIN_H | 17 | #ifndef TODOLIST_PLUGIN_H |
18 | #define TODOLIST_PLUGIN_H | 18 | #define TODOLIST_PLUGIN_H |
19 | 19 | ||
20 | #include <qstring.h> | 20 | #include <qstring.h> |
21 | #include <qwidget.h> | 21 | #include <qwidget.h> |
22 | 22 | ||
23 | #include <opie/tododb.h> | 23 | #include <opie/tododb.h> |
24 | #include <opie/oclickablelabel.h> | 24 | #include <opie/oclickablelabel.h> |
25 | 25 | ||
26 | #include "../../todayplugininterface.h" | 26 | #include "../../todayplugininterface.h" |
27 | #include "../../configwidget.h" | ||
28 | 27 | ||
29 | class TodolistPlugin : public TodayPluginObject { | 28 | class TodolistPlugin : public TodayPluginObject { |
30 | 29 | ||
31 | |||
32 | public: | 30 | public: |
33 | TodolistPlugin(); | 31 | TodolistPlugin(); |
34 | ~TodolistPlugin(); | 32 | ~TodolistPlugin(); |
35 | 33 | ||
36 | QString pluginName() const; | 34 | QString pluginName() const; |
37 | double versionNumber() const; | 35 | double versionNumber() const; |
38 | QString pixmapNameWidget() const; | 36 | QString pixmapNameWidget() const; |
39 | QWidget* widget(QWidget *); | 37 | QWidget* widget(QWidget *); |
40 | QString pixmapNameConfig() const; | 38 | QString pixmapNameConfig() const; |
41 | ConfigWidget* configWidget(QWidget *); | 39 | ConfigWidget* configWidget(QWidget *); |
42 | QString appName() const; | 40 | QString appName() const; |
43 | virtual int minHeight() const; | 41 | virtual int minHeight() const; |
44 | virtual int maxHeight() const; | 42 | virtual int maxHeight() const; |
45 | }; | 43 | }; |
46 | 44 | ||
47 | #endif | 45 | #endif |
diff --git a/core/pim/today/plugins/todolist/todopluginconfig.h b/core/pim/today/plugins/todolist/todopluginconfig.h index a46cc7c..6be4b1e 100644 --- a/core/pim/today/plugins/todolist/todopluginconfig.h +++ b/core/pim/today/plugins/todolist/todopluginconfig.h | |||
@@ -3,49 +3,48 @@ | |||
3 | * | 3 | * |
4 | * copyright : (c) 2002 by Maximilian Reiß | 4 | * copyright : (c) 2002 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 TODOLIST_PLUGIN_CONFIG_H | 17 | #ifndef TODOLIST_PLUGIN_CONFIG_H |
18 | #define TODOLIST_PLUGIN_CONFIG_H | 18 | #define TODOLIST_PLUGIN_CONFIG_H |
19 | 19 | ||
20 | #include <qwidget.h> | 20 | #include <qwidget.h> |
21 | #include <qspinbox.h> | 21 | #include <qspinbox.h> |
22 | 22 | ||
23 | #include "../../configwidget.h" | 23 | #include "../../configwidget.h" |
24 | 24 | ||
25 | class TodolistPluginConfig : public ConfigWidget { | 25 | class TodolistPluginConfig : public ConfigWidget { |
26 | 26 | ||
27 | Q_OBJECT | ||
28 | 27 | ||
29 | public: | 28 | public: |
30 | 29 | ||
31 | TodolistPluginConfig( QWidget *parent, const char *name ); | 30 | TodolistPluginConfig( QWidget *parent, const char *name ); |
32 | ~TodolistPluginConfig(); | 31 | ~TodolistPluginConfig(); |
33 | 32 | ||
34 | private: | 33 | private: |
35 | /** | 34 | /** |
36 | * if changed then save | 35 | * if changed then save |
37 | */ | 36 | */ |
38 | bool changed(); | 37 | bool changed(); |
39 | void readConfig(); | 38 | void readConfig(); |
40 | void writeConfig(); | 39 | void writeConfig(); |
41 | 40 | ||
42 | QSpinBox* SpinBox2; | 41 | QSpinBox* SpinBox2; |
43 | 42 | ||
44 | // how many lines should be showed in the todolist section | 43 | // how many lines should be showed in the todolist section |
45 | int m_max_lines_task; | 44 | int m_max_lines_task; |
46 | 45 | ||
47 | 46 | ||
48 | 47 | ||
49 | }; | 48 | }; |
50 | 49 | ||
51 | 50 | ||