[Bug 142774] New: Moving pictures between albums

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] New: Moving pictures between albums

Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
           Summary: Moving pictures between albums
           Product: digikam
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel kde org
        ReportedBy: gerhardk gmx ch


Version:           all (using KDE KDE 3.5.6)
Installed from:    Compiled From Sources0
OS:                Linux

In all views which are segregated by albums (search, calender, tag) one cannot move or copy images from one album to another in the main view (see attached screenshot). DigiKam being a photo management software as its mainstay, this feature should be implemented as an easy way of re-organizing ones stuff.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Albums GUI
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from gerhardk@gmx.ch
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From gerhardk gmx ch  2007-03-10 08:56 -------
Created an attachment (id=19923)
 --> (http://bugs.kde.org/attachment.cgi?id=19923&action=view)
Screenshot of a scenario where it should be possible to be able to move an item
across albums
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from sami_cokar@hotmail.com
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
sami_cokar hotmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sami_cokar hotmail com
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from owner@bugs.kde.org
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
arnd.baecker web de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |polar88bear hotmail com



------- Additional Comments From arnd.baecker web de  2007-07-18 16:41 -------
*** Bug 147981 has been marked as a duplicate of this bug. ***
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-04 07:46 -------
SVN commit 743941 by cgilles:

digiKam from KDE3 branch : support Copy and Paste between Physical Albums and Tags Albums
CCMAIL: digikam-devel kde org


 M  +43 -17    albumiconview.cpp


--- branches/extragear/kde3/graphics/digikam/digikam/albumiconview.cpp #743940:743941
 @ -689,7 +689,6  @

    // --------------------------------------------------------

-
    popmenu.insertItem(SmallIcon("edittrash"),
                       i18n("Move to Trash", "Move %n Files to Trash" , selectedImageIDs.count() ), 16);

 @ -848,29 +847,56  @
 void AlbumIconView::slotPaste()
 {
    QMimeSource *data = kapp->clipboard()->data(QClipboard::Clipboard);
-    if(!data || !QUriDrag::canDecode(data))
+    if(!data)
        return;

-    if(d->currentAlbum->type() == Album::PHYSICAL)
+    if(d->currentAlbum->type() == Album::PHYSICAL &&
+       QUriDrag::canDecode(data))
    {
-        if (QUriDrag::canDecode(data) &&
-            d->currentAlbum->type() == Album::PHYSICAL)
-        {
-            PAlbum* palbum = (PAlbum*)d->currentAlbum;
-
-            // B.K.O #119205: do not handle root album.
-            if (palbum->isRoot())
-                return;
+        PAlbum* palbum = (PAlbum*)d->currentAlbum;
+
+        // B.K.O #119205: do not handle root album.
+        if (palbum->isRoot())
+            return;

-            KURL destURL(palbum->kurl());
+        KURL destURL(palbum->kurl());

-            KURL::List srcURLs;
-            KURLDrag::decode(data, srcURLs);
+        KURL::List srcURLs;
+        KURLDrag::decode(data, srcURLs);

-            KIO::Job* job = DIO::copy(srcURLs, destURL);
-            connect(job, SIGNAL(result(KIO::Job*)),
-                    this, SLOT(slotDIOResult(KIO::Job*)));
+        KIO::Job* job = DIO::copy(srcURLs, destURL);
+        connect(job, SIGNAL(result(KIO::Job*)),
+                this, SLOT(slotDIOResult(KIO::Job*)));
+    }
+    else if(d->currentAlbum->type() == Album::TAG &&
+            ItemDrag::canDecode(data))
+    {
+        TAlbum* talbum = (TAlbum*)d->currentAlbum;
+
+        // B.K.O #119205: do not handle root album.
+        if (talbum->isRoot())
+            return;
+
+        KURL::List      urls;
+        KURL::List      kioURLs;
+        QValueList<int> albumIDs;
+        QValueList<int> imageIDs;
+
+        if (!ItemDrag::decode(data, urls, kioURLs, albumIDs, imageIDs))
+            return;
+
+        if (urls.isEmpty() || kioURLs.isEmpty() || albumIDs.isEmpty() || imageIDs.isEmpty())
+            return;
+
+        QPtrList<ImageInfo> list;
+        for (QValueList<int>::const_iterator it = imageIDs.begin();
+             it != imageIDs.end(); ++it)
+        {
+            ImageInfo *info = new ImageInfo(*it);
+            list.append(info);
        }
+
+        changeTagOnImageInfos(list, QValueList<int>() << talbum->id(), true, true);
    }
 }
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from owner@bugs.kde.org
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |MHein03 web de



------- Additional Comments From caulier.gilles gmail com  2007-12-04 07:48 -------
*** Bug 125789 has been marked as a duplicate of this bug. ***
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from owner@bugs.kde.org
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |guma96 t-online de



------- Additional Comments From caulier.gilles gmail com  2007-12-04 08:21 -------
*** Bug 120959 has been marked as a duplicate of this bug. ***
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Arnd Baecker
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From arnd.baecker web de  2007-12-04 08:55 -------
Just tested moving images in the Albums View:
when you move an image, the icon view is not updated
(but the image is moved). This only seems to happen when
recursive viewing of albums is activated.

About copy and paste: if I am in recursive view mode
and do a CTRL+C of one image of the first displayed album
and try to paste it into a different album (but still in the same view),
one gets a message box "File already exists",
The picture isn't stored on the local host.
Click on this label to load it".
Suggesting a new name works (though there is the confusing
"Rename" button; "Copy" would be better IMO).

So to me it seems as if the path, where the image should
be copied to is always determined from the first displayed folder,
but not from the currently selected (or active) image.
((Note that I am not sure what to do if
http://bugs.kde.org/show_bug.cgi?id=134389
is implemented. I.e., for a merged view
there would be no separators.))

Additional remark: image rotation according to exif is not taken
into account properly in the message box.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-19 15:46 -------
Created an attachment (id=22623)
 --> (http://bugs.kde.org/attachment.cgi?id=22623&action=view)
Drag & Drop supports over digiKam sidebar...

This patch implement D&d support with digiKam sidebar, like Amarok, but using a
more universal way to do it...

Problem is about KMultiTabBar class from KDE API witch do not provide D&D
supports:

http://websvn.kde.org/branches/KDE/3.5/kdelibs/kutils/kmultitabbar.h?revision=535111&view=markup


Amarok team have re-implemented whole KDE widget to do it... It's a waste of
time (:=))) :

http://websvn.kde.org/branches/stable/extragear/multimedia/amarok/src/multitabbar.h?revision=629191&view=markup


... and of course for Amarok KDE4 port, the widget have been fully
re-implemented from scratch...

My solution is more simple/universal/portable : using QWidget::eventFilter()

This patch fix Digikam::Sidebar in this way. When you drag an album folder or
album items to a sidebar tab button,  this one is actived and you toggle
automatically to the right view... to drop items...

This patch do not work with all cases. For ex, you cannot yet D&D from Tag icon
view to Album icon view. More changes need to be done in AlbumIconView class...
I need more time...

Please test this patch against current KDE3 implementation from svn and let's
me ear your viewpoints...

Gilles Caulier
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Bug 142774] Moving pictures between albums

