Hello and proposal/brainstorming for SoundCloud service
Be
be.0 at gmx.com
Fri Dec 12 02:29:38 UTC 2014
I tried putting that code in the script (along with loading qt.gui). The
script does not load and I see this in the debugging output:
[ERROR__] [ScriptManager] "Script Error: TypeError: Result of expression
'Amarok.Window.mainWindow' [undefined] is not an object. (line: 221)"
On 12/11/2014 12:31 PM, Anmol Ahuja wrote:
>> I started working on a QtScript service plugin to stream from SoundCloud
>> (attached), but it seems that Amarok's QtScript API will not be enough
>> to really make use of SoundCloud's features. Is it possible to add to
>> Amarok's GUI outside of populating the collection pane or putting simple
>> HTML in the the info or lyrics applets with QtScript?
> First off, my apologies for the lack of much scripting documentation.
> I never really managed to settle on a satisfactory solution, I'll try
> taking care of it again in January. You actually can add create and
> add dockable widgets to the Amarok window. Here's an example:
>
> var dock = new QDockWidget( "Scripted Dock" );
> var list = new QListWidget();
> dock.setWidget( list );
> Amarok.Window.mainWindow.addDockWidget( Qt.LeftDockWidgetArea, dock );
> dock.show();
>
>
> You can file a feature request in the bugtracker for anything
> necessary you think is missing, though again, I won't be able to do
> much until January. You can, of course, contribute if you like.
>
> --
> Regards,
> Anmol Ahuja
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
More information about the Amarok-devel
mailing list