[Digikam-devel] branches/extragear/kde3/graphics/digikam/digikam

Gilles Caulier caulier.gilles at gmail.com
Wed Jan 16 11:27:30 GMT 2008


SVN commit 762163 by cgilles:

digiKam from KDE3 branch : I'm happy to said than the new Time-Line tool to perform Date Search around whole albums collection 
is now available for testing with digiKam 0.9.4-svn.
A screenshot of this new tool in action can be seen here :

http://bugs.kde.org/attachment.cgi?id=23060&action=view

Marcel,

KDE4 port still todo before to close this file. I will backport all Time-Line widgets to KDE4 as well.
What about the new digiKam Search framework for KDE4 ?

CCBUGS: 146760
TODO : KDE4PORT
CCMAIL: digikam-devel at kde.org
CCMAIL: marcel.wiesweg at gmx.de



 M  +18 -3     digikamview.cpp  


--- branches/extragear/kde3/graphics/digikam/digikam/digikamview.cpp #762162:762163
@@ -78,6 +78,8 @@
 #include "searchtextbar.h"
 #include "statusprogressbar.h"
 #include "tagfilterview.h"
+#include "timelineview.h"
+#include "timelinefolderview.h"
 #include "thumbnailsize.h"
 #include "dio.h"
 #include "digikamapp.h"
@@ -110,6 +112,7 @@
         leftSideBar           = 0;
         rightSideBar          = 0;
         dateFolderView        = 0;
+        timeLineView          = 0;
         tagFolderView         = 0;
         searchFolderView      = 0;
         tagFilterView         = 0;
@@ -154,6 +157,7 @@
     ImagePropertiesSideBarDB *rightSideBar;
 
     DateFolderView           *dateFolderView;
+    TimeLineView             *timeLineView;
     TagFolderView            *tagFolderView;
     SearchFolderView         *searchFolderView;
     TagFilterView            *tagFilterView;
@@ -192,9 +196,9 @@
     d->folderBox->setMargin(0);
 
     // Tags sidebar tab contents.
-    d->tagBox        = new QVBox(this);
-    d->tagFolderView = new TagFolderView(d->tagBox);
-    d->tagSearchBar  = new SearchTextBar(d->tagBox);
+    d->tagBox           = new QVBox(this);
+    d->tagFolderView    = new TagFolderView(d->tagBox);
+    d->tagSearchBar     = new SearchTextBar(d->tagBox);
     d->tagBox->setSpacing(KDialog::spacingHint());
     d->tagBox->setMargin(0);
 
@@ -206,10 +210,12 @@
     d->searchBox->setMargin(0);
 
     d->dateFolderView   = new DateFolderView(this);
+    d->timeLineView     = new TimeLineView(this);
 
     d->leftSideBar->appendTab(d->folderBox, SmallIcon("folder_image"), i18n("Albums"));
     d->leftSideBar->appendTab(d->dateFolderView, SmallIcon("date"), i18n("Dates"));
     d->leftSideBar->appendTab(d->tagBox, SmallIcon("tag"), i18n("Tags"));
+    d->leftSideBar->appendTab(d->timeLineView, SmallIcon("clock"), i18n("Timeline"));
     d->leftSideBar->appendTab(d->searchBox, SmallIcon("find"), i18n("Searches"));
 
     // To the right.
@@ -686,7 +692,15 @@
             if(!item) return;
             v->setSelected(item);
         }
+        else if (TimeLineView *v = dynamic_cast<TimeLineView*>(widget))
+        {
+            item = (QListViewItem*)album->extraData(v->folderView());
+            if(!item) return;
 
+            v->folderView()->setSelected(item, true);
+            v->folderView()->ensureItemVisible(item);
+        }
+
         d->leftSideBar->setActiveTab(widget);
 
         d->parent->enableAlbumBackwardHistory(!d->albumHistory->isBackwardEmpty());
@@ -1280,6 +1294,7 @@
     d->folderView->setActive(w == d->folderBox);
     d->tagFolderView->setActive(w == d->tagBox);
     d->searchFolderView->setActive(w == d->searchBox);
+    d->timeLineView->folderView()->setActive(w == d->timeLineView);
 }
 
 void DigikamView::slotAssignRating(int rating)



More information about the Digikam-devel mailing list