Bugzilla from mikmach@wp.pl
Works great :)

About cases where user will not drag into album but some other view
- I wonder if they are really usable. D'n'd from album to some time?
Should it change date of image? Overly complicated.

But if you want to proceed there is interesting(?) bug: when dragging
from Album into Tag, assignation of tags doesn't work when trying to
drop into active (visible) tag. Not only when dropping into main part
but also when trying to drop into tree view.

IMO just concentrate on d'n'd into Album. Rest of scenarios is much
less probable and much more complex to implement - not even
as implementation in code but as predicting users expectations.

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Bugzilla from mikmach@wp.pl
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From mikmach wp pl  2007-12-20 00:40 -------
Works great :)

About cases where user will not drag into album but some other view
- I wonder if they are really usable. D'n'd from album to some time?
Should it change date of image? Overly complicated.

But if you want to proceed there is interesting(?) bug: when dragging
from Album into Tag, assignation of tags doesn't work when trying to
drop into active (visible) tag. Not only when dropping into main part
but also when trying to drop into tree view.

IMO just concentrate on d'n'd into Album. Rest of scenarios is much
less probable and much more complex to implement - not even
as implementation in code but as predicting users expectations.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gerhard Kulzer
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From gerhard kulzer net  2007-12-21 09:01 -------
I agree with Mikolaj that it makes only sense to move from anywhere to Album structure.
- Tags can be mass-attributed by dragging tags to selections.
- Time/date can be batch-changed with kipi-plugins

