Re: [Qgis-developer] Plugin howto

2014-07-24 Thread Alexander Bruy
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

2014-07-24 Thread Paolo Cavallini
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

2014-07-24 Thread Stott, James
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] Plugin howto

2014-07-24 Thread Paolo Cavallini
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


[Qgis-developer] Plugin howto

2014-07-23 Thread Paolo Cavallini
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