<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font size="-1"><font face="Verdana">Hi all,</font></font></p>
    <p><font size="-1"><font face="Verdana">Jumping in... Quite
          reluctant at first, I think it's indeed a very nice
          improvement.</font></font></p>
    <p><font size="-1"><font face="Verdana">Matthias' idea is quite nice
          and turns off my concerns.</font></font></p>
    <p><font size="-1"><font face="Verdana">I would prefer first
          approach (switching brtween partial and checked or unchecked)
          as I find it more intuitive and also more practical: one click
          only (I often switch on and off to make features blink).</font></font></p>
    <p><font size="-1"><font face="Verdana">Does our LayerTreeMaster
          (aka Martin) has some concerns for this change?</font></font></p>
    <p><font size="-1"><font face="Verdana">Denis<br>
        </font></font></p>
    <div class="moz-cite-prefix">On 11/16/2016 02:05 PM, Matthias Kuhn
      wrote:<br>
    </div>
    <blockquote
      cite="mid:b8c76294-a01b-a4aa-4246-958bbd3c987f@opengis.ch"
      type="cite">
      <pre wrap="">

On 11/16/2016 01:54 PM, Even Rouault wrote:
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">The visualisation could still be tri-state, I think

* Unchecked
* Checked (All subitems checked)
* Semi-checked (Checked but some sub-items are invisible)

Clicking would then switch between either Unchecked and Semi-Checked or
Unchecked and Checked depending on the subitems.

</pre>
        </blockquote>
        <pre wrap="">
That might work indeed. It is just hard to imagine what is the more natural 
way of handling this. I couldn't find something similar in other applications
Let me think out loud to a scenario :-)
</pre>
      </blockquote>
      <pre wrap="">
Another scenario would be:

When clicking, the group toggle between unchecked, partially checked,
checked. At the same time it caches the state for all subitems to
restore the partially checked state when switching to this.

At any time, when a subitems check state is changed, all parents
invalidate their cached states and override it with the new partial
check state. If the last remaining unchecked item is checked (and vice
versa) clicking the group skips the partially checked state...

Maybe that would be more natural?

</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <pre wrap="">The approach sounds good. What do you think about integrating on both
levels (group and layer) the methods isVisible() and
itemVisibilityChecked() methods?
</pre>
        </blockquote>
        <pre wrap="">
If we allow isVisible() for groups, it would need to be 3 state : 
TotallyVisible, PartiallyVisible, Invisible (probably better than using the 
Checked semantics directly, so we can decorrelate from how we render partial 
visibility)


</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
  </body>
</html>