Re: [Qgis-developer] Plugin howto
Hi Paolo, there is a some pieces of information in CookBook [0], but it does not contains code samples. I will try to add them today. All necessary methods one can find in QgisInterface class [1], just search for addPlugin* and removePlugin*. There are: - addPluginToMenu - addPluginToDatabaseMenu - addPluginToRasterMenu - addPluginToVectorMenu - addPluginToWebMenu and corresponding remove* methods. Same with adding/removing toolbar buttons. Hope this helps [0] http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html [1] http://qgis.org/api/classQgisInterface.html 2014-07-24 8:58 GMT+03:00 Paolo Cavallini cavall...@faunalia.it: Hi all. Many plugin developers do not know how to move their plugin under the appropriate menu: can someone point us to the relevant cookbook page, or other instructions? All the best, and thanks. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ 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] Plugin howto
Il 24/07/2014 08:10, Alexander Bruy ha scritto: Hope this helps thanks Alex. perhaps we should link the instructions directly from http://plugins.qgis.org/ ? all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugin howto
I think Tim was editing the Plugin Builder a little while ago. We discussed adding an option in the plugin builder dialog to specify which menu and toolbar the plugin would be added to. This would obviously help quite a lot with new plugins. Obviously still important to have this documented in the cookbook. https://github.com/g-sherman/Qgis-Plugin-Builder/pull/11 https://github.com/timlinux/Qgis-Plugin-Builder/tree/better-menus -Opprinnelig melding- Fra: qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Paolo Cavallini Sendt: 24. juli 2014 08:14 Til: Alexander Bruy Kopi: qgis-developer Emne: Re: [Qgis-developer] Plugin howto Il 24/07/2014 08:10, Alexander Bruy ha scritto: Hope this helps thanks Alex. perhaps we should link the instructions directly from http://plugins.qgis.org/ ? all the best. -- Paolo Cavallini - www.faunalia.eu Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html ___ 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] cmake configure error
Hi Stefan, On Thu, 24. Jul 2014 at 05:53:52 +, Ziegler Stefan wrote: I'm getting a cmake error on master: Touch support disabled CMake Error at cmake/FindQScintilla.cmake:58 (FILE): file Internal CMake error when trying to open file: /usr/include/qt4/Qsci/Qsci/qsciglobal.h for reading. Call Stack (most recent call first): CMakeLists.txt:259 (FIND_PACKAGE) Try a clean rebuild. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] cmake configure error
Hi Jürgen On 24.07.2014 09:13, Jürgen E. Fischer wrote: Hi Stefan, On Thu, 24. Jul 2014 at 05:53:52 +, Ziegler Stefan wrote: I'm getting a cmake error on master: Touch support disabled CMake Error at cmake/FindQScintilla.cmake:58 (FILE): file Internal CMake error when trying to open file: /usr/include/qt4/Qsci/Qsci/qsciglobal.h for reading. Call Stack (most recent call first): CMakeLists.txt:259 (FIND_PACKAGE) Try a clean rebuild. Same here, clean rebuild does not help. Removing the Qsci part in FindQScintilla.cmake fixes things. Matthias ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] cmake configure error
On 24.07.2014 09:37, Matthias Kuhn wrote: Hi Jürgen On 24.07.2014 09:13, Jürgen E. Fischer wrote: Hi Stefan, On Thu, 24. Jul 2014 at 05:53:52 +, Ziegler Stefan wrote: I'm getting a cmake error on master: Touch support disabled CMake Error at cmake/FindQScintilla.cmake:58 (FILE): file Internal CMake error when trying to open file: /usr/include/qt4/Qsci/Qsci/qsciglobal.h for reading. Call Stack (most recent call first): CMakeLists.txt:259 (FIND_PACKAGE) Try a clean rebuild. Same here, clean rebuild does not help. Removing the Qsci part in FindQScintilla.cmake fixes things. Same here. I had to manually define -DQSCINTILLA_INCLUDE_DIR=/usr/include/qt4 instead of /usr/include/qt4/Qsci Matthias ___ 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] cmake configure error
Hi Matthias, On Thu, 24. Jul 2014 at 09:37:59 +0200, Matthias Kuhn wrote: Same here, clean rebuild does not help. Odd, as it did here. And the nightly builds[1] apparently didn't have a problem with 9a10b79 either. Jürgen [1] http://dash.orfeo-toolbox.org/index.php?project=QGIS -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode -- norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH Rheinstrasse 13, 26506 Norden GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502 ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] cmake configure error
Hi Jürgen On 24.07.2014 09:51, Jürgen E. Fischer wrote: Hi Matthias, On Thu, 24. Jul 2014 at 09:37:59 +0200, Matthias Kuhn wrote: Same here, clean rebuild does not help. Odd, as it did here. And the nightly builds[1] apparently didn't have a problem with 9a10b79 either. Thanks for the answer. I checked again. Starting from scratch in a new build dir it cmake's correctly. Manually deleting QSCINTILLA_INCLUDE_DIR from the cmake cache (e.g. in ccmake) fixes things as well, while a simple 'make clean' was not enough. Regards Matthias ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] Plugin howto
Il 24/07/2014 08:52, Stott, James ha scritto: This would obviously help quite a lot with new plugins. Obviously still important to have this documented in the cookbook. Agreed, of course. Thanks. -- Paolo Cavallini - www.faunalia.eu QGIS PostGIS courses: http://www.faunalia.eu/training.html ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer