[Digikam-devel] [Bug 119073] wish list rescan option

Tom Albers tomalbers at kde.nl
Thu Dec 29 18:34:28 GMT 2005


------- 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=119073         
tomalbers kde nl changed:

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



------- Additional Comments From tomalbers kde nl  2005-12-29 19:34 -------
SVN commit 492366 by toma:

Add a rescan possibility to the menu, so you dont have to close and start digiKam again when the app does not detect changes in the album library path (which it should detect in all cases by the way, so if you spot a logic, please open a new bugreport)

Also makes it possible to turn off scan at start in the settings and do it manually when needed, this will gain a bit in the startup time of digiKam.

BUG: 119073


 M  +11 -0     digikamapp.cpp  
 M  +1 -0      digikamapp.h  
 M  +4 -1      digikamui.rc  


--- trunk/extragear/graphics/digikam/digikam/digikamapp.cpp #492365:492366
 @ -72,6 +72,7  @
 #include "digikamapp.h"
 #include "splashscreen.h"
 #include "thumbnailsize.h"
+#include "scanlib.h"
 
 DigikamApp::DigikamApp(bool detectCamera)
           : KMainWindow( 0, "Digikam" )
 @ -549,6 +550,10  @
     findAction->setText(i18n("Advanced Search..."));
     findAction->setShortcut("Ctrl+Alt+F");
 
+    new KAction(i18n("Scan for New Images"), "reload_page", 0,
+                this, SLOT(slotDatabaseRescan()), actionCollection(), 
+                "database_rescan");
+
     // -----------------------------------------------------------
 
     // Provides a menu entry that allows showing/hiding the toolbar(s)
 @ -1152,6 +1157,12  @
     }
 }
 
+void DigikamApp::slotDatabaseRescan()
+{
+    ScanLib sLib;
+    sLib.startScan();
+}
+
 DigikamApp* DigikamApp::m_instance = 0;
 
 #include "digikamapp.moc"
--- trunk/extragear/graphics/digikam/digikam/digikamapp.h #492365:492366
 @ -207,6 +207,7  @
     void slotEditKeys();
     void slotConfToolbars();
     void slotToggleFullScreen();
+    void slotDatabaseRescan();
 
     void slotChangeTheme(const QString& theme);
 };
--- trunk/extragear/graphics/digikam/digikam/digikamui.rc #492365:492366
 @ -1,5 +1,5  @
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui version="6" name="digikam" >
+<kpartgui version="7" name="digikam" >
 
  <MenuBar>
 
 @ -65,6 +65,9  @
   <Menu name="Tools"><text>&Tools</text>
       <Action name="search_quick" />
       <Action name="search_advanced" />
+      <Separator/>
+      <Action name="database_rescan" />
+      <Separator/>
       <ActionList name="album_actions"/>
       <Separator/>
       <Action name="gamma_adjustment" />



More information about the Digikam-devel mailing list