Commit Graph

57 Commits

Author SHA1 Message Date
Andreas Hartmetz
c9529c5563 Plasma Wallpaper: Fix targetSize updating logic.
As discussed with Aaron a few weeks ago on IRC.
2011-05-09 14:17:06 +02:00
Aaron Seigo
b0ef0e7991 wallpaper thrading simplifications 2011-04-30 17:17:44 +02:00
Aaron Seigo
cd8025f605 minor style fix 2011-04-30 13:29:26 +02:00
Aaron Seigo
aa2c6b7683 more api niceness 2011-04-30 13:29:26 +02:00
Aaron Seigo
5f0daaec50 use the API, luke! 2011-04-30 13:29:26 +02:00
Aaron Seigo
5a3c398e5a delay url setting until initialized 2011-03-03 07:52:13 +01:00
Aaron J. Seigo
f721ef40fc see if a wallpaper plugin can handle (import, display, etc) a given mimetype; this may be different from the drop types supported!
svn path=/trunk/KDE/kdelibs/; revision=1217338
2011-01-26 20:08:35 +00:00
Aaron J. Seigo
abae2d7686 provide compat with wallpapers that implement a slot connection to urlDropped
svn path=/trunk/KDE/kdelibs/; revision=1217118
2011-01-25 20:51:53 +00:00
Aaron J. Seigo
c3c211f374 addurl into the scripting
svn path=/trunk/KDE/kdelibs/; revision=1217115
2011-01-25 20:41:50 +00:00
Sinny Kumari
30b570357f Make wallpaper capable of setting particular Image
http://svn.reviewboard.kde.org/r/6375/

svn path=/trunk/KDE/kdelibs/; revision=1216005
2011-01-20 19:50:11 +00:00
Aaron J. Seigo
1217cd2c19 a better name, so that upon reading it is clear that there is a signal called renderCompleted as well as a slot (by changing the name of the (private) slot to something other than renderCompleted)
svn path=/trunk/KDE/kdelibs/; revision=1206548
2010-12-14 22:18:56 +00:00
Kevin Ottens
c0f66faad7 Allow to build libplasma without KIO. Only issue is that the
copying/moving/removal of folders is defunct (so is the package
install/uninstall).

svn path=/trunk/KDE/kdelibs/; revision=1185865
2010-10-14 12:27:15 +00:00
Marco Martin
0d2681a23d the monitor preview becomes optional, with Wallpaper::setPreviewDuringConfiguration() (default off)
image uses it just for slideshows

together with the previous related commits,
FEATURE: new appearance to the background config dialog

svn path=/trunk/KDE/kdelibs/; revision=1162831
2010-08-12 19:51:39 +00:00
Aaron J. Seigo
cf2190d419 the include too
svn path=/trunk/KDE/kdelibs/; revision=1120690
2010-04-29 17:25:05 +00:00
Aaron J. Seigo
ba49acf26a PLASMA_NO_KIO
svn path=/trunk/KDE/kdelibs/; revision=1120689
2010-04-29 17:24:16 +00:00
Kevin Ottens
6a3240b051 libplasma becomes our first lib with profiles support.
svn path=/trunk/KDE/kdelibs/; revision=1120434
2010-04-29 05:57:34 +00:00
Aaron J. Seigo
2ca8a1d2ee allow telling the wallpaper that it is in previewing mode
BUG:229450

svn path=/trunk/KDE/kdelibs/; revision=1099127
2010-03-05 00:54:30 +00:00
Davide Bettio
3c262b40ea Now also cached images loading is async with threads.
svn path=/trunk/KDE/kdelibs/; revision=1099054
2010-03-04 23:22:24 +00:00
Davide Bettio
99855d8afd Async cache image save with QRunnable.
http://reviewboard.kde.org/r/3123/

svn path=/trunk/KDE/kdelibs/; revision=1098980
2010-03-04 21:04:45 +00:00
Davide Bettio
3411b5c8cd This commit adds support to multiple render threads in Plasma::Wallpaper and rendering queuing support.
This commit will fix at least one bug (but it might fix more bugs as side effect).
http://reviewboard.kde.org/r/3092/

svn path=/trunk/KDE/kdelibs/; revision=1098658
2010-03-04 01:33:19 +00:00
Petri Damstén
6fa744bb10 Call initScript in wallpaper init, otherwise initWallpaper might be called before initScript.
svn path=/trunk/KDE/kdelibs/; revision=1050504
2009-11-17 13:29:40 +00:00
Petri Damstén
289b9ac1eb Add WallpaperScript.
Review: http://reviewboard.kde.org/r/1984/

svn path=/trunk/KDE/kdelibs/; revision=1042086
2009-10-29 05:54:11 +00:00
Yuen Hoe Lim
2a5325af51 Amendments to Plasma::Wallpaper for wallpaper contextual actions support.
svn path=/trunk/KDE/kdelibs/; revision=1034320
2009-10-12 13:01:51 +00:00
Aaron J. Seigo
e41352c6ec move our data files into a common place with some decent organization
svn path=/trunk/KDE/kdelibs/; revision=1019549
2009-09-03 20:40:22 +00:00
Aaron J. Seigo
170e38756f usingDiskCache -> usingRenderingCache; removes the implementation detail that it's caching to a disk from the method names; also revert the eroneous setter i added to Wallpaper, it was already there as isUsingRenderingCache
svn path=/trunk/KDE/kdelibs/; revision=967627
2009-05-13 16:13:56 +00:00
Aaron J. Seigo
ba9927eadf add a getter and a Q_PROPERTY for the caching setting
svn path=/trunk/KDE/kdelibs/; revision=967619
2009-05-13 16:03:59 +00:00
Aaron J. Seigo
a792e89d2d the Ptr is reference counted, so don't also give it a QObject pointer, otherwise it gets deleted potentially twice: once when the parent is deleted and again when the last Ptr deref's ... since the Ptr provides mem management, the parent is completely uneeded anyways
svn path=/trunk/KDE/kdelibs/; revision=954078
2009-04-15 02:39:49 +00:00
Aaron J. Seigo
e93021bbb8 don't exec the job, rely on the app to do the right thing (KGlobal ref/deref);
also don't bother with empty keys (mandelbrot paper was pulling that stunt ;)

