[Qgis-developer] processing algoritm/script button?

Alexander Bruy alexander.bruy at gmail.com
Mon Apr 4 04:18:54 PDT 2016


Hi Richard,

as Victor already mentioned, you can add menu entry for any
Processing algoroithm via Options dialog.

If you want to do this programmatically you can use
addAlgorithmEntry() function from processing.gui.menus
package.


2016-04-04 13:35 GMT+03:00 Richard Duivenvoorde <rdmailings at duif.net>:
> Hi,
>
> tried to Google this but did not find anything yet. But having a
> (custom, complex) processing script, what is the best/easiest way to
> give it it's own button on the toolbar?
>
> I could write a minimal plugin to call the algorithm?
>
> OR does processing already have this?
>
> And if not: this is the feature request:   ;-)
>
> Given one or more Processing scripts, make it possible to place a button
> in the processing toolbar (not yet there...) for it.
> Maybe via some syntax like
>
> ##button=foo.jpeg
>
> Where foo.jpeg is an image next to the script? Or full path to it
> As a tooltip you could see the name of the user script?
> If not already there it could create a 'processing scripts button
> toolbar' and add the button to it.
> Upon clicking the button it would run the script.
> One script can have one button.
>
> In this way the user-friendly-ness of a plugin could be combined with
> the (for end users sometimes) rather 'technical' view of a processing
> script. Especially for those users who only run a couple of specialized
> scripts this would be nice.
>
> Regards,
>
> Richard
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Alexander Bruy


More information about the Qgis-developer mailing list