Hi --strk I don't think it's useful having the ability to develop new LegendItem types... before legend refactoring, pupup was introduced because wasn't possibile to customize legend elements other than having a little pixmap.
regards, Luigi Pirelli On 16 December 2014 at 12:09, Sandro Santilli <[email protected]> wrote: > Also, is the "temporary solution for WMS legend" in > QgisApp::layerTreeViewDoubleClicked still needed ? > > (ie: showing the WMS legend in a popup window) > > See https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L381 > > --strk; > > On Tue, Dec 16, 2014 at 12:01:59PM +0100, Sandro Santilli wrote: >> According to documentation for the QgsRasterLayer class [1], a raster >> layer can export its legend as a pixmap using a legendPixmap() method, >> but the code doesn't not contain any such virtual method. >> >> [1] http://qgis.org/api/classQgsRasterLayer.html >> >> Instead, the class has a (non-virtual) method to retrieve a legend >> in form of a list of name/color pairs. >> >> A pure image legend is not accounted for in the raster interface >> anymore. Still, beside the documentation, there's also a LegendUrl >> property under the "Metadata" tab of raster layer properties, which >> does not seem to be used at all either. >> >> Is there a plan to allow raster layers to expose their layer again >> as an image ? I'm trying to figure out the best way to expose per-layer >> WMS legend configuration, to complete the "WMS contextual legend" QEP [2] >> >> [2] https://github.com/qgis/QGIS-Enhancement-Proposals/pull/15 >> >> --strk; >> >> () ASCII ribbon campaign -- Keep it simple ! >> /\ http://strk.keybit.net/rants/ascii_mails.txt > > -- > > () ASCII ribbon campaign -- Keep it simple ! > /\ http://strk.keybit.net/rants/ascii_mails.txt > _______________________________________________ > Qgis-developer mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
