> Date: Wed, 28 Nov 2012 13:11:50 -0700
> From: lar...@dakotacarto.com
> To: qgis-developer@lists.osgeo.org
> Subject: [Qgis-developer] QgsLegendInterface binding updates, or QgsLegend 
> overhaul?
> 
> Hi,
> 
> I added to QgsLegendInterface today [0] and noticed how lacking the
> Python binding is when working with the legend, compared to the number
> of methods that could be exposed from QgsLegend. Looks like
> QgsLegendInterface really hasn't been updated since QGIS 1.5.
> 
> Users/plugin devs have asked for better means of working with the
> legend, so my questions are:
> 
> * Should there be an effort to bring many of the reasonable-to-expose
> methods from QgsLegend to QgsLegendInterface for 2.0 release?
> 
> * OR, should QgsLegend be overhauled first (as there has been talk about)?
> 
> [0] 
> https://github.com/qgis/Quantum-GIS/commit/8260eab94ba52ecd9faea59632c61070c2aea70c
> , http://gis.stackexchange.com/questions/36937
> 
> Regards,
> 
> Larry
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

I'm new to this and have missed the talk of a QgsLegend overhaul so I have no 
knowledge ofthe scope/reasons of the proposed changes.  To provide further 
context I am developing a python plugin for use in a corporate environment 
where I can only target stable releases (1.8/2.0).
Generally providing access to an appropriate API will reduce the need for 
hackish code.
The change you have made will negate the current need to query the QTreeView to 
determineif the active layer is the only selected layer.
I would also find value in gaining access to groupSelectedLayers.
In the long term I also feel that control of sub-groups is essential (part of 
the overhaul?).
In summary I support exposing further legend controls before 2.0
Regards,Kelly                                     
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to