[Qgis-developer] Plugin reorganization (again)

Marco Bernasocchi marco at bernawebdesign.ch
Tue Dec 20 16:41:11 EST 2011


Super!, Just a minor thing, all the remove methods are called removeXXX but
the add methods are AddToXXX wouldn't it be more consistent to have either
AddXXX or RemoveFromXXX?
Ciao and thanks a lot
On Dec 20, 2011 6:55 PM, "Alexander Bruy" <alexander.bruy at gmail.com> wrote:

> Hi all,
>
> finally I push all changes to master. This include:
>  - new methods to add/remove plugins from Raster menu
>   addPluginToRasterMenu(QString, QAction)
>   removePluginRasterMenu(QString, QAction)
>  - new methods to add/remove plugin buttons from Raster toolbar
>   addRasterToolBarIcon(QAction)
>   removeRasterToolBarIcon(QAction)
>  - new Vector menu and toolbar
>  - new methods to add/remove plugins from Vector menu
>   addPluginToVectorMenu(QString, QAction)
>   removePluginVectorMenu(QString, QAction)
>  - new methods to add/remove plugin buttons from Vector toolbar
>   addVectorToolBarIcon(QAction)
>   removeVectorToolBarIcon(QAction)
>  - new Database toolbar
>  - new methods to add/remove plugin buttons from Database toolbar
>   addDatabaseToolBarIcon(QAction)
>   removeDatabaseToolBarIcon(QAction)
>  - core plugins reorganized and moved under appropriate menus/toolbars.
>   There are some issues with plugins that match to several categories, e.g.
>   Zonal Statistics plugin. Also some plugins still remain in Plugins menu.
>  - introduced new plugin metadata entry "category". This entry currently
> used
>   only in informational purposes to inform user where he should look
> for plugin.
>   Placing plugin under appropriate menu remains developer task and can be
> done
>   with new methods described above. If no category specified Python plugin
> will
>   get default one - "Plugins".
>   Also updated QgsPlugin class to handle this new metadata, so C++ plugins
>   must be updated and recompiled (looks like an API break)
>  - updated Plugin Manager to display hint based on "category" metadata
>
> Hope, I didn't break anything.
>
> --
> Alexander Bruy
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20111220/a1f317b9/attachment.html


More information about the Qgis-developer mailing list