[Digikam-devel] extragear/graphics/digikam/utilities

Gilles Caulier caulier.gilles at gmail.com
Fri May 25 13:28:26 BST 2007


SVN commit 668195 by cgilles:

digikam from trunk : Light Table : new option to load automaticly the selected item on thumbbar to the Right panel to speed up comparison of picture from Left panel (Ideas inspired from Luis De la Parra 

CCMAIL: lparrab at gmx.net
CCMAIL: digikam-devel at kde.org

 M  +6 -0      lighttable/lighttablewindow.cpp  
 M  +2 -0      lighttable/lighttablewindowprivate.h  
 M  +13 -6     setup/setuplighttable.cpp  


--- trunk/extragear/graphics/digikam/utilities/lighttable/lighttablewindow.cpp #668194:668195
@@ -150,6 +150,7 @@
     KConfig* config = kapp->config();
     config->setGroup("LightTable Settings");
 
+    d->autoLoadOnRightPanel  = config->readBoolEntry("Auto Load Right Panel", true);
     d->autoSyncPreview       = config->readBoolEntry("Auto Sync Preview", true);
     d->fullScreenHideToolBar = config->readBoolEntry("FullScreen Hide ToolBar", false);
 }
@@ -689,6 +690,11 @@
                 d->barView->setOnLeftPanel(info);
                 slotSetItemOnLeftPanel(info);
             }
+            else if (d->autoLoadOnRightPanel && !curr->getOnLeftPanel()) 
+            {
+                d->barView->setOnRightPanel(info);
+                slotSetItemOnRightPanel(info);
+            }
         }
     }
     else
--- trunk/extragear/graphics/digikam/utilities/lighttable/lighttablewindowprivate.h #668194:668195
@@ -48,6 +48,7 @@
 
     LightTableWindowPriv()
     {
+        autoLoadOnRightPanel   = true;    
         autoSyncPreview        = true;
         fullScreenHideToolBar  = false;
         fullScreen             = false;
@@ -90,6 +91,7 @@
         navigateByPairAction   = 0;
     }
 
+    bool                      autoLoadOnRightPanel;
     bool                      autoSyncPreview;
     bool                      fullScreenHideToolBar;
     bool                      fullScreen;
--- trunk/extragear/graphics/digikam/utilities/setup/setuplighttable.cpp #668194:668195
@@ -55,12 +55,14 @@
 
     SetupLightTablePriv()
     {
-        hideToolBar     = 0;
-        autoSyncPreview = 0;
+        hideToolBar          = 0;
+        autoSyncPreview      = 0;
+        autoLoadOnRightPanel = 0;
     }
 
     QCheckBox *hideToolBar;
     QCheckBox *autoSyncPreview;
+    QCheckBox *autoLoadOnRightPanel;
 };
 
 SetupLightTable::SetupLightTable(QWidget* parent )
@@ -74,12 +76,15 @@
     QVGroupBox *interfaceOptionsGroup = new QVGroupBox(i18n("Interface Options"), parent);
 
 
-    d->autoSyncPreview = new QCheckBox(i18n("Synchronize panels automatically"),
-                                      interfaceOptionsGroup);
+    d->autoSyncPreview      = new QCheckBox(i18n("Synchronize panels automatically"),
+                                            interfaceOptionsGroup);
 
-    d->hideToolBar = new QCheckBox(i18n("H&ide toolbar in fullscreen mode"),
-                                   interfaceOptionsGroup);
+    d->autoLoadOnRightPanel = new QCheckBox(i18n("Selecting a thumbbar item load picture on right panel"),
+                                            interfaceOptionsGroup);
 
+    d->hideToolBar          = new QCheckBox(i18n("H&ide toolbar in fullscreen mode"),
+                                            interfaceOptionsGroup);
+
     // --------------------------------------------------------
 
     layout->addWidget(interfaceOptionsGroup);
@@ -103,6 +108,7 @@
     config->setGroup("LightTable Settings");
     d->hideToolBar->setChecked(config->readBoolEntry("FullScreen Hide ToolBar", false));
     d->autoSyncPreview->setChecked(config->readBoolEntry("Auto Sync Preview", true));
+    d->autoLoadOnRightPanel->setChecked(config->readBoolEntry("Auto Load Right Panel", true));
 }
 
 void SetupLightTable::applySettings()
@@ -111,6 +117,7 @@
     config->setGroup("LightTable Settings");
     config->writeEntry("FullScreen Hide ToolBar", d->hideToolBar->isChecked());
     config->writeEntry("Auto Sync Preview", d->autoSyncPreview->isChecked());
+    config->writeEntry("Auto Load Right Panel", d->autoLoadOnRightPanel->isChecked());
     config->sync();
 }
 



More information about the Digikam-devel mailing list