-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 @@ -5,12 +5,10 @@ CONFIG += qt release # Input HEADERS = exampleplugin.h examplepluginimpl.h examplepluginwidget.h SOURCES = exampleplugin.cpp examplepluginimpl.cpp examplepluginwidget.cpp -INCLUDEPATH += $(OPIEDIR)/include \ - ../ ../library -DEPENDPATH += $(OPIEDIR)/include \ - ../ ../library +INCLUDEPATH += $(OPIEDIR)/include +DEPENDPATH += $(OPIEDIR)/include LIBS+= -lqpe -lopie DESTDIR = $(OPIEDIR)/plugins/today 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,21 +1,10 @@ /* * exampleplugin.cpp * - * copyright : (c) 2002,2003,2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - - #include "exampleplugin.h" ExamplePlugin::ExamplePlugin() { m_widget = 0l; @@ -34,9 +23,9 @@ double ExamplePlugin::versionNumber() const { } // this sets the image that will be shown on the left side of the plugin QString ExamplePlugin::pixmapNameWidget() const { - return "Tux"; + return QString::fromLatin1("Tux"); } QWidget* ExamplePlugin::widget( QWidget * wid ) { if(!m_widget) { @@ -51,15 +40,15 @@ QString ExamplePlugin::pixmapNameConfig() const { return 0l; } // No config widget yet, look at the datebook plugin for an example of that -TodayConfigWidget* ExamplePlugin::configWidget( QWidget* ) { +TodayConfigWidget* ExamplePlugin::configWidget( QWidget* /*parent*/ ) { return 0l; } // add the binary name of the app to launch here QString ExamplePlugin::appName() const { - return ""; + return QString::null; } // if the plugin should be excluded form the refresh cycles that can be set in the today app bool ExamplePlugin::excludeFromRefresh() const { 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,19 +1,10 @@ /* * exampleplugin.h * - * copyright : (c) 2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ #ifndef EXAMPLE_PLUGIN_H #define 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,19 +1,10 @@ /* * examplepluginimpl.cpp * - * copyright : (c) 2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ #include "exampleplugin.h" 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,19 +1,10 @@ /* * examplepluginimpl.h * - * copyright : (c) 2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ #ifndef EXAMPLE_PLUGIN_IMPL_H #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,19 +1,10 @@ /* * examplepluginwidget.cpp * - * copyright : (c) 2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ #include <qpe/config.h> #include <qpe/qcopenvelope_qws.h> @@ -62,9 +53,9 @@ void ExamplePluginWidget::refresh() { } void ExamplePluginWidget::getInfo() { - m_exampleLabel->setText( "Example text" ); + m_exampleLabel->setText( tr("Example text") ); } void ExamplePluginWidget::slotClicked() { getInfo(); 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,19 +1,10 @@ /* * examplepluginwidget.h * - * copyright : (c) 2004 by Maximilian Reiß * email : harlekin@handhelds.org * */ -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ #ifndef EXAMPLE_PLUGIN_WIDGET_H #define EXAMPLE_PLUGIN_WIDGET_H |