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

Gilles Caulier caulier.gilles at gmail.com
Fri Aug 29 16:31:34 BST 2008


SVN commit 854474 by cgilles:

digiKam from KDE3 branch: Sharpen image plugin is now ported to Editor Tool API
CCMAIL: digikam-devel at kde.org


 M  +6 -6      imageplugin_core.cpp  
 M  +2 -2      sharpnesseditor/Makefile.am  
 D             sharpnesseditor/imageeffect_sharpen.cpp  
 D             sharpnesseditor/imageeffect_sharpen.h  
 A             sharpnesseditor/sharpentool.cpp   sharpnesseditor/imageeffect_sharpen.cpp#854290 [License: GPL (v2+)]
 A             sharpnesseditor/sharpentool.h   sharpnesseditor/imageeffect_sharpen.h#854290 [License: GPL (v2+)]


--- branches/extragear/kde3/graphics/digikam/imageplugins/coreplugin/imageplugin_core.cpp #854473:854474
@@ -46,7 +46,7 @@
 #include "bwsepiatool.h"
 #include "redeyetool.h"
 #include "blurtool.h"
-#include "imageeffect_sharpen.h"
+#include "sharpentool.h"
 #include "ratiocroptool.h"
 #include "autocorrectiontool.h"
 #include "iccprooftool.h"
@@ -56,10 +56,10 @@
 using namespace DigikamImagesPluginCore;
 using namespace Digikam;
 
-K_EXPORT_COMPONENT_FACTORY( digikamimageplugin_core,
-                            KGenericFactory<ImagePlugin_Core>("digikam"));
+K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_core,
+                           KGenericFactory<ImagePlugin_Core>("digikam"));
 
-ImagePlugin_Core::ImagePlugin_Core(QObject *parent, const char*, const QStringList &)
+ImagePlugin_Core::ImagePlugin_Core(QObject *parent, const char*, const QStringList&)
                 : ImagePlugin(parent, "ImagePlugin_Core")
 {
     //-------------------------------
@@ -169,8 +169,8 @@
 
 void ImagePlugin_Core::slotSharpen()
 {
-    ImageEffect_Sharpen dlg(kapp->activeWindow());
-    dlg.exec();
+    SharpenTool *tool = new SharpenTool(this);
+    loadTool(tool);
 }
 
 void ImagePlugin_Core::slotBCG()
--- branches/extragear/kde3/graphics/digikam/imageplugins/coreplugin/sharpnesseditor/Makefile.am #854473:854474
@@ -24,9 +24,9 @@
 
 libsharpnesseditor_la_LIBADD = $(top_builddir)/digikam/imageplugins/coreplugin/sharpnesseditor/clapack/liblapack.la 
 
-libsharpnesseditor_la_SOURCES = imageeffect_sharpen.cpp unsharp.cpp matrix.cpp refocus.cpp 
+libsharpnesseditor_la_SOURCES = sharpentool.cpp unsharp.cpp matrix.cpp refocus.cpp 
 
 libsharpnesseditor_la_LDFLAGS = $(all_libraries)
 
-noinst_HEADERS = imageeffect_sharpen.h unsharp.h matrix.h refocus.h 
+noinst_HEADERS = sharpentool.h unsharp.h matrix.h refocus.h 
 



More information about the Digikam-devel mailing list