-rw-r--r-- | examples/todayplugin/example.pro | 6 | ||||
-rw-r--r-- | examples/todayplugin/exampleplugin.cpp | 17 | ||||
-rw-r--r-- | examples/todayplugin/exampleplugin.h | 9 | ||||
-rw-r--r-- | examples/todayplugin/examplepluginimpl.cpp | 9 | ||||
-rw-r--r-- | examples/todayplugin/examplepluginimpl.h | 9 | ||||
-rw-r--r-- | examples/todayplugin/examplepluginwidget.cpp | 11 | ||||
-rw-r--r-- | examples/todayplugin/examplepluginwidget.h | 9 |
7 files changed, 6 insertions, 64 deletions
diff --git a/examples/todayplugin/example.pro b/examples/todayplugin/example.pro index 931e056..4c8c942 100644 --- a/examples/todayplugin/example.pro +++ b/examples/todayplugin/example.pro | |||
@@ -6,10 +6,8 @@ CONFIG += qt release | |||
6 | HEADERS = exampleplugin.h examplepluginimpl.h examplepluginwidget.h | 6 | HEADERS = exampleplugin.h examplepluginimpl.h examplepluginwidget.h |
7 | SOURCES = exampleplugin.cpp examplepluginimpl.cpp examplepluginwidget.cpp | 7 | SOURCES = exampleplugin.cpp examplepluginimpl.cpp examplepluginwidget.cpp |
8 | 8 | ||
9 | INCLUDEPATH += $(OPIEDIR)/include \ | 9 | INCLUDEPATH += $(OPIEDIR)/include |
10 | ../ ../library | 10 | DEPENDPATH += $(OPIEDIR)/include |
11 | DEPENDPATH += $(OPIEDIR)/include \ | ||
12 | ../ ../library | ||
13 | 11 | ||
14 | LIBS+= -lqpe -lopie | 12 | LIBS+= -lqpe -lopie |
15 | 13 | ||
diff --git a/examples/todayplugin/exampleplugin.cpp b/examples/todayplugin/exampleplugin.cpp index e5d75df..94a5836 100644 --- a/examples/todayplugin/exampleplugin.cpp +++ b/examples/todayplugin/exampleplugin.cpp | |||
@@ -1,20 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * exampleplugin.cpp | 2 | * exampleplugin.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2002,2003,2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | |||
17 | |||
18 | #include "exampleplugin.h" | 7 | #include "exampleplugin.h" |
19 | 8 | ||
20 | ExamplePlugin::ExamplePlugin() { | 9 | ExamplePlugin::ExamplePlugin() { |
@@ -35,7 +24,7 @@ double ExamplePlugin::versionNumber() const { | |||
35 | 24 | ||
36 | // this sets the image that will be shown on the left side of the plugin | 25 | // this sets the image that will be shown on the left side of the plugin |
37 | QString ExamplePlugin::pixmapNameWidget() const { | 26 | QString ExamplePlugin::pixmapNameWidget() const { |
38 | return "Tux"; | 27 | return QString::fromLatin1("Tux"); |
39 | } | 28 | } |
40 | 29 | ||
41 | QWidget* ExamplePlugin::widget( QWidget * wid ) { | 30 | QWidget* ExamplePlugin::widget( QWidget * wid ) { |
@@ -52,13 +41,13 @@ QString ExamplePlugin::pixmapNameConfig() const { | |||
52 | } | 41 | } |
53 | 42 | ||
54 | // No config widget yet, look at the datebook plugin for an example of that | 43 | // No config widget yet, look at the datebook plugin for an example of that |
55 | TodayConfigWidget* ExamplePlugin::configWidget( QWidget* ) { | 44 | TodayConfigWidget* ExamplePlugin::configWidget( QWidget* /*parent*/ ) { |
56 | return 0l; | 45 | return 0l; |
57 | } | 46 | } |
58 | 47 | ||
59 | // add the binary name of the app to launch here | 48 | // add the binary name of the app to launch here |
60 | QString ExamplePlugin::appName() const { | 49 | QString ExamplePlugin::appName() const { |
61 | return ""; | 50 | return QString::null; |
62 | } | 51 | } |
63 | 52 | ||
64 | // if the plugin should be excluded form the refresh cycles that can be set in the today app | 53 | // if the plugin should be excluded form the refresh cycles that can be set in the today app |
diff --git a/examples/todayplugin/exampleplugin.h b/examples/todayplugin/exampleplugin.h index 0d9f11d..a1df923 100644 --- a/examples/todayplugin/exampleplugin.h +++ b/examples/todayplugin/exampleplugin.h | |||
@@ -1,18 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * exampleplugin.h | 2 | * exampleplugin.h |
3 | * | 3 | * |
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | 7 | ||
17 | 8 | ||
18 | #ifndef EXAMPLE_PLUGIN_H | 9 | #ifndef EXAMPLE_PLUGIN_H |
diff --git a/examples/todayplugin/examplepluginimpl.cpp b/examples/todayplugin/examplepluginimpl.cpp index 9ab6164..69287dc 100644 --- a/examples/todayplugin/examplepluginimpl.cpp +++ b/examples/todayplugin/examplepluginimpl.cpp | |||
@@ -1,18 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * examplepluginimpl.cpp | 2 | * examplepluginimpl.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | 7 | ||
17 | 8 | ||
18 | 9 | ||
diff --git a/examples/todayplugin/examplepluginimpl.h b/examples/todayplugin/examplepluginimpl.h index 2c10583..187d6e8 100644 --- a/examples/todayplugin/examplepluginimpl.h +++ b/examples/todayplugin/examplepluginimpl.h | |||
@@ -1,18 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * examplepluginimpl.h | 2 | * examplepluginimpl.h |
3 | * | 3 | * |
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | 7 | ||
17 | #ifndef EXAMPLE_PLUGIN_IMPL_H | 8 | #ifndef EXAMPLE_PLUGIN_IMPL_H |
18 | #define EXAMPLE_PLUGIN_IMPL_H | 9 | #define EXAMPLE_PLUGIN_IMPL_H |
diff --git a/examples/todayplugin/examplepluginwidget.cpp b/examples/todayplugin/examplepluginwidget.cpp index 14f1020..d66a11a 100644 --- a/examples/todayplugin/examplepluginwidget.cpp +++ b/examples/todayplugin/examplepluginwidget.cpp | |||
@@ -1,18 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * examplepluginwidget.cpp | 2 | * examplepluginwidget.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | 7 | ||
17 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 9 | #include <qpe/qcopenvelope_qws.h> |
@@ -63,7 +54,7 @@ void ExamplePluginWidget::refresh() { | |||
63 | } | 54 | } |
64 | 55 | ||
65 | void ExamplePluginWidget::getInfo() { | 56 | void ExamplePluginWidget::getInfo() { |
66 | m_exampleLabel->setText( "Example text" ); | 57 | m_exampleLabel->setText( tr("Example text") ); |
67 | } | 58 | } |
68 | 59 | ||
69 | void ExamplePluginWidget::slotClicked() { | 60 | void ExamplePluginWidget::slotClicked() { |
diff --git a/examples/todayplugin/examplepluginwidget.h b/examples/todayplugin/examplepluginwidget.h index c94d2cf..eb3c660 100644 --- a/examples/todayplugin/examplepluginwidget.h +++ b/examples/todayplugin/examplepluginwidget.h | |||
@@ -1,18 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * examplepluginwidget.h | 2 | * examplepluginwidget.h |
3 | * | 3 | * |
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
6 | * | 5 | * |
7 | */ | 6 | */ |
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 | ***************************************************************************/ | ||
16 | 7 | ||
17 | #ifndef EXAMPLE_PLUGIN_WIDGET_H | 8 | #ifndef EXAMPLE_PLUGIN_WIDGET_H |
18 | #define EXAMPLE_PLUGIN_WIDGET_H | 9 | #define EXAMPLE_PLUGIN_WIDGET_H |