Commit Graph

41 Commits

Author SHA1 Message Date
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
Petri Damstén
0a2eb79e61 Wallpaper API changes:
- modes -> renderingModes
- remove modeName & modeIcon
- add config group to init for reading config
- add save for config saving

Update containment for api changes.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849801
2008-08-20 08:06:34 +00:00
Aaron J. Seigo
0e22094ff0 build
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845850
2008-08-12 13:58:26 +00:00
Aaron J. Seigo
fe4c7f7a09 clarity in the api
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845846
2008-08-12 13:53:58 +00:00
Laurent Montel
37c674d93d Fix mem leak
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842877
2008-08-06 06:45:23 +00:00
Aaron J. Seigo
5c9c48ef75 forward mouse move, press and release events to the wallpaper
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842825
2008-08-06 01:59:44 +00:00
Aaron J. Seigo
b46dd9832f make consistent with Applet API
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842643
2008-08-05 17:37:42 +00:00
Petri Damstén
0183db7d30 Base for Plasma::Wallpaper plugins.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=842590
2008-08-05 15:27:48 +00:00