<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 3:42 AM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear devs,<br>
<br>
sometimes I would like to add some multiline text on the module GUI to<br>
help to understand the meaning of the parameter, and/or understand the<br>
logic of the module.<br>
<br>
Do you think that would be possible to have a description option that<br>
it does not take any input but allow us to be more descriptive inside<br>
the module interface?<br>
<br>
for instance if I have two mutual exclusive options like:<br>
<br>
{{{<br>
#%module<br>
#%  description: test script<br>
#%end<br>
...<br>
#%option<br>
#% key: raster<br>
#% type: string<br>
#% gisprompt: old,cell,raster<br>
#% description: Raster input map:<br>
#% required : no<br>
#%end<br>
#%option<br>
#% type: description<br>
#% answer: OR<br>
#%end<br>
#%option<br>
#% key: vector<br>
#% type: string<br>
#% gisprompt: old,vector,vector<br>
#% description: Vector input map<br>
#% required : no<br>
#%end<br>
}}}<br>
<br>
So in the gui of the module I will have:<br>
<br>
Raster input map:<br>
-> raster menu<br>
<br>
OR<br>
<br>
Vector input map:<br>
-> vector menu<br>
<br>
or add a relation, to do something like:<br>
<br>
{{{<br>
#%module<br>
#%  description: test script<br>
#%end<br>
...<br>
#%option<br>
#% key: raster<br>
#% type: string<br>
#% gisprompt: old,cell,raster<br>
#% description: Raster input map:<br>
#% required : yes<br>
#%end<br>
#%option<br>
#% key: vector<br>
#% type: string<br>
#% gisprompt: old,vector,vector<br>
#% description: Vector input map<br>
#% required : yes<br>
#%end<br>
#%keyrelation: raster OR vector<br>
}}}<br>
<br>
Is it this possible already? If yes how? Do you have some links?<br></blockquote><div><br></div><div><br></div><div>Requiring raster OR vector is possible already.</div><div><br></div><div>#%rules</div><div>#% requires: raster, vector</div><div>#%end</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Do you think that would be feasible add also a LaTex option?<br>
To do something like:<br>
<br>
{{{<br>
#%module<br>
#%  description: test script<br>
#%end<br>
...<br>
#%option<br>
#% guisection: Costs<br>
#% type: description<br>
#% answer: This option is used to compute the total<br>
#% cost of %%%% using this formula:<br>
#%end<br>
#%option<br>
#%option<br>
#% guisection: Costs<br>
#% type: latex<br>
#% answer: \rho = \frac{\gamma}{\pi}<br>
#%end<br>
#%option<br>
#% guisection: Costs<br>
#% key: gamma<br>
#% type: double<br>
#% description: $\gamma$ value<br>
#% required : no<br>
#% answer: 12.45<br>
#%end<br>
#%option<br>
#% guisection: Costs<br>
#% key: currency<br>
#% type: string<br>
#% description: the currency<br>
#% required : no<br>
#% answer: €<br>
#%end<br>
}}}<br>
<br>
In this way the GUI could be more descriptive and clearer.<br>
<br>
I have not idea if this could be feasible or not... What do you think?<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888"><br>
Pietro<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></font></span></blockquote></div><br></div></div>