Bug 148198

Summary: Rating/Editing of images in Thumbnailview
Product: [Applications] digikam Reporter: Bernhard Rode <ebbo>
Component: Thumbs-BarViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, kde_bugs
Priority: NOR Flags: caulier.gilles: Junior_Jobs+
Version: 0.10.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0
Sentry Crash Report:
Attachments: rating icon view item on the fly
rating icon view item on the fly version 2

Description Bernhard Rode 2007-07-25 16:16:56 UTC
Version:           0.9.2 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

In the Album/Thumbnailview, it is not possible to rapidly change the shown Informations (Rating, Filename,....)
So the user might have a rapid Method of Rating a whole Set of Pictures.
Comment 1 Arnd Baecker 2007-07-25 18:22:15 UTC
Hi Bernhard,

while I am able to understand the first part of your statement,
I have problems with the second part (After "So ...").
Though I have some guesses ;-), could you please explain in more detail?

Thanks, Arnd
Comment 2 Bernhard Rode 2007-07-25 18:51:34 UTC
I think of something like iTunes and Amarok do.
p.e.
When I look at the Thumbnailview, I can show the image rating below the Image, but I'm not able to change it, i have to click the image and go to the right panel and click on the rating to change it.
So why not use the "Rating Bar" from the right Panel directly in the Thumbnailview.
Just go to video.google.com and watch a clip, there is a rating functionality which does what I mean in the upper left corner while watching.


Did you understand what I mean?
I'm currently at the office, I will try to explain more detailed at home.
Comment 3 caulier.gilles 2007-07-25 18:57:57 UTC
Bernhard,

Sound like to superimpose the widget on right side bar over the thumbs to rate images.

I think it's more easy to do it with QT4/KDE4 (place the current rating widget over the icon item). 

Marcel, what do you think about ?

Gilles
Comment 4 Mikolaj Machowski 2007-07-25 19:10:13 UTC
> I think it's more easy to do it with QT4/KDE4 (place the current rating
> widget over the icon item).


And mini icons for rotating :)
Comment 5 Bernhard Rode 2007-07-25 19:47:36 UTC
Like in 
http://www.youtube.com/watch?v=rk2-uIE3nCg
really would be nice
Comment 6 Arnd Baecker 2007-07-25 23:02:59 UTC
I presently have modem access only, so I can't watch it.
Now I do understand your wish and it makes perfect sense
(together with the suggestion of Mikolaj and maybe a mini-globe
icon to indicate GPS coordinates - but that would be a separate
wish ;-)

Just for completeness: you are aware of CTRL-1 to CTRL-5
shortcut to set the rating of the selected image(s).
Comment 7 Bernhard Rode 2007-07-25 23:13:04 UTC
I'm aware of the shortcuts, but the normal user wants to use his mouse for most of the time.

I've heard from the Amarok Devs, that say want to use Plasma Widgets for some of their GUI parts.

http://amarok.kde.org/wiki/CoverBling_overview

What do you think about that?
Or should that be posted under another topic?



Comment 8 Marcel Wiesweg 2007-07-26 20:25:52 UTC
Plasma is QGraphicsView + a layer to make things easier. We can evaluate QGraphicsView - with no predetermined result as to use it or not - but only after everything has settled down and stabilized in the porting.
Comment 9 Bernhard Rode 2007-07-26 22:59:23 UTC
Ok I understand that point, but I think the idea is great because of reusable elements (p.e. amaroks new cover flow...) so you should leave in your head. btw. look how the amarok guys deal with it.
Comment 10 caulier.gilles 2008-12-05 22:31:03 UTC
Another candidate for Qt4 model/view port of albumiconview

Gilles Caulier
Comment 11 caulier.gilles 2009-01-06 21:59:20 UTC
Created attachment 29982 [details]
rating icon view item on the fly

I'm currently working on this file.

Patch is not yet finalized, but it's ready to be tested.

It only patch Iconview. in the future, i will do thumbbar item too...

Marcel, Andi,

For me, this will be the last feature to add with Qt3support classes. All future developments on iconview/thumbbar need to use Qt4 Model/view

Best

Gilles Caulier
Comment 12 Andi Clemens 2009-01-06 22:25:14 UTC
Seems to work fine, only negative point (at least here with KDE 4.2) is that the rating widget moves like 10 pixels up when you hover over with the mouse, so that vertically thumbnails get partly hidden by the rating widget.
Comment 13 caulier.gilles 2009-01-07 10:04:01 UTC
Created attachment 29993 [details]
rating icon view item on the fly version 2

New version ready to commit. several improvement and polish have been done.

Some factoring of code still todo.

Please test

Gilles
Comment 14 Andi Clemens 2009-01-07 10:42:19 UTC
Works fine...

one liiiitlllle (:-)) refinement can be done when hovering over the rating widget:

1. set rating of an image to 5
2. hover over the widget
3. it moves like 3 pixels to the left

But this is really a tiny detail, so I think committing will be ok.

Andi
Comment 15 caulier.gilles 2009-01-07 11:19:36 UTC
SVN commit 906970 by cgilles:

digiKam from trunk: add support to rating icon view item on the fly.
BUG: 148198


 M  +1 -0      CMakeLists.txt  
 M  +25 -7     digikam/albumiconitem.cpp  
 M  +4 -0      digikam/albumiconitem.h  
 M  +44 -6     digikam/albumiconview.cpp  
 M  +3 -1      digikam/albumiconview.h  
 M  +28 -1     digikam/iconitem.cpp  
 M  +8 -1      digikam/iconitem.h  
 M  +95 -0     digikam/iconview.cpp  
 M  +7 -1      digikam/iconview.h  
 AM            digikam/ratingbox.cpp   [License: GPL (v2+)]
 AM            digikam/ratingbox.h   [License: GPL (v2+)]


WebSVN link: http://websvn.kde.org/?view=rev&revision=906970
Comment 16 Mikolaj Machowski 2009-01-07 19:33:28 UTC
Thanks Gilles, such small feature and how much pleasure :)

One thought: with this addition Assign Rating position in context menu becomes redundant, maybe remove this?

ps. Confirming what Andi writes about moving stars. Looks like problem with centering - assigned stars are centered differently from assigning widget; you can also see this when rating with one star. When hovering to display whole widget lonely star should become central outlined star - instead there is small movement left.
Comment 17 caulier.gilles 2009-01-07 19:55:56 UTC
>One thought: with this addition Assign Rating position in context menu becomes >redundant, maybe remove this? 

yes. Rating on icon view item can be disable.

Also, with context menu you can rate more than one item at the same time.

>Looks like problem with centering

Yes, i will fix it.

Gilles
Comment 18 caulier.gilles 2009-01-08 17:58:28 UTC
SVN commit 907726 by cgilles:

digiKam from trunk: it now possible to rate item from tumbbar, as with icon view
CCBUG: 148198


 M  +183 -21   digikam/imagepreviewbar.cpp  
 M  +12 -0     digikam/imagepreviewbar.h  
 M  +28 -21    libs/widgets/common/thumbbar.cpp  
 M  +5 -4      libs/widgets/common/thumbbar.h  
 M  +17 -11    project/project.kdevelop  
 M  +20 -14    utilities/lighttable/lighttablebar.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=907726
Comment 19 Ian Hubbertz 2009-01-24 01:09:54 UTC
Please add a switch to disable this feature - it can easily be activated by accident.

ATM it is only possible to deactivate  "show rating" in the thumbnail completely.

(And this, for some strange reasons, will also deactivate the rating widget in the status bar filter?! (see #181705)