<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EstiloCorreioElectrnico18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Etienne,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I was not opposing your idea. Just proposing a default behavior for the group/children visibility pattern.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I sometimes do have need for your use case. Maybe there could be an option in the context menu when right-clicking a layer – eg “Mutually exclusive
 layers”. A popup window could appear that allows you to select the 2 “opposing” collections of layers, and then these could appear with a radio button in the maplegend.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Duarte<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Etienne Tourigny [mailto:etourigny.dev@gmail.com]
<br>
<b>Enviada:</b> sexta-feira, 11 de Outubro de 2013 19:52<br>
<b>Para:</b> Vincent Schut<br>
<b>Cc:</b> qgis-developer<br>
<b>Assunto:</b> Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Oct 11, 2013 at 8:35 AM, Vincent Schut <<a href="mailto:schut@sarvision.nl" target="_blank">schut@sarvision.nl</a>> wrote:<o:p></o:p></p>
<div>
<p class="MsoNormal">On 10/11/13 11:48, Sandro Santilli wrote:<o:p></o:p></p>
<p class="MsoNormal">On Fri, Oct 11, 2013 at 09:33:05AM +0000, Andreas Neumann wrote:<o:p></o:p></p>
<p class="MsoNormal">Am 11.10.2013 09:22, schrieb Sandro Santilli:<o:p></o:p></p>
<p class="MsoNormal">On Fri, Oct 11, 2013 at 09:13:03AM +0000, Duarte Carreira wrote:<o:p></o:p></p>
<p class="MsoNormal">The group checkbox, imho, should *not always* switch children on/off. You should have a modifier to get this as a secondary behavior, like pressing the ctrl key when (un)checking the group checkbox. The primary behavior of the group switch
 should be to make the children invisible or visible, regardless of the children's visibility being on or off.<br>
<br>
In the primary behavior when the parent is turned OFF, the children are not drawn but retain their checked or uncheck status.<br>
If you use the secondary behavior then unchecking the parent will uncheck the children. Same would apply when checking the parent on.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Agreed, sounds like a sensible behavior to me.<o:p></o:p></p>
<p class="MsoNormal"><br>
Yes, a sensible behavior.<br>
<br>
But there is still use-case for the radio-button like behaviour. Imagine<br>
having a group with a series of orthoimages of different years and you<br>
quickly want to see each year. In this case, the radio-button behaviour<br>
would save you one click. So I don't think that this contradicts the<br>
other proposal listed above here.<o:p></o:p></p>
<p class="MsoNormal"><br>
Maybe this could be obtained with secondary behavior (SHIFT-click) on layers,<br>
but it sounds like something that easily becomes confusing (conflicting<br>
with radio-on-groups, undefined behavior for unchecking etc.).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">switching between several raster layers is exactly the main (only) use I have for this, and as we are mainly doing remote sensing stuff here, including lots of time series, it is something I really frequently miss. (Practical example: you
 have several Landsat rasters from different times for the same area, all of them have clouds but not in the same place. By switching between layers, you can easily get a 'cloudfree' view of the entire area.)<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I have made the Loop Visible Layers plugin for just that. Add the reaster layers you want to see in a group, then select that group in the Loop Visible Layers dock and click play. You will see those raster layers one at a time. <o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><br>
IMHO 'undefined behavior for unchecking' should not be a problem; usually unchecking simply is disabled for radio groups. I do not know any UI with radio groups where you can uncheck a selected item by clicking it again... I think having it as a secondary behaviour
 is just confusing. I'd rather see groups have a 'selection type' property, which defines the selection behaviour within that group (and on that level only). Could you explain what you mean with 'conflicting with radio-on-groups' (what are 'radio-on-groups')?<span style="color:#888888"><br>
<br>
<br>
<span class="hoenzb">Vincent.</span></span><o:p></o:p></p>
<div>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
--strk;<br>
<br>
_______________________________________________<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/mailman/listinfo/qgis-developer</a><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">_______________________________________________<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/mailman/listinfo/qgis-developer</a><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>