<br><br><div><span class="gmail_quote">2008/3/6, Arnd Baecker <<a href="mailto:arnd.baecker@web.de">arnd.baecker@web.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> <br> On Thu, 6 Mar 2008, Pau RuŠ¨lan Ferragut wrote:<br> <br> > On Wed, Mar 05, 2008 at 10:06:32PM +0100, Arnd Baecker wrote:<br> >> On Wed, 5 Mar 2008, Pau RulĄ¤lan Ferragut wrote:<br> >>> 2008/3/5, Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>>:<br>
 >>>> 2008/3/5, Pau RulĄ¤lan Ferragut <<a href="mailto:paurullan@bulma.net">paurullan@bulma.net</a>>:<br> ><br> >>>>> The first thing I would like to do is to get rid of the stoping thumbnail<br>
 >>>>> bug:<br> ><br> >>>> - a class named PixmapManager handle thumbs image for each icon item.<br> >>>> - a class named AlbumIconView manage view of icon from main interface.<br>
 ><br> >>> I am stuck on AlbumIconView::nextItemToThumbnail(). I would like to use<br> >>> Iconview::firstItem() to get the first item of the album but I cannot find<br> >>> any object or way to do it. Any ideas?<br>
 ><br> >> Looking at iconview.cpp it *seems* (Gilles, correct me!),<br> >> that two new public methods<br> >>    firstItem()  and lastItem()<br> >> have to be introduced, which just return<br> >>   d->firstContainer and    d->lastContainer ,<br>
 >> respectively.<br> ><br> > These methods exists.<br> <br> <br>Hmm, you are right, they exist.<br> But do they return  d->firstContainer and    d->lastContainer ?<br> They  return d->firstGroup->firstItem() and  d->lastGroup->lastItem() .<br>
 <br> Well, I better shut up, because I don't know<br> the meaning of Groups and Containers<br> (and I could not find any explaining comments in the code ...)<br> <br> Gilles, could you maybe explain?</blockquote><div>
<br></div><div>Groups of items are used when multiple album are displayed in the same time in icon view for ex. when you use searches tools or recursive album mode.<br><br>firstItem() return the first item from the first group available on icon view, and lastItem() the last item from the last group. If there is just one group you have the first item and the last item as well.<br>
<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> My problem is that my experience with C++ is like zero<br> > and I do not find the way to those methods without a IconView object. Another<br>
 > way would be to get this IconView but I do not find from where.<br> ><br> > I have this from the actual implementation:<br> >        AlbumIconItem* firstItem = static_cast<AlbumIconItem*>(fItem);<br> >        AlbumIconItem* lastItem  = static_cast<AlbumIconItem*>(lItem);<br>
 >        AlbumIconItem* item      = firstItem;<br> ><br> ><br> > and want to add something like these:<br> >       AlbumIconItem* firstItem = firstItem();<br> >       AlbumIconItem* lastItem  = lastItem();<br>
 >       AlbumIconItem* item      = firstItem;<br> <br> <br>In principle<br>     IconItem *fItem = firstItem();<br>     IconItem *lItem = lastItem();<br> would technically work, but I am not sure, whether that would<br>
 do what we want ...</blockquote><div><br>Yes this is right, but to have tested this patch on my computer, this is not enough to solve the problem. thumbs rendering is broken.<br></div><br></div>Gilles<br>