[Digikam-devel] [Bug 128673] Add keyboard shortcut to refresh album view or auto-refresh when pictures are renamed

Gilles Caulier caulier.gilles at free.fr
Wed Aug 23 10:27:35 BST 2006


------- 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=128673         
caulier.gilles free fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From caulier.gilles free fr  2006-08-23 11:27 -------
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>&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);



More information about the Digikam-devel mailing list