<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 9:13 AM, Huidae Cho <span dir="ltr"><<a href="mailto:grass4u@gmail.com" target="_blank">grass4u@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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></span><div><div class="h5"><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></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><div class="h5"><div><br></div></div></div></div></div></div></blockquote><div><br></div><div>Can this have a description? I'm not sure where we would show it but it might be useful. However, I'm against introducing some general inter-option info, I'm not sure how it would work in code, GUI, command line and manual page. You can always include this information into description of individual options. Details can go to a manual page which is accessible from GUI, using man or in web browser.<br><br></div><div>I don't see how you would like the GUI to look like. So if you have some ideas or examples, please share. I can see what Moritz is saying, GUI should be the same as command line because they are two interfaces to the same thing.<br><br></div><div>Vaclav<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><div></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><font color="#888888"><br>
Pietro<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">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></div></div><br></div></div>
<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><br></blockquote></div><br></div></div>