<div dir="ltr">Hi,<br><br><div><div class="gmail_extra"><div class="gmail_quote">On Mon, Jan 28, 2013 at 6:17 AM, Régis Haubourg <span dir="ltr"><<a href="mailto:regis.haubourg@eau-adour-garonne.fr" target="_blank">regis.haubourg@eau-adour-garonne.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">martin Dobias wrote<br>
> I have briefly looked into the code and it seems that new labeling<br>
>> stores data-defined attributes by index instead of name. If so,<br>
>> that's<br>
>> the source of the problem and it should be changed to read/write<br>
>> names<br>
<br>
Hi all,<br>
+1 for switching storage of data defined fields with names and not indexes.<br>
It was a limit I previously pointed and this is really weak if data field<br>
order change. But we need retrocompatibility with old projects.  Does that<br>
sounds possible?<br>
régis<br></blockquote><div><br></div><div>So, is anyone working on this? I can devote some time this coming weekend. Pretty important to fix this, then make it compatible with < 2.0 projects.<br><br>Similarly, data defined properties are only a 1-to-1 relationship 
(currently property-to-field index), with no defined relationship between 
themselves, the QgsPalLayerSettings (if any) to override, the associated QgsField, any defined QgsExpression, or any assigned 'buddy' gui elements. Nathan suggested a data binding 
class that could possibly be inherited by gui classes to make utilizing 
data defined overrides (not just for labeling) within the app easier and more abstracted. I think
 it is worth pursuing.<br><br></div><div>On another note (and yet a bunch more refactoring), most of the QgsPalLayerSettings are directly accessed public properties. These should probably be switched over to some form of container object (QMap?) no?<br>
<br></div><div>Regards,<br></div><div><br></div><div>Larry<br></div><div> <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Labeling-data-defined-fields-shifted-after-new-vector-API-tp5030238p5030276.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Labeling-data-defined-fields-shifted-after-new-vector-API-tp5030238p5030276.html</a><br>

Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br></div></div></div>