<div dir="ltr"><div><div>Thank you Victor and Anita,<br>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.<br>The simple script, for that I know, does not allow to insert a combobox while in some plugin like LECOS there is one.<br>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.<br><br></div>Best<br><br></div>Sergio<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-28 18:05 GMT+01:00 Anita Graser <span dir="ltr"><<a href="mailto:anitagraser@gmx.at" target="_blank">anitagraser@gmx.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div class="gmail_default" style="font-size:small">On Sat, Feb 28, 2015 at 5:47 PM, Sergio Vignali <span dir="ltr"><<a href="mailto:vignalisergio30@gmail.com" target="_blank">vignalisergio30@gmail.com</a>></span> wrote:<br></div></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Dear all,<br>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.<br></div></div></div></blockquote><div><br></div></span><div><div class="gmail_default" style="font-size:small">​Hi Sergio,</div><div class="gmail_default"><br></div><div class="gmail_default">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:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="https://github.com/qgis/QGIS-Processing/tree/master/scripts" target="_blank">https://github.com/qgis/QGIS-Processing/tree/master/scripts</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Best wishes</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-size:small">Anita</div></font></span></div></div><br></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Sergio Vignali<div><br></div></div></div>
</div>