Re: [Qgis-developer] info about plugin and processing toolbox
> > >> 2015-02-28 19:09 GMT+01:00 Victor Olaya : >> >>> 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 >>> >> It would be great if the selection input type could be documented in http://docs.qgis.org/2.6/en/docs/user_manual/processing/console.html#creating-scripts-and-running-them-from-the-toolbox for the 2.8 documentation. Thanks and best wishes, Anita ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] info about plugin and processing toolbox
... and is also possible to include a check box in the script? best 2015-02-28 19:25 GMT+01:00 Sergio Vignali : > 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 : > >> 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 : >> > 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 : >> >> 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 : >> >>> >> >>> On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali >> >>> 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 > > -- Sergio Vignali ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] info about plugin and processing toolbox
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 : > 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 : > > 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 : > >> 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 : > >>> > >>> On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali > >>> 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
Re: [Qgis-developer] info about plugin and processing toolbox
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 : > 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 : >> 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 : >>> >>> On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali >>> 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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] info about plugin and processing toolbox
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 : > 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 : >> >> On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali >> 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
Re: [Qgis-developer] info about plugin and processing toolbox
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 : > On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali > 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
Re: [Qgis-developer] info about plugin and processing toolbox
On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali 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 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] info about plugin and processing toolbox
http://docs.qgis.org/2.6/en/docs/user_manual/processing/scripts.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer