[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/digikam/imageplugins/coreplugin
From:       Gilles Caulier <caulier.gilles () gmail ! com>
Date:       2008-09-01 8:21:09
Message-ID: 1220257269.341798.18467.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 855615 by cgilles:

digiKam from trunk : Blur image plugin is now ported to EditorTool API.
Polish : use this as parent of Editor Tool object, not active window instance (Editor \
tool use QObject as parent and are embedded in editor window)



 M  +1 -1      CMakeLists.txt  
 A             blurtool.cpp   imageeffect_blur.cpp#855566 [License: GPL (v2+)]
 A             blurtool.h   imageeffect_blur.h#855566 [License: GPL (v2+)]
 D             imageeffect_blur.cpp  
 D             imageeffect_blur.h  
 M  +10 -10    imageplugin_core.cpp  


--- trunk/extragear/graphics/digikam/imageplugins/coreplugin/CMakeLists.txt \
#855614:855615 @@ -52,7 +52,7 @@
     ../../imageplugins/coreplugin/hsl/hsltool.cpp 
     ../../imageplugins/coreplugin/hsl/hspreviewwidget.cpp
     ../../imageplugins/coreplugin/iccprooftool.cpp 
-    ../../imageplugins/coreplugin/imageeffect_blur.cpp 
+    ../../imageplugins/coreplugin/blurtool.cpp 
     ../../imageplugins/coreplugin/imageplugin_core.cpp 
     ../../imageplugins/coreplugin/ratiocrop/imageselectionwidget.cpp
     ../../imageplugins/coreplugin/ratiocrop/ratiocroptool.cpp 
--- trunk/extragear/graphics/digikam/imageplugins/coreplugin/imageplugin_core.cpp \
#855614:855615 @@ -44,7 +44,7 @@
 #include "bwsepiatool.h"
 #include "hsltool.h"
 #include "iccprooftool.h"
-#include "imageeffect_blur.h"
+#include "blurtool.h"
 #include "ratiocroptool.h"
 #include "imageeffect_sharpen.h"
 #include "redeyetool.h"
@@ -236,20 +236,20 @@
 
 void ImagePlugin_Core::slotBCG()
 {
-    BCGTool *tool = new BCGTool(kapp->activeWindow());
+    BCGTool *tool = new BCGTool(this);
     loadTool(tool);
 }
 
 void ImagePlugin_Core::slotRGB()
 {
-    RGBTool *tool = new RGBTool(kapp->activeWindow());
+    RGBTool *tool = new RGBTool(this);
     loadTool(tool);
 }
 
 void ImagePlugin_Core::slotBlur()
 {
-    ImageEffect_Blur dlg(kapp->activeWindow());
-    dlg.exec();
+    BlurTool *tool = new BlurTool(this);
+    loadTool(tool);
 }
 
 void ImagePlugin_Core::slotAutoCorrection()
@@ -275,25 +275,25 @@
         return;
     }
 
-    RedEyeTool *tool = new RedEyeTool(kapp->activeWindow());
+    RedEyeTool *tool = new RedEyeTool(this);
     loadTool(tool);
 }
 
 void ImagePlugin_Core::slotColorManagement()
 {
-    ICCProofTool *tool = new ICCProofTool(kapp->activeWindow());
+    ICCProofTool *tool = new ICCProofTool(this);
     loadTool(tool);
 }
 
 void ImagePlugin_Core::slotBW()
 {
-    BWSepiaTool *tool = new BWSepiaTool(kapp->activeWindow());
+    BWSepiaTool *tool = new BWSepiaTool(this);
     loadTool(tool);
 }
 
 void ImagePlugin_Core::slotHSL()
 {
-    HSLTool *tool = new HSLTool(kapp->activeWindow());
+    HSLTool *tool = new HSLTool(this);
     loadTool(tool);
 }
 
@@ -305,6 +305,6 @@
 
 void ImagePlugin_Core::slotRatioCrop()
 {
-    RatioCropTool *tool = new RatioCropTool(kapp->activeWindow());
+    RatioCropTool *tool = new RatioCropTool(this);
     loadTool(tool);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic