Summary: | [PATCH] Access selected playlist entries from a script | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | Mathias Panzenböck <grosser.meister.morti> |
Component: | Tools/Script Manager | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.0.1 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | scripting api for selected filenames |
Description
Mathias Panzenböck
2009-02-07 00:18:41 UTC
Created attachment 31060 [details]
scripting api for selected filenames
Comment on attachment 31060 [details]
scripting api for selected filenames
This patch is against amarok svn revision 922016.
SVN commit 922466 by markey: Add two new scripting methods for accessing playlist entries: Amarok.Playlist.selectedFilenames() Amarok.Playlist.selectedIndizes() Many thanks for the patch go to Mathias Panzenböck <grosser.meister.morti@gmx.net>. Matthias: Could you please add these new methods to our scripting API document, which is located here: http://amarok.kde.org/wiki/Development/Scripting_HowTo_2.0 Also, the patch needs code review and formatting cleanup. BUG: 183493 CCMAIL: ian.monroe@gmail.com M +1 -0 MainWindow.h M +3 -2 playlist/view/listview/PrettyListView.h M +22 -0 scriptengine/AmarokPlaylistScript.cpp M +2 -0 scriptengine/AmarokPlaylistScript.h WebSVN link: http://websvn.kde.org/?view=rev&revision=922466 SVN commit 922472 by markey: Some formatting and code cleanup of Matthias's patch. @Matthias: Could you please read this document too: http://kollide.net:8060/browse/~raw,r=20999/Amarok/HACKING/intro_and_style.txt CCBUG: 183493 M +10 -8 AmarokPlaylistScript.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=922472 Woot, a patch of mine was committed to svn! :) However, I just mentioned that the english word for Indizes is indices. Indizes is german (I'm from Austria). Sorry. I saw in intro_and_style.txt something about git. Is there a git mirror of the amarok svn repository? This would be handy for local hacking, so I can actually commit local changes (so I have a local history). Searching for Btw. my name is "Mathias" with only one "t". Sorry about writing your name wrong. About git: We're currently in the middle of transitioning from SVN to git (many devs are using git locally already with git-svn). So it doesn't exist yet, but if all goes well, it should surface in 2 or 3 months or so. I added the two methods to the API documentation: http://amarok.kde.org/wiki/Development/Script_API#Amarok.Playlist However, the amarok wiki seem not to support footnotes? |