Bug 147533

Summary: Rating filter in the status bar
Product: [Applications] digikam Reporter: Arnd Baecker <arnd.baecker>
Component: Albums-FiltersAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, kde_bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 0.9.3
Sentry Crash Report:
Attachments: provide a rating filter in the status bar
new version of patch with full rating filer widget implemented

Description Arnd Baecker 2007-07-04 12:38:30 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources

To quickly filter images with a minimal rating, a rating filter 
in the status line would be very helpful:
   Filter >= *****
Clicking on the "*" would allow to set the number of required stars.
Comment 1 caulier.gilles 2007-07-04 12:44:05 UTC
Arnd, 

I would to see a more advanced tool to sort items from Album : by Rating of course, but also by filename extension (RAW, JPEG, PNG, TIFF, etc.)

There is already a report in this way in B.K.O

Note : you can already short by Rating the Album contents using "View/Sort Image/By Rating".

Gilles
Comment 2 Arnd Baecker 2007-07-04 13:18:03 UTC
Yes, that would be nice as well, maybe even extended in the following way
- file extension [*.JPG, ...]  [x] ignore case
- mime type filter
- image name filter
- album name filter
- Exif filtering
- IPTC filtering
(Essentially anything which will be in the database ...)

But this is more generell and a separate B.K.O entry should be
filed for this. I wanted to keep this one really simple

> There is already a report in this way in B.K.O


"Wish: Add a file type filter tab to the right":
http://bugs.kde.org/show_bug.cgi?id=131963
(assigned to Luka...)

> Note : you can already short by Rating the Album contents using "View/Sort Image/By Rating".


Yes, I know, but I want to exclude items from the view.
Essentially, this can be done by using advanced searches,
but this is too complicated/takes too long to set up for each situation.

Best, Arnd
Comment 3 Arnd Baecker 2007-10-05 19:59:16 UTC
Created attachment 21758 [details]
provide a rating filter in the status bar

This patch provides the routines to perform filtering by rating.
The setup is done for >=, = and <= filtering.
Currently an additional  box with stars is shown in the status bar
and only >= filtering is possible.

On the side of the GUI for the status bar some improvements might be needed
(smaller stars, a >=, =, <= selection and such).
Comment 4 caulier.gilles 2007-10-05 23:09:14 UTC
Arnd,

Patch tested. Work fine. I love the idea. Code need to be improved but it's in the good way.

I recommend to use DTipTracker widget from digikam/libs/widgets/common/dcursortracker.cpp to display info in live over the rating filter widget.

Look into digikam/libs/widgets/common/statuszoombar.cpp to take a look about how to use it.

Gilles
Comment 5 caulier.gilles 2007-10-09 20:50:17 UTC
Created attachment 21783 [details]
new version of patch with full rating filer widget implemented

Arnd,

This new version of patch has the rating filer widget fully implemented. All
work fine on my computer, but it still something to do : saving rating filter
condition in digiKam rc file using AlbumSettings class...

Gilles
Comment 6 caulier.gilles 2007-10-09 20:52:24 UTC
... and of course restoring rating filter condition between digiKam session using AlbumSettings class...

Gilles
Comment 7 Arnd Baecker 2007-10-22 14:11:53 UTC
Implemented in the kde3 branch:
http://websvn.kde.org/?view=rev&revision=728092

Awaits backporting to KDE4 and can then be closed.
Comment 8 caulier.gilles 2007-10-22 16:44:07 UTC
SVN commit 728144 by cgilles:

backport commit #728092  from KDE3 branch to KDE4
BUG: 147533


 M  +3 -1      CMakeLists.txt  
 M  +51 -8     albumlister.cpp  
 M  +13 -0     albumlister.h  
 M  +37 -7     albumsettings.cpp  
 M  +6 -0      albumsettings.h  
 M  +22 -1     digikamapp.cpp  
 M  +2 -0      digikamapp.h  
 M  +3 -0      digikamappprivate.h  
 AM            ratingfilter.cpp   [License: GPL]
 AM            ratingfilter.h   [License: GPL]


WebSVN link: http://websvn.kde.org/?view=rev&revision=728144
Comment 9 Arnd Baecker 2007-10-23 10:29:50 UTC
*** Bug 148993 has been marked as a duplicate of this bug. ***