<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 3:31 PM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 25/10/14 02:58, Anna Petrášová wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Tue, Oct 14, 2014 at 11:56 AM, Anna Petrášová <<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a><br>
<mailto:<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>><u></u>> wrote:<br>
<br>
    Hi,<br>
<br>
    On Tue, Oct 14, 2014 at 8:58 AM, Vaclav Petras <<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a><br>
    <mailto:<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>>> wrote:<br>
<br>
<br>
<br>
        On Tue, Oct 14, 2014 at 5:28 AM, Moritz Lennert<br>
        <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a><br>
        <mailto:<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.<u></u>worldonline.be</a>>> wrote:<br>
<br>
            On 14/10/14 10:38, Paulo van Breugel wrote:<br>
<br>
<br>
<br>
                On Tue, Oct 14, 2014 at 10:06 AM, Moritz Lennert<br>
                <<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a><br>
                <mailto:<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.<u></u>worldonline.be</a>><br>
                <mailto:<a href="mailto:mlennert@club." target="_blank">mlennert@club.</a>__<a href="http://worldonline.be" target="_blank">worldo<u></u>nline.be</a><br>
                <mailto:<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.<u></u>worldonline.be</a>>>> wrote:<br>
<br>
                     On 14/10/14 09:14, Paulo van Breugel wrote:<br>
<br>
                         Putting the 'ignore' option in  separate tab<br>
                with patterns is fine I<br>
                         think. Also, for g.remove to have the 'type'<br>
                and 'name' together<br>
                         in one<br>
                         tab is also a good idea imho.<br>
<br>
                         I am not sure I understand the last question;<br>
                you mean to add the<br>
                         possibility to make an option required but<br>
                still have the option<br>
                         to put<br>
                         it in another section? I think that would be a<br>
                good idea, not<br>
                         only in<br>
                         this case, but more in general, it would make<br>
                it easier to create an<br>
                         consistent interface for modules that require<br>
                more than a few<br>
                         inputs.<br>
                         It might be a good idea to flag options as<br>
                required, e.g., by adding<br>
                         '(required)' after the option name?<br>
<br>
<br>
                     I'm not sure I agree with this as this would leave<br>
                the door open for<br>
                     required flags to be disseminated across several<br>
                sections. I like<br>
                     the fact that the use immediately sees what is<br>
                required to run the<br>
                     module.<br>
<br>
<br>
                I guess it is a matter of preference. There are some<br>
                grey area or cases<br>
                where this separate 'required' tab does not really work<br>
                i.m.h.o.<br>
<br>
                The '-f' flag in g.remove is one example. You can run<br>
                the module without<br>
                (so it shouldn't go in the 'required' tab), but you<br>
                can't do what the<br>
                module is basically meant to do without it, which is<br>
                removing layers (so<br>
                in that sense it should be a required choice).<br>
<br>
                Perhaps a better example is r.random. One of the<br>
                required options is the<br>
                output layer. That can be a raster layer, a vector layer<br>
                or both.<br>
                Because of this construct, the required output name<br>
                cannot be marked as<br>
                required. Solution is to use a separate tab 'optional'<br>
                where the user<br>
                can provide the output name of the vector, raster or<br>
                both layers. So the<br>
                user has to fill in required information in a 'required<br>
                tab' and an<br>
                'optional' tab. I don't think it is really problematic<br>
                as failing to<br>
                give the output name results in a clear error message,<br>
                but it isn't<br>
                exactly consistent.<br>
<br>
<br>
            The new options to declare parameters as mutually exclusive<br>
            or as "at least one is requried of the group" might be a<br>
            solution to that, but no idea how to implement this in the GUI.<br>
<br>
        Put this to GUI is certainly needed but challenging and I it<br>
        will not be included in 7.0. Perhaps we should put this to the<br>
        manual in some way. But modules are not using it anyway.<br>
<br>
        Anyway, these "at least one required" are causing Required<br>
        section to be less and less used, so that's another reason why<br>
        it makes sense to leave it out sometimes.<br>
<br>
<br>
    I think it makes thanks to 'override' the required property with the<br>
    guisection. If we do it for a module, we should make sure there is<br>
    no Required tab at all. I think having required parameters in custom<br>
    tabs and eliminate Required tab is totally fine. Having Required tab<br>
    and at the same time have required parameters in other sections<br>
    would not work well.<br>
<br>
<br>
    Also we could mark the required options in the gui somehow, for<br>
    example add a red star? In the code I see attempts to render the<br>
    labels as bold, it is not used eventually, but I don't think bold is<br>
    the best way anyway.<br>
<br>
<br>
I attached screenshots with using the red star for required options (and<br>
in this case I was also testing when the guisection is preferred to<br>
required). In my opinion, it gives you good idea what is required or<br>
not. There are some problems coming from the wxPython limitations, for<br>
example the one which you see on the second screenshot: when the label<br>
is part of the border, I can't set the asterisk red, the color can be<br>
changed only for the entire label. But for majority options, it works.<br>
<br>
Regarding the required vs. guisection, I really think we should try to<br>
organize the options logically, not based on required/optional. Some<br>
distinction of the required options is then needed and the red asterisk<br>
seems to be a good solution. But we can discuss some other options too,<br>
of course.<br>
</blockquote>
<br>
If you really want to go down that path (it would get a 0 from me), then please remove the required tab completely. It will be very confusing to have a required section, but not with all required parameters in it.<br></blockquote><div><br></div><div>Agree<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I personally like the way the required tab focuses attention on the most important parameters, even though I do understand that there are ambiguities that this system creates. I'm not sure, though, that getting rid of the required tab is the solution. But if you go in that direction it should be all the way.<br></blockquote><div><br></div><div>I understand these boil down to different preferences.. but just to argue further in favour of the proposed changes.. from my own user experience, and now from trying to train a colleague in using GRASS GIS.. what most unambiguously focusses attention to the most important parameters is the initial tab that opens when opening the window. This is now most often the 'required' tab, but it needn't be. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Moritz<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
</font></span></blockquote></div><br></div></div>