[Digikam-devel] branches/extragear/kde3/graphics/digikam/imageplugins/noisereduction
Gilles Caulier
caulier.gilles at gmail.com
Fri Aug 29 18:55:51 BST 2008
SVN commit 854518 by cgilles:
digiKam from KDE3 branch : Noise Reduction image plugin is now ported to Editor Tool API
CCMAIL: digikam-devel at kde.org
M +1 -1 Makefile.am
D imageeffect_noisereduction.cpp
D imageeffect_noisereduction.h
M +5 -3 imageplugin_noisereduction.cpp
A noisereductiontool.cpp imageeffect_noisereduction.cpp#854290 [License: GPL (v2+)]
A noisereductiontool.h imageeffect_noisereduction.h#854290 [License: GPL (v2+)]
--- branches/extragear/kde3/graphics/digikam/imageplugins/noisereduction/Makefile.am #854517:854518
@@ -18,7 +18,7 @@
$(all_includes)
digikamimageplugin_noisereduction_la_SOURCES = imageplugin_noisereduction.cpp \
- imageeffect_noisereduction.cpp noisereduction.cpp
+ noisereductiontool.cpp noisereduction.cpp
digikamimageplugin_noisereduction_la_LIBADD = $(LIB_KPARTS) \
$(top_builddir)/digikam/digikam/libdigikam.la
--- branches/extragear/kde3/graphics/digikam/imageplugins/noisereduction/imageplugin_noisereduction.cpp #854517:854518
@@ -33,10 +33,12 @@
// Local includes.
#include "ddebug.h"
-#include "imageeffect_noisereduction.h"
+#include "noisereductiontool.h"
#include "imageplugin_noisereduction.h"
#include "imageplugin_noisereduction.moc"
+using namespace DigikamNoiseReductionImagesPlugin;
+
K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_noisereduction,
KGenericFactory<ImagePlugin_NoiseReduction>("digikamimageplugin_noisereduction"));
@@ -63,6 +65,6 @@
void ImagePlugin_NoiseReduction::slotNoiseReduction()
{
- DigikamNoiseReductionImagesPlugin::ImageEffect_NoiseReduction dlg(kapp->activeWindow());
- dlg.exec();
+ NoiseReductionTool *hsl = new NoiseReductionTool(this);
+ loadTool(hsl);
}
More information about the Digikam-devel
mailing list