The only additional d&d feature would be to d&d within the main window across the horizontal Album separators.

Gerhard
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-21 12:41 -------
SVN commit 751207 by cgilles:

digiKam from KDE3 branch : support of copy and paste over albums on the same icon view using recursive mode
CCBUGS: 142774


 M  +23 -8     albumiconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=751207
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-21 15:00 -------
SVN commit 751252 by cgilles:

digiKam from KDE3 branch : support D&D between albums to move/copy items when recurssive mode is enable
CCBUGS: 142774


 M  +95 -14    albumiconview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=751252
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-21 15:04 -------
Arnd, Fabien, Mik, Gerhard,

Before to release 0.9.3, please test my recent patches about copy/move items between albums using recurssive mode... Thanks in advance...

Nota: I'm will not available during one week from 22/12/2007 to 29/12/2007. Take a care than normally 0.9.3 must be released at 23/12/2007... If something is wrong, well delay release date.

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-21 15:51 -------
SVN commit 751278 by cgilles:

backport commits #751264 from KDE3 branch : support Drag & drop with Sidebar widget
CCBUGS: 142774


 M  +68 -0     sidebar.cpp  
 M  +3 -0      sidebar.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=751278
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Arnd Baecker
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From arnd.baecker web de  2007-12-21 16:39 -------
Gilles, I checked current svn and drag&drop seems to work fine
when in album view (i.e.across the horizontal Album separators.

However, is there anything which would be against allowing drag&drop
across the horizontal Album separators
when in Tags/Date/Search View? In these cases we (currently) still have a separation between folders, so moving items around would be just the same
as in album view, or am I missing something?

Best, Arnd
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gilles Caulier-4
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From caulier.gilles gmail com  2007-12-21 18:21 -------
Arnd,

About Date and search icon view, nothing is implemented.

About Tag icon view, well it's implemented but nothing is doing. I cannot investiguate better now.

If you want to take a look, methods to check are AlbumIconView::slotPaste(),  and AlbumIconView::contentsDropEvent(). AlbumIconView::contentsDragMoveEvent() method normally is fine, but i'm not sure (:=)))

Marcel,

Please, take a look too, if all is fine for you in these methods. Thanks in advance...

Gilles (Who prepare Christmas travel (:=)))
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 142774] Moving pictures between albums

Gerhard Kulzer
In reply to this post by Bugzilla from gerhardk@gmx.ch
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=142774         




------- Additional Comments From gerhard kulzer net  2007-12-22 10:24 -------
I tested the svn 751278, works fine in 'Include Album Tree' view mode :-). It is very important to have this feature, as it is intuitive for rearranging things.

I also agree with Arnd (#14), the drag across horizontal separation is foremostly useful in date, search and tag view. It is less useful in album view (the only mode it works now), because the tree is open in the sidebar anyway. In practical cases, there are always many more images in a flattened album view than in a date view, and therefore you rather drop into the sidebar tree instead of scrolling up and down the view until youcross the separation.

Gerhard
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
12