Bug 162929

Summary: The ability to randomly select images from a set of directories in the frame applet
Product: [Unmaintained] plasma4 Reporter: Justace Clutter <justacec>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A patch to impelment the changes describied

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!
BUG=162929


 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