Right now Plasma can load and display MacOS Dashboard widgets .. but not all of them. If you look at the API reference from Apple you'll see that there are 6 properties (or callbacks) and 8 methods that are available in the JavaScript runtime for these widgets.
Right now Plasma implements exactly zero of them in the Dashboard ScriptEngine, causing several widgets to fail when loaded.
Implementing most of these would be pretty trivial, and they can all be done one at a time. The six properties all have equivalents in the C++, so it would just be a matter of hooking those up. The eight methods are all easily implementable using the KDE libraries and several would probably be one-liners (such as the openApplication or openURL methods), the preferences flip ones would require a small amount of HTML+JS hacking to do the flip animation .. leaving just
system method which likely are used for calls that don't exist outside of MacOS in many cases but which could still be provided as a JavaScript wrapper around QProcess.Personally, I'm not overly motivated to work on this given everything else that's currently on my plate. It's one of those things that I will eventually get to because it needs to get done, but that's not overly inspiring, is it? ;)
It occurred to me that this would be a great little project with a very manageable scope, working on a very small body of code that is a plugin (so you don't need to reload the desktop as a whole or deal with long compiles) that would give immediate results and can be worked on one piece at a time to go from zero to fourteen.
If you are interested in working on this, please drop me an email or visit us in #plasma on irc and I'll get you started.

7 comments:
I am not an OSX user but I think this will include UWA (Netvibes) support, so maybe not inspiring but will give a big amount of features to the KDE.
Great to see people stepping up - especially on a Sunday! :)
As long as that Chuck Norris widget works, I'm happy. ;)
Hi Aaron,
I know this is off-topis here, but I don't know where I should ask. Please are you working on plasma activities to virtual desktops affinity like you promised long time ago? Your work is really great, I love what I see in Plasma, but Plasma activities are without plasma-activity-to-virtual-desktop mapping nearly unusable for me :-( Will it be in KDE 4.2?
@magrathea: yes, it's off-topic and you've asked this before. i've answered the question previously.
your repeated queries will not make it happen any sooner (or later), and i'm sure you'll find out about it when it enters the codebase here, in the commit digest or in the release notes.
Aaron J. Seigo: I am sorry, I must overlooked your previous answer, I thought it was lost in that big discussion. Thanks for your patience...
Hi Aaron,
What's the status of Google Gadgets in Plasma?
They will be available in 4.2?
Thanks for your work,
Josep
Post a Comment