[Digikam-devel] extragear/graphics/digikam/imageplugins

Andi Clemens andi.clemens at gmx.net
Sun Aug 31 23:02:22 BST 2008


SVN commit 855485 by aclemens:

digiKam from trunk: Free Rotation plugin is now ported to Editor Tool API.
CCMAIL: digikam-devel at kde.org

 M  +1 -1      EDITORTOOLPORT  
 M  +1 -1      freerotation/CMakeLists.txt  
 A             freerotation/freerotationtool.cpp   freerotation/imageeffect_freerotation.cpp#855420 [License: GPL (v2+)]
 A             freerotation/freerotationtool.h   freerotation/imageeffect_freerotation.h#855420 [License: GPL (v2+)]
 D             freerotation/imageeffect_freerotation.cpp  
 D             freerotation/imageeffect_freerotation.h  
 M  +5 -3      freerotation/imageplugin_freerotation.cpp  


--- trunk/extragear/graphics/digikam/imageplugins/EDITORTOOLPORT #855484:855485
@@ -28,7 +28,7 @@
   \---distortion            ImageGuideDlg       A               DONE
 border                      ImageGuideDlg       DONE            DONE
 distortionfx                ImageGuideDlg       DONE            DONE
-freerotation                ImageGuideDlg       A               DONE
+freerotation                ImageGuideDlg       DONE            DONE
 inpainting                  ImageGuideDlg       DONE            DONE
 raindrop                    ImageGuideDlg       DONE            DONE
 sheartool                   ImageGuideDlg       DONE            DONE
--- trunk/extragear/graphics/digikam/imageplugins/freerotation/CMakeLists.txt #855484:855485
@@ -1,7 +1,7 @@
 
 set(digikamimageplugin_freerotation_PART_SRCS freerotation.cpp 
                                               imageplugin_freerotation.cpp
-                                              imageeffect_freerotation.cpp
+                                              freerotationtool.cpp
    )
 
 
--- trunk/extragear/graphics/digikam/imageplugins/freerotation/imageplugin_freerotation.cpp #855484:855485
@@ -35,10 +35,12 @@
 // Local includes.
 
 #include "ddebug.h"
-#include "imageeffect_freerotation.h"
+#include "freerotationtool.h"
 #include "imageplugin_freerotation.h"
 #include "imageplugin_freerotation.moc"
 
+using namespace DigikamFreeRotationImagesPlugin;
+
 K_PLUGIN_FACTORY( FreeRotationFactory, registerPlugin<ImagePlugin_FreeRotation>(); )
 K_EXPORT_PLUGIN ( FreeRotationFactory("digikamimageplugin_freerotation") )
 
@@ -68,6 +70,6 @@
 
 void ImagePlugin_FreeRotation::slotFreeRotation()
 {
-    DigikamFreeRotationImagesPlugin::ImageEffect_FreeRotation dlg(kapp->activeWindow());
-    dlg.exec();
+    FreeRotationTool *tool = new FreeRotationTool(this);
+    loadTool(tool);
 }



More information about the Digikam-devel mailing list