Is it possible to add combo-boxes, option groups and similar items to QGIS processing scripts? The documentation mentions text-boxes ('string', 'number'), file browser etc. I would like to add a combo-box with a list of values - should I make my own Qt from?
1 Answer
If you want to do it the open source way, extend processing with a new parameter type ParameterEnumeration
.
The ParameterGeometryPredicate should serve as a good sample. There's also a gui widget defined for it.
For development you can just copy the processing plugin into your plugins folder and modify it in a safe environment there. Once finished, please make a pull request so every other processing plugin out there can use this important parameter type as well.
-
Thanks! I will see into it (If I manage, I will make a pull request..)– ZoranCommented Aug 16, 2016 at 21:11
-
If you need help with this, don't hesitate to contact via mailing list or gitter. The QGIS community is very open. Commented Aug 17, 2016 at 6:59
-
Is gitter new? Haven't seen that website mentioned anywhere!– JosephCommented Aug 17, 2016 at 9:42