Bug 92884 - usability : The "Select Album" dialog should select the root directory by default and not the currently selected album in the top-most window
Summary: usability : The "Select Album" dialog should select the root directory by def...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 00:09 UTC by Guillaume Pratte
Modified: 2022-01-20 04:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Pratte 2004-11-08 00:09:48 UTC
Version:           0.7rc1 (using KDE KDE 3.3.0)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc version 3.3.4 (Debian 1:3.3.4-12)
OS:                Linux (i686) release 2.6.6

I installed digiKam 0.7rc1 on my father's computer this week, and when helping him to discover the functionnalities necessary to transfer images from his camera, I noticed a simple thing that could be changed in digiKam that could make life easier for him - and I am sure for first time users too.

I a nutshell : the "Select Album" dialog that appears when transfering images from the camera should always select the root folder ("My Albums") and not the currently selected album in the top most window.  I observed that my father had the reflex to click on "New Album" without realizing that it would not be created under the "My Albums" element but under the last selected album. Once the photos downloaded, he had a hard time finding them, since the new album was not even selected in the main window...

How to get to the dialog in question :

 1. Setup a camera in Camera -> Add Camera
 2. Create a "test" album under "My Albums" and make sure it is selected / displayed
 3. Transfer images from the camera (Camera -> <camera name>)
 4. Download -> Download all

Guillaume Pratte
Comment 1 Joern Ahrens 2004-11-08 00:40:35 UTC
I think, selecting the current album is much more expected than always selecting the root album. Actually I would find that annoying. So we wont fix it.

But what we can do: after closing the download dialog, the album to which the files were downloaded can be selected and opened.
Comment 2 Guillaume Pratte 2004-11-08 04:12:15 UTC
Le 7 Novembre 2004 18:40, Joern Ahrens a écrit :
> I think, selecting the current album is much more expected than always
> selecting the root album. Actually I would find that annoying. So we wont
> fix it.
>
> But what we can do: after closing the download dialog, the album to which
> the files were downloaded can be selected and opened.

That seems like a good compromise.

Guillaume Pratte

Comment 3 Joern Ahrens 2004-11-27 19:04:22 UTC
CVS commit by jahrens: 


After closing the cameragui, the last destination is opened in digikam.
Hope you can live with that, Guillaume.

BUG: 92884
CCMAIL: joern.ahrens@kdemail.net, digikam-devel@lists.sourceforge.net


  M +5 -2      cameraui.cpp   1.30
  M +5 -0      cameraui.h   1.16


--- kdeextragear-3/digikam/utilities/cameragui/cameraui.cpp  #1.29:1.30
@@ -246,4 +246,7 @@ bool CameraUI::isBusy() const
 void CameraUI::closeEvent(QCloseEvent* e)
 {
+    if(!m_lastDestURL.isEmpty())
+        emit signalLastDestionation(m_lastDestURL);
+
     delete m_controller;
     saveSettings();
@@ -459,4 +461,5 @@ void CameraUI::slotDownload(bool onlySel
         return;
     
+    m_lastDestURL = url;            
     m_progress->setProgress(0);
     m_progress->setTotalSteps(total);

--- kdeextragear-3/digikam/utilities/cameragui/cameraui.h  #1.15:1.16
@@ -97,4 +97,6 @@ private:
     CameraController* m_controller;
 
+    KURL              m_lastDestURL;
+
 private slots:
 
@@ -126,4 +128,7 @@ private slots:
     
     void slotToggleAdvanced();
+    
+signals:
+    void signalLastDestionation(const KURL&);
 };
 


Comment 4 Joern Ahrens 2004-11-27 19:09:37 UTC
CVS commit by jahrens: 

... was in the wrong directory during commit, so here is the rest :)

After closing the cameragui, the last destination is opened in digikam.
Hope you can live with that, Guillaume.

BUG: 92884
CCMAIL: joern.ahrens@kdemail.net, digikam-devel@lists.sourceforge.net


  M +2 -0      digikamapp.cpp   1.75
  M +18 -2     digikamview.cpp   1.24
  M +1 -0      digikamview.h   1.16


