Bug 162929 - The ability to randomly select images from a set of directories in the frame applet
Summary: The ability to randomly select images from a set of directories in the frame ...
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
Depends on:
Reported: 2008-05-31 02:37 UTC by Justace Clutter
Modified: 2008-06-01 21:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

A patch to impelment the changes describied (14.19 KB, patch)
2008-05-31 02:39 UTC, Justace Clutter

Note You need to log in before you can comment on or make changes to this bug.
Description Justace Clutter 2008-05-31 02:37:55 UTC
Version:           SVN (revision 814641 of kdeplasmoids) (using Devel)
Installed from:    Compiled sources
Compiler:          g++ (GCC) 4.2.4 (Gentoo 4.2.4 p1.0) 
OS:                Linux

If you have slideshow selected in more than one frame applet that uses the same directories then the images are the same every time they update.  It would be better is there was a way to have it randomly select the image to be shown instead.  There should also be an option in the config dialog to track this option
Comment 1 Justace Clutter 2008-05-31 02:39:15 UTC
Created attachment 25021 [details]
A patch to impelment the changes describied
Comment 2 Anne-Marie Mahfouf 2008-06-01 21:36:52 UTC
SVN commit 815436 by annma:

Add a random choice to start with random pictures. Patch from Justace Clutter, thanks a lot!
Just one thing to improve I think is to use a KRandomSequence so you won't have twice the same pic and to ensure that all numbers are picked. What do you think?I just KDEified the std::cout to kDebug() in your patch ;)
Nice contribution!

 M  +95 -51    config.ui  
 M  +10 -0     configdialog.cpp  
 M  +3 -0      configdialog.h  
 M  +5 -0      frame.cpp  
 M  +1 -0      frame.h  
 M  +18 -2     slideshow.cpp  
 M  +4 -0      slideshow.h  

WebSVN link: http://websvn.kde.org/?view=rev&revision=815436