extragear/graphics/digikam/imageplugins/restoration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

extragear/graphics/digikam/imageplugins/restoration

Gilles Caulier-4
SVN commit 855007 by cgilles:

digiKam from trunk: Restoration image plugin is now ported to Editor Tool API
CCMAIL: [hidden email]


 M  +1 -1      CMakeLists.txt  
 D             imageeffect_restoration.cpp  
 D             imageeffect_restoration.h  
 M  +5 -3      imageplugin_restoration.cpp  
 A             restorationtool.cpp   imageeffect_restoration.cpp#854875 [License: GPL (v2+)]
 A             restorationtool.h   imageeffect_restoration.h#854875 [License: GPL (v2+)]


--- trunk/extragear/graphics/digikam/imageplugins/restoration/CMakeLists.txt #855006:855007
@@ -1,6 +1,6 @@
 
 SET(digikamimageplugin_restoration_PART_SRCS imageplugin_restoration.cpp
-                                             imageeffect_restoration.cpp
+                                             restorationtool.cpp
    )
 
 
--- trunk/extragear/graphics/digikam/imageplugins/restoration/imageplugin_restoration.cpp #855006:855007
@@ -35,10 +35,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_PLUGIN_FACTORY( RestorationFactory, registerPlugin<ImagePlugin_Restoration>(); )
 K_EXPORT_PLUGIN ( RestorationFactory("digikamimageplugin_restoration") )
 
@@ -67,6 +69,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