SVN commit 854573 by cgilles:
digiKam from KDE3 branch : Restoration image plugin is now ported to Editor Tool API
CCMAIL:
[hidden email]
M +1 -1 Makefile.am
D imageeffect_restoration.cpp
D imageeffect_restoration.h
M +5 -3 imageplugin_restoration.cpp
A restorationtool.cpp imageeffect_restoration.cpp#854290 [License: GPL (v2+)]
A restorationtool.h imageeffect_restoration.h#854290 [License: GPL (v2+)]
--- branches/extragear/kde3/graphics/digikam/imageplugins/restoration/Makefile.am #854572:854573
@@ -19,7 +19,7 @@
$(all_includes)
digikamimageplugin_restoration_la_SOURCES = imageplugin_restoration.cpp \
- imageeffect_restoration.cpp
+ restorationtool.cpp
digikamimageplugin_restoration_la_LIBADD = $(LIB_KPARTS) \
$(top_builddir)/digikam/digikam/libdigikam.la
--- branches/extragear/kde3/graphics/digikam/imageplugins/restoration/imageplugin_restoration.cpp #854572:854573
@@ -34,10 +34,12 @@
// Local includes.
#include "ddebug.h"
-#include "imageeffect_restoration.h"
+#include "restorationtool.h"
#include "imageplugin_restoration.h"
#include "imageplugin_restoration.moc"
+using namespace DigikamRestorationImagesPlugin;
+
K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_restoration,
KGenericFactory<ImagePlugin_Restoration>("digikamimageplugin_restoration"));
@@ -64,6 +66,6 @@
void ImagePlugin_Restoration::slotRestoration()
{
- DigikamRestorationImagesPlugin::ImageEffect_Restoration dlg(kapp->activeWindow());
- dlg.exec();
+ RestorationTool *tool = new RestorationTool(this);
+ loadTool(tool);
}
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel