Hi devs,<br>I also had problems to get the startup on c++ plugins development. Mainly because there was no Plugin Builder for C++. So we had to write everything from scratch and many are repetitive tasks. <br>I though about writing a plugin builder for c++ but it never got out of planning phase. Anyone interested in developping?<br>
Best regards,<br>Mauricio<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 6:55 PM, Tim Sutton <span dir="ltr"><<a href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
<br>
On Fri, Feb 18, 2011 at 10:38 PM, sailmcm <<a href="mailto:sailmcm@yahoo.com">sailmcm@yahoo.com</a>> wrote:<br>
> Thanks Goivanni, for the help and encouragment. I have read both documents and I was not able to resolve all problems. As you suggested I will try harder.<br>
><br>
<br>
Maaza - once you have QGIS building from source in windows the process<br>
for building a new plugins is quite simple. Just copy and paste a<br>
simple plugin folder like copyright plugin, name the folder something<br>
like myplugin or whatever and then work through each and every file in<br>
that dir (using search and replace where it makes sense to do so) to<br>
make it your own. Look in the CMakeLists.txt - its not that hard -<br>
typically you just need to add your .h and .cpp files to the list. If<br>
you are able to use linux, you can even more easily just use the<br>
plugin_builder.py script in that src/plugins directory and it will<br>
generate for you a 'hello world' C++ plugin.<br>
<br>
All that said you will need to understand Qt4 to do anything useful<br>
once you get going...<br>
<br>
Have fun!<br>
<br>
Regards<br>
<br>
Tim<br>
<br>
<br>
> "G. Allegri" <<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>
><br>
>>Maaza, I think your approach doesn't help to give you a hand.<br>
>>The community cannot supply you the *time* you should invest in trying and,<br>
>>maybe, learning the necessary basics to do what you need. You shoud try and<br>
>>try and the, eventually, ask about things that go wrong.<br>
>><br>
>>QGis plugins are C++, with some macros defined by Qt. Nothing more, nothing<br>
>>less (am I wrong?). If you're able to compile C++ code in Visual Studio, you<br>
>>don't need to rely on Cmakelist. It can help, because it makes a lot of work<br>
>>for you, and you can be inspired by other plugins. But you also can build<br>
>>and link the usual way.<br>
>><br>
>>Have you read the "QGIS Coding and Compilation Guide" [1]?<br>
>><br>
>>giovanni<br>
>><br>
>>[1]<br>
>><a href="http://download.osgeo.org/qgis/doc/manual/qgis-1.6.0_coding-compilation_guide_en.pdf" target="_blank">http://download.osgeo.org/qgis/doc/manual/qgis-1.6.0_coding-compilation_guide_en.pdf</a><br>
>><br>
>><br>
>><br>
>><br>
>>2011/2/18 maaza mekuria <<a href="mailto:sailmcm@yahoo.com">sailmcm@yahoo.com</a>><br>
>><br>
>>> Can it be possible to create a minimalist plugin using c++ in Windows<br>
>>> Visual C++ Express without using all the bells and whistles that are in the<br>
>>> other plugins such as CMakelists?<br>
>>><br>
>>> Your help may make a difference between using Python and C++. I was able to<br>
>>> copy a Python plugin and easily adopt it to my own version of a plugin. I<br>
>>> was able to add and remove GUI items by just editing the UI file. I want to<br>
>>> do something similar using C++. Is it impossible for a new comer? Do I need<br>
>>> a Computer Science degree to? But it should not be as they say "Rocket<br>
>>> science" to write a little function.<br>
>>><br>
>>> I promise if I get it to work, I will share it with those who are suffering<br>
>>> the famine for information. I am not sure why there is lack of documentation<br>
>>> on such a simple matter or may be it is not simple or it is esoteric because<br>
>>> it is highly dependent on many secret doors and passageways.<br>
>>><br>
>>> I confess my stubbornness to use C++ is due to the type of work being a bit<br>
>>> intensive and I also have already a C++ code for it and I just need a nicer<br>
>>> interface and data store that is free as in "Free Chai" inside QGIS.<br>
>>><br>
>>> Anybody there listening to the call from QGIS (Quiet or Slow GIS) desert?<br>
>>><br>
>>><br>
>>> Maaza<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Qgis-developer mailing list<br>
>>> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
>>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
>>><br>
>>><br>
><br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Tim Sutton - QGIS Project Steering Committee Member (Release Manager)<br>
==============================================<br>
Please do not email me off-list with technical<br>
support questions. Using the lists will gain<br>
more exposure for your issues and the knowledge<br>
surrounding your issue will be shared with all.<br>
<br>
Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>
* QGIS programming and support services<br>
* Mapserver and PostGIS based hosting plans<br>
* FOSS Consulting Services<br>
Skype: timlinux<br>
Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
==============================================<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mauricio de Paulo<br>Engenheiro Cartografo<br><a href="http://mapeandoobrasil.blogspot.com" target="_blank">MapeandoOBrasil</a><br><br>