[Digikam-devel] extragear/graphics/digikam/imageplugins/whitebalance

Andi Clemens andi.clemens at gmx.net
Sun Aug 31 11:27:17 BST 2008


SVN commit 855223 by aclemens:

digiKam from trunk: Whitebalance plugin is now ported to Editor Tool API.
CCMAIL: digikam-devel at kde.org

 M  +1 -1      CMakeLists.txt  
 D             imageeffect_whitebalance.cpp  
 D             imageeffect_whitebalance.h  
 M  +7 -5      imageplugin_whitebalance.cpp  
 A             whitebalancetool.cpp   imageeffect_whitebalance.cpp#855121 [License: GPL (v2+)]
 A             whitebalancetool.h   imageeffect_whitebalance.h#855121 [License: GPL (v2+)]


--- trunk/extragear/graphics/digikam/imageplugins/whitebalance/CMakeLists.txt #855222:855223
@@ -1,6 +1,6 @@
 
 SET(digikamimageplugin_whitebalance_PART_SRCS imageplugin_whitebalance.cpp 
-                                              imageeffect_whitebalance.cpp
+                                              whitebalancetool.cpp
    )
 
 
--- trunk/extragear/graphics/digikam/imageplugins/whitebalance/imageplugin_whitebalance.cpp #855222:855223
@@ -4,8 +4,8 @@
  * http://www.digikam.org
  *
  * Date        : 2005-03-11
- * Description : a digiKam image editor plugin to correct 
- *               image white balance 
+ * Description : a digiKam image editor plugin to correct
+ *               image white balance
  *
  * Copyright (C) 2005-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
  *
@@ -35,10 +35,12 @@
 // Local includes.
 
 #include "ddebug.h"
-#include "imageeffect_whitebalance.h"
+#include "whitebalancetool.h"
 #include "imageplugin_whitebalance.h"
 #include "imageplugin_whitebalance.moc"
 
+using namespace DigikamWhiteBalanceImagesPlugin;
+
 K_PLUGIN_FACTORY( WhiteBalanceFactory, registerPlugin<ImagePlugin_WhiteBalance>(); )
 K_EXPORT_PLUGIN ( WhiteBalanceFactory("digikamimageplugin_whitebalance") )
 
@@ -69,6 +71,6 @@
 
 void ImagePlugin_WhiteBalance::slotWhiteBalance()
 {
-    DigikamWhiteBalanceImagesPlugin::ImageEffect_WhiteBalance dlg(kapp->activeWindow());
-    dlg.exec();
+    WhiteBalanceTool *tool = new WhiteBalanceTool(kapp->activeWindow());
+    loadTool(tool);
 }



More information about the Digikam-devel mailing list