[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Review Request: KPixmapSequence: painting spinners made easy
From:       "Matthew Woehlke" <mw_triad () users ! sourceforge ! net>
Date:       2009-08-18 0:35:41
Message-ID: 20090818003541.19327.33435 () localhost
[Download RAW message or body]



> On 2009-08-17 15:49:17, Pino Toscano wrote:
> > Few general notes:
> > 
> > a) please implement the tiled loading for XDG icons of the "animations" category as done in \
> > KAnimatedButton: this means not assuming that a pixmap is 1xN or Nx1, but NxM: in such \
> > case, you should check W and H to be exact multipliers of the wanted icon size; for example \
> > you can have a 88x44 pixmap representing a 8-step animation for the 22px size of an \
> > icon/animation. See the code in KAnimatedButton for an idea.
> > 
> > b) missing \since 4.4 in the apidox of the new classes
> > 
> > c) maybe add in KPixmapSequence the icon loading by icon name of the XDG icon theme (using \
> > KIconLoader loading from the "animations" category)? 
> > d) still too many spaces around brackets :P
> > 
> > In general I like the idea, I did a small animated widget for Okular (see \
> > kdegraphics/okular/ui/animatedwidget.*) for doing this job, so count on Okular as possible \
> > user for this new class.

To Sebastian, regarding (d): if you're doing mass reformatting anyway, I'd suggest astyle as \
per http://techbase.kde.org/Policies/Kdelibs_Coding_Style ... that way either Pino will be \
happy and you will have expended less effort, or else you at least have the satisfaction of \
griping that techbase needs a better astyle invocation ;-).


- Matthew


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1345/#review2060
-----------------------------------------------------------


On 2009-08-17 15:05:35, Sebastian Trueg wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1345/
> -----------------------------------------------------------
> 
> (Updated 2009-08-17 15:05:35)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> Showing a spinner to indicate a work in progrss is a typical task. Gwenview does have a nice \
> spinner when loading images. Aurelien and I extracted the code from Gwenview and molded it \
> into three nice classes that allow to create spinners very easily in any situation. At the \
> moment the classes are used in Gwenview and in Nepomuk. 
> KPixmapSequence: a simple container class that loads a sequence of pixmaps and provides the \
>                 frames through a simple interface.
> KPixmapSequenceOverlayPainter: Installs an event filter to paint a KPixmapSequence onto any \
>                 widget using Qt::Alignment or a relative placement.
> KPixmapSequenceWidget: A simple widget using the overlay painter to draw a spinner while the \
> widget is visible. 
> We propose an addition to kdeui.
> 
> 
> Diffs
> -----
> 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequencewidget.cpp PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequencewidget.h PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequenceoverlaypainter.cpp PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequence.cpp PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequenceoverlaypainter.h PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/util/kpixmapsequence.h PRE-CREATION 
> trunk/KDE/kdelibs/kdeui/CMakeLists.txt 1006831 
> 
> Diff: http://reviewboard.kde.org/r/1345/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Sebastian
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic