[Qgis-developer] How to refresh the legend from a plugin

Jürgen E. Fischer jef+qgis at norbit.de
Mon Jul 30 12:04:50 EDT 2007


Hi Marco,

> >PS: I also noticed that some functionality could be moved from gui/app
> >classes to core classes to be more useful to plugins. E.g. what
> >QgsUniqueValueDialog::changeClassificationAttribute() does could be
> >moved to QgsUniqueValueRenderer
> 
> The extension of the plugin interface (as done in your patch) is the way to 
> go. Moving the content of QgsUniqueValueDialog::changeClassificationAttribute() to 
> QgsUniqueValueRenderer is not possible, because the renderer classes (in core 
> lib) are not allowed to have any dependencies on gui classes (e.g. legend).

Sure, not as is, but like in the attached patch.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-0
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

-------------- next part --------------
A non-text attachment was scrubbed...
Name: completeclasses.diff
Type: text/x-diff
Size: 10151 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20070730/93133057/completeclasses.bin


More information about the Qgis-developer mailing list