I didn't know the selection data type, this is cool, thanks Victor!

and thanks Alexander, the example provider is really useful

All the best

s.

2015-02-28 19:09 GMT+01:00 Victor Olaya <vola...@gmail.com>:

> you can add a combo box in a script, using "selection" as data type,
> followed by the possible values separated by semicolons
>
> For instance
>
> method=selection First method;Another method;The last method
>
> Hope this helps
>
> 2015-02-28 18:34 GMT+01:00 Alexander Bruy <alexander.b...@gmail.com>:
> > Hi Sergio,
> >
> > look at the Example Provider code [0]. This is example developed
> specially
> > as tutorial how to implement own provider plugins for Processing.
> >
> > [0]
> https://github.com/qgis/QGIS/tree/master/python/plugins/processing/algs/exampleprovider
> >
> > 2015-02-28 19:21 GMT+02:00 Sergio Vignali <vignalisergi...@gmail.com>:
> >> Thank you Victor and Anita,
> >> maybe my message was not so clear. Yes I know how to write a simple
> script,
> >> but I would like to transform it in a plugin.
> >> The simple script, for that I know, does not allow to insert a combobox
> >> while in some plugin like LECOS there is one.
> >> It is difficult for me reading the plugin code and understand which
> part is
> >> for a normal plugin and which one for the processing toolbox, if you
> have
> >> any suggestion please let me know.
> >>
> >> Best
> >>
> >> Sergio
> >>
> >> 2015-02-28 18:05 GMT+01:00 Anita Graser <anitagra...@gmx.at>:
> >>>
> >>> On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali
> >>> <vignalisergi...@gmail.com> wrote:
> >>>>
> >>>> Dear all,
> >>>> I would like to know if there is a tutorial or text that explains how
> to
> >>>> write a plugin for the processing toolbox. The QGis documentation
> explains
> >>>> how to write a plugin but I didn't find anything about the processing
> >>>> toolbox... So I would like to know the structure and the code
> necessary to
> >>>> add some script to the toolbox.
> >>>
> >>>
> >>> Hi Sergio,
> >>>
> >>> If you just want to add a simple script to the Processing toolbox, you
> >>> don't need a plugin at all. All you need to do is go to Scripts |
> Tools |
> >>> Create new script in the toolbox. You can find many examples of how
> these
> >>> scripts have to look like in the following repository:
> >>>
> >>> https://github.com/qgis/QGIS-Processing/tree/master/scripts
> >>>
> >>> Best wishes
> >>> Anita
> >>>
> >>
> >>
> >>
> >> --
> >> Sergio Vignali
> >>
> >>
> >> _______________________________________________
> >> Qgis-developer mailing list
> >> Qgis-developer@lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-developer
> >
> >
> >
> > --
> > Alexander Bruy
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
>



-- 
Sergio Vignali
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to