Bug 128673 - Add keyboard shortcut to refresh album view or auto-refresh when pictures are renamed
Summary: Add keyboard shortcut to refresh album view or auto-refresh when pictures are...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Keyboard (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 11:46 UTC by Manuel Koch
Modified: 2017-08-02 17:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Koch 2006-06-05 11:46:16 UTC
Version:           0.8.2-rc1 (using KDE KDE 3.5.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

- Sorting of current album is by file name
- Rename a picture file via context-menu
-> View of album should be updated automatically
or
-> There should be a keyboard shortcut available to refresh view ( like F5 in konqueror )
Comment 1 caulier.gilles 2006-08-23 11:27:33 UTC
SVN commit 576154 by cgilles:

digikam from trunk : albums gui : New menu option to force the refresh of album contents. The thumbnails will be recomputed by digikam kio-slave.

Note: The keyboard shorcut for this action is F5

BUG: 128673


 M  +10 -1     digikamapp.cpp  
 M  +1 -0      digikamapp.h  
 M  +2 -1      digikamui.rc  
 M  +9 -1      digikamview.cpp  
 M  +1 -0      digikamview.h  


--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #576153:576154
@@ -144,7 +144,7 @@
         mValidIccPath = false;
     }
 
-    kdDebug() << "digikampp: " << tmpPath.dirName() << endl;
+    kdDebug() << "ICC profiles repository is: " << tmpPath.dirName() << endl;
 
     // Actual file scanning is done in main() - is this necessary here?
     mAlbumManager->setLibraryPath(mAlbumSettings->getAlbumLibraryPath());
@@ -458,6 +458,15 @@
     mPropsEditAction->setWhatsThis(i18n("This option allows you to set the Album Properties information "
                                         "about the Collection."));
 
+    mRefreshAlbumAction = new KAction( i18n("Refresh"),
+                                    "rebuild",
+                                    Key_F5,
+                                    mView,
+                                    SLOT(slot_albumRefresh()),
+                                    actionCollection(),
+                                    "album_refresh");
+    mRefreshAlbumAction->setWhatsThis(i18n("This option refresh all album content."));
+
     mOpenInKonquiAction = new KAction( i18n("Open in Konqueror"),
                                     "konqueror",
                                     0,
--- trunk/extragear/graphics/digikam/digikam/digikamapp.h #576153:576154
@@ -199,6 +199,7 @@
     KAction               *mPropsEditAction;
     KAction               *mAlbumImportAction;
     KAction               *mOpenInKonquiAction;
+    KAction               *mRefreshAlbumAction;
     
     // Tag Actions
     KAction               *mNewTagAction;
--- trunk/extragear/graphics/digikam/digikam/digikamui.rc #576153:576154
@@ -1,5 +1,5 @@
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui version="8" name="digikam" >
+<kpartgui version="9" name="digikam" >
 
  <MenuBar>
 
@@ -11,6 +11,7 @@
      <Action name="album_new" />
    <Separator/>
      <Action name="album_propsEdit" />
+     <Action name="album_refresh" />
      <Action name="album_openinkonqui" />
    <Separator/>
       <Menu name="Import"><text>&amp;Import</text>
--- trunk/extragear/graphics/digikam/digikam/digikamview.cpp #576153:576154
@@ -98,17 +98,20 @@
     QSplitter                *splitter;
 
     DigikamApp               *parent;
+
     AlbumIconView            *iconView;
     AlbumFolderView          *folderView;
     AlbumManager             *albumManager;
     AlbumHistory             *albumHistory;
+    AlbumWidgetStack         *albumPreviews;
+    
     Sidebar                  *leftSideBar;
     ImagePropertiesSideBarDB *rightSideBar;
+
     DateFolderView           *dateFolderView;
     TagFolderView            *tagFolderView;
     SearchFolderView         *searchFolderView;
     TagFilterView            *tagFilterView;
-    AlbumWidgetStack         *albumPreviews;
 };
 
 DigikamView::DigikamView(QWidget *parent)
@@ -575,6 +578,11 @@
     new KRun(palbum->folderPath()); // KRun will delete itself.
 }
 
+void DigikamView::slot_albumRefresh()
+{
+    d->iconView->refreshItems(d->iconView->allItems());
+}
+
 void DigikamView::slotImageSelected()
 {
     bool selected = false;
--- trunk/extragear/graphics/digikam/digikam/digikamview.h #576153:576154
@@ -77,6 +77,7 @@
     void slot_albumPropsEdit();
     void slot_albumAddImages();
     void slot_albumOpenInKonqui();
+    void slot_albumRefresh();
     void slotAlbumImportFolder();
     void slotAlbumHistoryBack(int steps=1);
     void slotAlbumHistoryForward(int steps=1);