SVN commit 854792 by cgilles:
digiKam from KDE3 branch: Film Grain image plugin is now ported to Editor Tool API
CCMAIL:
[hidden email]
M +1 -1 Makefile.am
A filmgraintool.cpp imageeffect_filmgrain.cpp#854290 [License: GPL (v2+)]
A filmgraintool.h imageeffect_filmgrain.h#854290 [License: GPL (v2+)]
D imageeffect_filmgrain.cpp
D imageeffect_filmgrain.h
M +5 -3 imageplugin_filmgrain.cpp
--- branches/extragear/kde3/graphics/digikam/imageplugins/filmgrain/Makefile.am #854791:854792
@@ -18,7 +18,7 @@
$(all_includes)
digikamimageplugin_filmgrain_la_SOURCES = imageplugin_filmgrain.cpp \
- imageeffect_filmgrain.cpp filmgrain.cpp
+ filmgraintool.cpp filmgrain.cpp
digikamimageplugin_filmgrain_la_LIBADD = $(LIB_KPARTS) \
$(top_builddir)/digikam/digikam/libdigikam.la
--- branches/extragear/kde3/graphics/digikam/imageplugins/filmgrain/imageplugin_filmgrain.cpp #854791:854792
@@ -34,10 +34,12 @@
// Local includes.
#include "ddebug.h"
-#include "imageeffect_filmgrain.h"
+#include "filmgraintool.h"
#include "imageplugin_filmgrain.h"
#include "imageplugin_filmgrain.moc"
+using namespace DigikamFilmGrainImagesPlugin;
+
K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_filmgrain,
KGenericFactory<ImagePlugin_FilmGrain>("digikamimageplugin_filmgrain"));
@@ -64,6 +66,6 @@
void ImagePlugin_FilmGrain::slotFilmGrain()
{
- DigikamFilmGrainImagesPlugin::ImageEffect_FilmGrain dlg(kapp->activeWindow());
- dlg.exec();
+ FilmGrainTool *tool = new FilmGrainTool(this);
+ loadTool(tool);
}
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel