Re: [QGIS-Developer] Custom parameters in Processing scripts

2018-11-19 Thread Matteo Ghetta
Hi Nyall,


> Yep -- see e.g.
> 
> Defining a new widget type:
> https://github.com/nyalldawson/pyqgis/blob/master/processing/layout_algorithms.py#L67
> 
> 
> Using your custom widget in an algorithm:
> 
> https://github.com/nyalldawson/pyqgis/blob/master/processing/layout_algorithms.py#L182

awesome, thanks!

Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Custom parameters in Processing scripts

2018-11-18 Thread Nyall Dawson
On Sat, 17 Nov 2018 at 02:44, Matteo Ghetta  wrote:
>
> Hi dev,
>
> is it possible to add a custom parameter to Processing scripts UI and
> grab its value?
>
> e.g. a custom QDate (or QDateTime) and grab the values as date/datetime?

Yep -- see e.g.

Defining a new widget type:
https://github.com/nyalldawson/pyqgis/blob/master/processing/layout_algorithms.py#L67


Using your custom widget in an algorithm:

https://github.com/nyalldawson/pyqgis/blob/master/processing/layout_algorithms.py#L182

Nyall


>
> Thanks for any suggestions
>
> Cheers
>
> Matteo
>
> --
> Matteo Ghetta - www.faunalia.eu
> QGIS & PostGIS courses: http://www.faunalia.eu/training.html
> https://www.google.com/trends/explore?date=all=IT=qgis,arcgis
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Custom parameters in Processing scripts

2018-11-16 Thread Matteo Ghetta
Hi dev,

is it possible to add a custom parameter to Processing scripts UI and
grab its value?

e.g. a custom QDate (or QDateTime) and grab the values as date/datetime?

Thanks for any suggestions

Cheers

Matteo

-- 
Matteo Ghetta - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
https://www.google.com/trends/explore?date=all=IT=qgis,arcgis
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer