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 1
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..)Zoran– Zoran2016年08月16日 21:11:06 +00:00Commented 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.Matthias Kuhn– Matthias Kuhn2016年08月17日 06:59:00 +00:00Commented Aug 17, 2016 at 6:59
-
Is gitter new? Haven't seen that website mentioned anywhere!Joseph– Joseph2016年08月17日 09:42:58 +00:00Commented Aug 17, 2016 at 9:42