--- kdeextragear-3/digikam/digikam/digikamapp.cpp  #1.74:1.75
@@ -633,4 +633,6 @@ void DigikamApp::slotCameraConnect()
                                       ctype->port(), ctype->path());
         cgui->show();
+        connect(cgui, SIGNAL(signalLastDestionation(const KURL&)),
+                mView, SLOT(slotSelectAlbum(const KURL&)));
     }
 }

--- kdeextragear-3/digikam/digikam/digikamview.cpp  #1.23:1.24
@@ -234,4 +234,20 @@ void DigikamView::getForwardHistory(QStr
 }
 
+void DigikamView::slotSelectAlbum(const KURL &url)
+{
+    if(url.isEmpty())
+        return;
+    
+    Album *album = mAlbumMan->findPAlbum(url);
+    if(album && album->getViewItem())
+    {
+        AlbumFolderItem *item;
+        item = static_cast<AlbumFolderItem*>(album->getViewItem());
+        mFolderView->setSelected(item);
+        mParent->enableAlbumBackwardHistory(!mAlbumHistory->isBackwardEmpty());
+        mParent->enableAlbumForwardHistory(!mAlbumHistory->isForwardEmpty());
+    }
+}
+
 // ----------------------------------------------------------------
 

--- kdeextragear-3/digikam/digikam/digikamview.h  #1.15:1.16
@@ -87,4 +87,5 @@ public slots:
     void slotAlbumHistoryForward(int steps=1);
     void slotAlbumDeleted(Album *album);
+    void slotSelectAlbum(const KURL &url);
 
     // Tag action slots
Comment 5 Guillaume Pratte 2004-11-29 00:12:37 UTC
Le 27 Novembre 2004 13:09, Joern Ahrens a écrit :
> After closing the cameragui, the last destination is opened in digikam.
> Hope you can live with that, Guillaume.

I am pretty sure my father will appreciate that feature.

And by the way, I saw a typo in your code :

> +        connect(cgui, SIGNAL(signalLastDestionation(const KURL&)),
> +                mView, SLOT(slotSelectAlbum(const KURL&)));

signalLastDestionation should be signalLastDestination.

The "o" between "Desti" and "nation" should be removed :-)

Guillaume Pratte

Comment 6 Joern Ahrens 2004-11-29 00:54:43 UTC
CVS commit by jahrens: 

Sure :-) Thanks copy and paste there was no compile error and
I couldn't find it during my tests. Thanks!
CVS_SILENT: corrected typo
CCBUG: 92884


  M +1 -1      digikam/digikamapp.cpp   1.76
  M +1 -1      utilities/cameragui/cameraui.cpp   1.31
  M +1 -1      utilities/cameragui/cameraui.h   1.17


--- kdeextragear-3/digikam/digikam/digikamapp.cpp  #1.75:1.76
@@ -633,5 +633,5 @@ void DigikamApp::slotCameraConnect()
                                       ctype->port(), ctype->path());
         cgui->show();
-        connect(cgui, SIGNAL(signalLastDestionation(const KURL&)),
+        connect(cgui, SIGNAL(signalLastDestination(const KURL&)),
                 mView, SLOT(slotSelectAlbum(const KURL&)));
     }

--- kdeextragear-3/digikam/utilities/cameragui/cameraui.cpp  #1.30:1.31
@@ -247,5 +247,5 @@ void CameraUI::closeEvent(QCloseEvent* e
 {
     if(!m_lastDestURL.isEmpty())
-        emit signalLastDestionation(m_lastDestURL);
+        emit signalLastDestination(m_lastDestURL);
 
     delete m_controller;

--- kdeextragear-3/digikam/utilities/cameragui/cameraui.h  #1.16:1.17
@@ -130,5 +130,5 @@ private slots:
     
 signals:
-    void signalLastDestionation(const KURL&);
+    void signalLastDestination(const KURL&);
 };
 


Comment 7 rom1v 2008-08-21 14:41:22 UTC
Problem still here in digikam 0.9.3 !