Hi all,

I am currently working on the integration of the Atlas plugin into the core.

I noticed the "replaceDateText" method of the QgsComposerLabel class that is aimed at dealing with the very specific "$CURRENT_DATE" expression and replace it with ... the current date.

For the sake of homogeneity and considering we have a powerful way of handling expressions, why not consider text in labels where expressions are surrounded by '[%' and '%]'. So $CURRENT_DATE would be replaced by date manipulations based on '[% $now %]' ?

The other change I propose is to enhance the optional "substitution map" that can be set on an expression text. It is used to define special column names like $layerid, $CWD and so on when using Actions on a layer. Until now, they are used for text replacement and cannot be used within an expression.
My proposal is to make them first-class citizen within the grammar.

I have a local branch with these proposed changes. If there is no special objections, I am about to propose them.
--
Hugo Mercier
Oslandia
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to