<p>How about saving expressions in a "Clipbook"?  An expression can be pasted into a "Clipbook" which would also bring up a dialog to enter a name for the expression.  Several "Clipbooks" can be created in order to organize these saved expressions.  This would be handy in the Python console too. Btw, this how the text editor called Textpad works.</p>

<div class="gmail_quote">On Oct 18, 2012 11:21 PM, "Andreas Neumann" <<a href="mailto:a.neumann@carto.net" target="_blank">a.neumann@carto.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi Paolo,<br>
<br>
What do you expect from the loading? Automatic application to the field calculator (sounds scary to me), or just the ability to choose from past expressions?<br>
<br>
If the latter, then maybe a central expression storage (per user) would make more sense than a per layer expression store. Because you may want to reuse the same expression on another similar layer, even in different projects.<br>


<br>
To me the expressions do not have a natural 1:1 match to a layer like the .prj or the .qml file has.<br>
<br>
But I can see value in a central storage of expressions used in the past, regardless of layer and QGIS project. But it would just be used as a way to load and save expressions as templates to start from and not an automatic application to some calculation or the label engines. These settings should be better stored in the project itself rather than in a separate file.<br>


<br>
Do we agree on that or did I misunderstand you?<br>
<br>
Andreas<br>
<br>
On Fri, 19 Oct 2012 07:58:57 +0200, Paolo Cavallini wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Il 19/10/2012 07:51, Andreas Neumann ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For me personally, copy/paste works fine. No need for load and save.<br>
<br>
I do not fully understand the use case for autoloading (association<br>
with a layer). Can you explain why this is desirable? Do you really<br>
always want the same expression in all projects for one particular layer?<br>
</blockquote>
I think users will fin useful to have their expression per layer, so<br>
they can refresh a field with the same calculation, without the need to<br>
rememberwhich formula they used (very stupi example: refreshing the AREA<br>
field). In this way, a DBF can be used almost like a spreadsheet.<br>
For advanced users it is probably useless, for newbies it can save a<br>
loto of time, effort and frustration remembering which expression they<br>
used, what is the exact syntax, where (if) they copied the expression<br>
somewhere, etc.<br>
<br>
All the best.<br>
</blockquote>
<br>
-- <br>
--<br>
Andreas Neumann<br>
Böschacherstrasse 10A<br>
8624 Grüt (Gossau ZH)<br>
Switzerland<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div>