svn path=/trunk/KDE/kdelibs/; revision=953897
2009-04-14 17:37:40 +00:00
Aaron J. Seigo
e58c7051ab if targetSize is in lock step with the boundingRect size, then change them together
svn path=/trunk/KDE/kdelibs/; revision=953300
2009-04-13 17:01:12 +00:00
Aaron J. Seigo
dc7bd9bbb5 exec the job; it's a simple operation (remove a file) and this works when the application is about to quit. i wonder if there's a way to manually flush kio jobs on app exit? i don't really want this to be exec'd, i just want to be sure that the job is started!
svn path=/trunk/KDE/kdelibs/; revision=953292
2009-04-13 16:39:42 +00:00
Aaron J. Seigo
9f7edec998 expose the caching for wallpapers that don't use render() to use
svn path=/trunk/KDE/kdelibs/; revision=952060
2009-04-10 19:49:33 +00:00
Aaron J. Seigo
16e41bf2be only mark it as initialized after the first run of init()
svn path=/trunk/KDE/kdelibs/; revision=951209
2009-04-08 17:26:22 +00:00
Aaron J. Seigo
affc3e90aa allow setting of rendering hints, follow them in the package
svn path=/trunk/KDE/kdelibs/; revision=950429
2009-04-07 07:18:58 +00:00
Aaron J. Seigo
8a527b7b09 * move Wallpaper::Private to its own class
* introduce a default ctor for Wallpaper
* allow associating a Wallpaper PackageStructure with a Wallpaper object so that the structure can pull info from the paper

svn path=/trunk/KDE/kdelibs/; revision=950410
2009-04-07 05:45:20 +00:00
Aaron J. Seigo
bb5a57bc26 we can't queue signals with our own enum type, but since this is all internal to the lib and doesn't ever escape into the public API, just pass it around as an int.
svn path=/trunk/KDE/kdelibs/; revision=948269
2009-04-02 17:21:42 +00:00
Aaron J. Seigo
1f1600e406 * renderComplete -> renderCompleted
* remove some unused members

svn path=/trunk/KDE/kdelibs/; revision=948068
2009-04-02 06:48:30 +00:00
Aaron J. Seigo
ef99d85b29 better method names; kisses to ervin
svn path=/trunk/KDE/kdelibs/; revision=948067
2009-04-02 06:43:40 +00:00
Aaron J. Seigo
1c62ca5b79 introduce wallpaper image rendering into libplasma so it can be shared amongst all wallpaper plugins; most of the plugins are duplicating this code which can't be good. :)
next up is to port the Image wallpaper plugin to this and make sure it all still works and then look at bringing the wallpaper listing model/view somewhere all the plugins can share it for their configuration needs

svn path=/trunk/KDE/kdelibs/; revision=948064
2009-04-02 06:31:37 +00:00
Aaron J. Seigo
04f8e295b7 make the wallpaper stuff a bit more robust and integrated around configuration issues
svn path=/trunk/KDE/kdelibs/; revision=948052
2009-04-02 04:15:50 +00:00
Aaron J. Seigo
89b70374c3 abstract the bit of data engine management code out into a small class that the private classes can then subclass, and add dataEngine(const QString &) to Wallpaper
svn path=/trunk/KDE/kdelibs/; revision=947636
2009-03-31 23:51:52 +00:00
Aaron J. Seigo
4b08c03726 change KDE includes to use the .h style now that we're in libs
svn path=/trunk/KDE/kdelibs/; revision=879795
2008-11-04 02:04:34 +00:00
Aaron J. Seigo
1b523b9054 ok, this time JUST the plasma dir ;)
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9 bum-de-dum! plasma to kdelibs.
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Aaron J. Seigo
390f76d33a prepare Wallpaper for delay init: add a setRenderingMode and an isInitialized
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872753
2008-10-18 01:30:52 +00:00
Allen Winter
a7aebfa60a a bunch more coding style fixes. still some lines longer than 100 chars.
this is definitely helping me find false positives in the Krazy style checker.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870161
2008-10-11 22:48:38 +00:00
Aaron J. Seigo
72aff55a52 it's wheelEvent, not mouseWheelEvent
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857248
2008-09-05 04:33:40 +00:00
Benoît Jacob
6d24078bc7 Forward wheel events to the wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=857101
2008-09-04 18:11:46 +00:00
Aaron J. Seigo
ddf2c2cf5d we actually need to set the d->mode member here; background selector works again
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849986
2008-08-20 15:21:53 +00:00
Aaron J. Seigo
ab52f8c294 make save take a KConfigGroup by ref, like all the other save methods in the library
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849909
2008-08-20 13:11:01 +00:00
Aaron J. Seigo
fae3b85557 * make init just take the KConfigGroup, make it protected
* introduce restore, which takes both the KConfigGroup and the mode to use and calls init; this is public and retains the save/restore symmetry seen elsewhere in the library

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849899
2008-08-20 12:44:39 +00:00