
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A plasmoid that displays photo of the day from various websites.
10 years ago
Version 2.1.1
- Fixed earthshots engine.
- German translation updated ( thanks to Daniel Schemala )
Version 2.1
- Slide show
- www.bonjourmadame.fr provider by Yann Nave(yannux)
- French translation by Yann Nave(yannux)
- German translation by Daniel Schemala
Version 2.0
- Too many changes :) Requires KDE 4.4
Version 1.2
- Added Wikipedia data engine. Thanks to t3ddy. Only Latin languages are supported due to problems with nonlatin characters in KUrl :(
- Parsing of National Geographic page is modified to match new design of the web page
- Added possibility for translations.
Version 1.1
- Added smooth transition between photos. They smoothly fade in and fade out and adjust their sizes.
- Added info dialog for data engines
- Added two new data engines: Steve`s digicams and Astronomy Picture of the day
Version 1.0 beta
- Full rework of applet painting
- Now applet uses data engines to receive photos. Applet - data engine communication is through standart Plasma API function, so I think it is possible a data engine to be written in any supported by Plasma language. (If someone is interested, please send me a e-mail or write a comment)
- Error messages are drawn as part of image and disappear in 10 seconds.
- Customizable check for new photo interval.
Version 0.6
- Add smooth transition between photos
Lot of code has been rewritten so please let me know if you detect regressions or bugs.
Version 0.5.2
-Fix all(I hope) compilation problems with KDE 4.2
Version 0.5.1
-Fix compilation on KDE 4.2
Version 0.5
- Added fully configurable photo`s frame, shadow and rounded corners (thanks to Frame plasmoid team)
-Tooltips with information about photo (location, photograph and description)
Version 0.2
-Fixed network detection problems
-Check if photo changed on every one hour
-In case of failure try to load previously saved photo
10 years ago
Version 2.1.1
- Fixed earthshots engine.
- German translation updated ( thanks to Daniel Schemala )
Version 2.1
- Slide show
- www.bonjourmadame.fr provider by Yann Nave(yannux)
- French translation by Yann Nave(yannux)
- German translation by Daniel Schemala
Version 2.0
- Too many changes :) Requires KDE 4.4
Version 1.2
- Added Wikipedia data engine. Thanks to t3ddy. Only Latin languages are supported due to problems with nonlatin characters in KUrl :(
- Parsing of National Geographic page is modified to match new design of the web page
- Added possibility for translations.
Version 1.1
- Added smooth transition between photos. They smoothly fade in and fade out and adjust their sizes.
- Added info dialog for data engines
- Added two new data engines: Steve`s digicams and Astronomy Picture of the day
Version 1.0 beta
- Full rework of applet painting
- Now applet uses data engines to receive photos. Applet - data engine communication is through standart Plasma API function, so I think it is possible a data engine to be written in any supported by Plasma language. (If someone is interested, please send me a e-mail or write a comment)
- Error messages are drawn as part of image and disappear in 10 seconds.
- Customizable check for new photo interval.
Version 0.6
- Add smooth transition between photos
Lot of code has been rewritten so please let me know if you detect regressions or bugs.
Version 0.5.2
-Fix all(I hope) compilation problems with KDE 4.2
Version 0.5.1
-Fix compilation on KDE 4.2
Version 0.5
- Added fully configurable photo`s frame, shadow and rounded corners (thanks to Frame plasmoid team)
-Tooltips with information about photo (location, photograph and description)
Version 0.2
-Fixed network detection problems
-Check if photo changed on every one hour
-In case of failure try to load previously saved photo
HardinComp
8 years ago
Report
Skool182
8 years ago
Copy/pastle into a BonjourMadame.patch on the potd dir, and use patch < BonjourMadame.patch
It's possible that it will ask you the file to patch, just enter "providers/BonjourMadame.cpp"
and run make / make install on the build directory.
Quote:
--- providers/BonjourMadame.cpp 2012-10-15 20:10:40.219368710 +0200
+++ providers/BonjourMadame.cpp 2012-10-15 20:12:51.243372722 +0200
@@ -103,7 +103,7 @@
void BonjourMadame::parseMainPage(QByteArray source)
{
- int photoTagStart = source.indexOf("<div class=\"photo\">") + (int)strlen("<div class=\"photo\">");
+ int photoTagStart = source.indexOf("<div class=\"photo-panel\">") + (int)strlen("<div class=\"photo-panel\">");
int imgStart = source.indexOf("<img src=\"", photoTagStart) + (int)strlen("<img src=\"");
int imgEnd = source.indexOf("\"", imgStart);
@@ -128,7 +128,7 @@
m_OldUrl = newUrl;
// get photographer
- int photographerStart = source.indexOf("<div class=\"caption\">") + (int)strlen("<div class=\"caption\">");
+ int photographerStart = source.indexOf("<div class=\"copy\">") + (int)strlen("<div class=\"copy\">");
int photographerEnd = source.indexOf("</div>", photographerStart);
QString photographer = QString::fromUtf8(source.mid(photographerStart, photographerEnd - photographerStart).trimmed());
Report
HardinComp
8 years ago
$ patch < BonjourMadame.patch
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|
|--- providers/BonjourMadame.cpp 2012-10-15 20:10:40.219368710 +0200
|+++ providers/BonjourMadame.cpp 2012-10-15 20:12:51.243372722 +0200
--------------------------
File to patch: providers/BonjourMadame.cpp
patching file providers/BonjourMadame.cpp
patch: **** malformed patch at line 6: void BonjourMadame::parseMainPage(QByteArray source)
$
Report
Skool182
8 years ago
I know that my patch file is not clean, but I'm not remembering how to make proprely a patch file.
I will search the correct method to do that.
Report
HardinComp
8 years ago
Report
Skool182
8 years ago
- download and untar the archive
- download the patch : http://skool.blasters.fr/BonjourMadame.patch
- goto the v2.1.1 directory
- apply patch with "patch -p1 < /path/to/BonjourMadame.patch"
- apply the Readme.txt procedure to compile and install
Maybe in your case, KDE use the old version of the build. Maybe try a "make uninstall" for removing the old version.
Report
Skool182
8 years ago
Report
Skool182
8 years ago
- download and untar the archive
- download the patch : http://skool.blasters.fr/BonjourMadame.patch
- goto the v2.1.1 directory
- apply patch with "patch -p1 < /path/to/BonjourMadame.patch"
- apply the Readme.txt procedure to compile and install
Maybe in your case, KDE use the old version of the build. Maybe try a "make uninstall" for removing the old version.
Report
HardinComp
8 years ago
Report
HardinComp
8 years ago
Report
HardinComp
8 years ago
Report
oOSplashOo
8 years ago
Report
taskstruct
8 years ago
Yes. I am implementing this functionality. I hope it will be ready in a month :)
Report
aseigo
9 years ago
if you're interested in collaborating along these lines, email me! :) aseigo at kde.org
Report
HardinComp
9 years ago
Report
taskstruct
9 years ago
you can remove any of image providers by editing providers/CMakeList.txt There is a section for every provider. Just remove/comment it and rebuild.
Report
HardinComp
9 years ago
Report
HardinComp
9 years ago
Report
MisterSir
9 years ago
I don't know how Qt works, but I wonder if there's a bug in this code in potd.cpp:
// Respect the smooth-scaling setting
p->setRenderHint(QPainter::SmoothPixmapTransform, m_smoothScaling);
// draw our pixmap into the computed rectangle
Qt::TransformationMode trMode = m_smoothScaling ? Qt::SmoothTransformation : Qt::FastTransformation;
// get photo
QPixmap pm;
if ( false == m_bAnimating )
{
pm = m_pPhoto->scaled( drawingRect.size().toSize(), Qt::KeepAspectRatio, trMode );
}
else
{
QPixmap from = m_pOldPhoto->scaled( drawingRect.size().toSize(), Qt::IgnoreAspectRatio, Qt::FastTransformation );
QPixmap to = m_pPhoto->scaled( drawingRect.size().toSize(), Qt::IgnoreAspectRatio, Qt::FastTransformation );
pm = Plasma::PaintUtils::transition( from, to, m_transtionOpacity );
}
p->drawPixmap(drawingRect.toRect(), pm);
p->restore();
p->setRenderHint(QPainter::SmoothPixmapTransform, true);
Report
yannux
10 years ago
Warning : it's for kde 4.5.1
Report
yannux
10 years ago
Do you know how to make plasmoid package ?
Report
taskstruct
10 years ago
Report
linuxlex
10 years ago
Report
taskstruct
10 years ago
I`ve updated German translation of source archive. Many thanks to Daniel Schemala, who made translation :)
Report
Phobeus
10 years ago
32bit will follow after the official release of F13.
Report