<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 3:13 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
Vaclav Petras wrote:<br>
<br>
> > Requiring raster OR vector is possible already.<br>
> ><br>
> > #%rules<br>
> > #% requires: raster, vector<br>
> > #%end<br>
><br>
> Can this have a description? I'm not sure where we would show it but it<br>
> might be useful. However, I'm against introducing some general inter-option<br>
> info, I'm not sure how it would work in code, GUI, command line and manual<br>
> page. You can always include this information into description of<br>
> individual options. Details can go to a manual page which is accessible<br>
> from GUI, using man or in web browser.<br>
><br>
> I don't see how you would like the GUI to look like. So if you have some<br>
> ideas or examples, please share. I can see what Moritz is saying, GUI<br>
> should be the same as command line because they are two interfaces to the<br>
> same thing.<br>
<br>
</span>Some possibilities which spring to mind:<br>
<br>
* Grey-out (or otherwise mark as "unavailable") options which cannot<br>
be used in conjunction with options already given. Indicate via a<br>
tooltip which option causes this option to be unavailable.<br>
<br>
* Highlight options which are not yet given but required by the<br>
existing options. Indicate via a tooltip which option causes this<br>
option to be required.<br>
<br>
* Display a warning message (in a status area, not a modal warning<br>
dialog) if any of the inter-dependency rules are violated, rather<br>
than just waiting until you run the module and having that fail with an<br>
error.<br>
<br>
* Alternatively, grey-out the "Run" button (or add a warning icon next<br>
to it) if any of the inter-dependency rules are violated. Indicate the<br>
nature of the problem via a tooltip.<br>
<br>
* In the specific case where you have both "requires" and "exclusive"<br>
rules with the same list of options, radio buttons could be added for<br>
them (this would probably require all of the options to be in the<br>
same guisection).<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>If I am not wrong, we are still missing the relations in the modules' xml representation. So it has to be first added there and then the python class Task must incorporate it. Then we start working on the GUI.</div><div><br></div><div>Anna</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div></div>