[Qgis-developer] processing algoritm/script button?

Victor Olaya volayaf at gmail.com
Mon Apr 4 04:21:36 PDT 2016


Right, and, as Alex points out, doint it programatically you have the
option to add a button as well (using the UI, not)

see https://github.com/qgis/QGIS/blob/master/python/plugins/processing/gui/menus.py#L138



2016-04-04 13:18 GMT+02:00 Alexander Bruy <alexander.bruy at gmail.com>:
> 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
> _______________________________________________
> 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


More information about the Qgis-developer mailing list