Wednesday, 11 September 2013

GSoC: Weeks 10 and 11

So here's what you can do with Amarok scripting now:

Theming Scripts :)
You can now theme Amarok with stylesheets and QPalettes ( it should have been possible with the existing API too, via QCoreApplication.instance(), but hey )
Perhaps not the best my Amarok has looked, but you get the idea

New Script Console
Here's the new scripting console with QtScriptDebugger components, though I'm yet to diagnose a nasty crash...




Some GUI Access
You now have scripted access to the collection view and the main window, so you can add collection view actions, scripted docks etc.



There's other random stuff, like a convenient setTimeout function with the option of specifying this object and arguments, a mode which lists object names (and copies them to clipboard) for stylesheeting, and a random experiment with a QScriptEngine hooked to a the code completion model (not too useful for now), and some fixes.

Plus, there's a new script in the works, but more on that later.

Sorry, I've been irregular again, but I've had a lot going on these past two weeks :|

This week though there are more serious plans: script access to the context view, tags and podcasts (I seem to have missed this :/).

You can find all of this on my gsocScripting2 branch on quickgit.kde.org. Thanks for reading :)

5 comments:

  1. It is great to see your very nice progress! Scripted Docks will be fantastic in combination with scripts like "Rating Statistics".

    ReplyDelete
  2. Can Amarok be made look and behave like iTunes/Banshee? It is much more easier for me to have playlists on one side and all my music on the second panel.

    ReplyDelete
    Replies
    1. You can change the layout to make it look quite differently since quite some time already: View menu -> Unlock Layout and then move the panes around to your liking. As for the behavior I can't tell, as I never used any of the other players.

      Delete
  3. Is it posible to play a track directly from the collection instead of first adding it to the playlist? It's really handy being able to do that.

    ReplyDelete
    Replies
    1. No, but if you double-click a track in the collection, it's going to be added to the playlist and it will also start playing instantly. So it's effectively the same result.

      Delete