SVN commit 855647 by cgilles:
digiKam from trunk :Noise Reduction image plugin is now ported to EditorTool API
CCMAIL:
[hidden email]
M +2 -3 CMakeLists.txt
D imageeffect_noisereduction.cpp
D imageeffect_noisereduction.h
M +5 -3 imageplugin_noisereduction.cpp
A noisereductiontool.cpp imageeffect_noisereduction.cpp#855642 [License: GPL (v2+)]
A noisereductiontool.h imageeffect_noisereduction.h#855642 [License: GPL (v2+)]
--- trunk/extragear/graphics/digikam/imageplugins/noisereduction/CMakeLists.txt #855646:855647
@@ -1,10 +1,9 @@
SET(digikamimageplugin_noisereduction_PART_SRCS imageplugin_noisereduction.cpp
- imageeffect_noisereduction.cpp
+ noisereductiontool.cpp
noisereduction.cpp
)
-
KDE4_ADD_PLUGIN(digikamimageplugin_noisereduction ${digikamimageplugin_noisereduction_PART_SRCS})
TARGET_LINK_LIBRARIES(
@@ -15,7 +14,7 @@
${KDE4_KIO_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
- ${KDCRAW_LIBRARIES}
+ ${KDCRAW_LIBRARIES}
)
INSTALL(TARGETS digikamimageplugin_noisereduction DESTINATION ${PLUGIN_INSTALL_DIR})
--- trunk/extragear/graphics/digikam/imageplugins/noisereduction/imageplugin_noisereduction.cpp #855646:855647
@@ -34,10 +34,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_PLUGIN_FACTORY( NoiseReductionFactory, registerPlugin<ImagePlugin_NoiseReduction>(); )
K_EXPORT_PLUGIN ( NoiseReductionFactory("digikamimageplugin_noisereduction") )
@@ -66,6 +68,6 @@
void ImagePlugin_NoiseReduction::slotNoiseReduction()
{
- DigikamNoiseReductionImagesPlugin::ImageEffect_NoiseReduction dlg(kapp->activeWindow());
- dlg.exec();
+ NoiseReductionTool *tool = new NoiseReductionTool(this);
+ loadTool(tool);
}
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel