Mscore Plugin and QTScript

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Mscore Plugin and QTScript

lasconic
Administrator
Hi !
Some time ago, I noticed that you added a plugin directory in mscore distribution. The two files add two menu items.
I take a llok to the code. It seems to be QtScript code. Is it right ?

The documentation is here : http://doc.trolltech.com/4.3/qtscript.html#configuring-the-build-process

As far as I understand, you need to make available some qt object to be accessible in the plugin code. Looking tot the two tests, I think you expose "score" ? and "division" ?
Do you mind documenting all the key/value available ? Do you think it's possible to create a new dialog box from the script ?

Thank you !

Lasconic

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Mscore Plugin and QTScript

wschweer
Administrator
Hi,

the mscore plugin system is based on QtScript. Its only a proof of concept of
how scripts could be integrated into mscore.
The main part is missing as there are no bindings to access the Score() class.
The binding to "division" is only an example of an simple variable binding.

It should be possible to popup a dialog from script code but i don't know how
to do it.

Werner

On Dienstag 20 Mai 2008, Lasconic wrote:

> Hi !
> Some time ago, I noticed that you added a plugin directory in mscore
> distribution. The two files add two menu items.
> I take a llok to the code. It seems to be QtScript code. Is it right ?
>
> The documentation is here :
> http://doc.trolltech.com/4.3/qtscript.html#configuring-the-build-process
>
> As far as I understand, you need to make available some qt object to be
> accessible in the plugin code. Looking tot the two tests, I think you expose
> "score" ? and "division" ?
> Do you mind documenting all the key/value available ? Do you think it's
> possible to create a new dialog box from the script ?
>
> Thank you !
>
> Lasconic
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Mscore Plugin and QTScript

lasconic
Administrator
hi werner ! Thank you for your quick answer.
I investigate little bitI find a blog post with a browser example.
http://www.kdedevelopers.org/node/3347

But I'm not sure we will be able to access QT objects such as QuiLoader or QFile if they are not bind in musescore code.
I find this project but it's qt 4.4... any thoughts ?
http://labs.trolltech.com/page/Projects/QtScript/Generator

Anyone try to play with qtscript here ?

Thank you !

2008/5/20 Werner Schweer <[hidden email]>:
Hi,

the mscore plugin system is based on QtScript. Its only a proof of concept of
how scripts could be integrated into mscore.
The main part is missing as there are no bindings to access the Score() class.
The binding to "division" is only an example of an simple variable binding.

It should be possible to popup a dialog from script code but i don't know how
to do it.

Werner

On Dienstag 20 Mai 2008, Lasconic wrote:
> Hi !
> Some time ago, I noticed that you added a plugin directory in mscore
> distribution. The two files add two menu items.
> I take a llok to the code. It seems to be QtScript code. Is it right ?
>
> The documentation is here :
> http://doc.trolltech.com/4.3/qtscript.html#configuring-the-build-process
>
> As far as I understand, you need to make available some qt object to be
> accessible in the plugin code. Looking tot the two tests, I think you expose
> "score" ? and "division" ?
> Do you mind documenting all the key/value available ? Do you think it's
> possible to create a new dialog box from the script ?
>
> Thank you !
>
> Lasconic
>




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer