[Digikam-devel] branches/extragear/kde3/graphics/digikam/imageplugins/freerotation

Gilles Caulier caulier.gilles at gmail.com
Tue Aug 26 22:09:12 BST 2008


SVN commit 852918 by cgilles:

digiKam from KDE3 branch : Free Rotation is the first multithreaded image plugins ported to Editor Tool API
CCMAIL: digikam-devel at kde.org


 M  +1 -1      Makefile.am  
 A             freerotationtool.cpp   imageeffect_freerotation.cpp#852753 [License: GPL (v2+)]
 A             freerotationtool.h   imageeffect_freerotation.h#852753 [License: GPL (v2+)]
 D             imageeffect_freerotation.cpp  
 D             imageeffect_freerotation.h  
 M  +13 -11    imageplugin_freerotation.cpp  
 M  +8 -8      imageplugin_freerotation.h  


--- branches/extragear/kde3/graphics/digikam/imageplugins/freerotation/Makefile.am #852917:852918
@@ -18,7 +18,7 @@
 	       $(all_includes)
 
 digikamimageplugin_freerotation_la_SOURCES = imageplugin_freerotation.cpp \
-	                                         imageeffect_freerotation.cpp freerotation.cpp 
+	                                         freerotationtool.cpp freerotation.cpp 
 
 digikamimageplugin_freerotation_la_LIBADD = $(LIB_KPARTS) \
 	                                        $(top_builddir)/digikam/digikam/libdigikam.la 
--- branches/extragear/kde3/graphics/digikam/imageplugins/freerotation/imageplugin_freerotation.cpp #852917:852918
@@ -6,20 +6,20 @@
  * Date        : 2004-11-28
  * Description : a digiKam image editor plugin to process image
  *               free rotation.
- * 
- * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
- * 
+ *
+ * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ *
  * This program is free software; you can redistribute it
  * and/or modify it under the terms of the GNU General
  * Public License as published by the Free Software Foundation;
  * either version 2, or (at your option)
  * any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * ============================================================ */
 
 // KDE includes.
@@ -33,10 +33,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_EXPORT_COMPONENT_FACTORY(digikamimageplugin_freerotation,
                            KGenericFactory<ImagePlugin_FreeRotation>("digikamimageplugin_freerotation"));
 
@@ -46,9 +48,9 @@
     m_freerotationAction = new KAction(i18n("Free Rotation..."), "freerotation", 0, 
                              this, SLOT(slotFreeRotation()),
                              actionCollection(), "imageplugin_freerotation");
-    
-    setXMLFile("digikamimageplugin_freerotation_ui.rc");         
-                                    
+
+    setXMLFile("digikamimageplugin_freerotation_ui.rc");
+
     DDebug() << "ImagePlugin_FreeRotation plugin loaded" << endl;
 }
 
@@ -63,6 +65,6 @@
 
 void ImagePlugin_FreeRotation::slotFreeRotation()
 {
-    DigikamFreeRotationImagesPlugin::ImageEffect_FreeRotation dlg(parentWidget());
-    dlg.exec();
+    FreeRotationTool *tool = new FreeRotationTool(this);
+    loadTool(tool);
 }
--- branches/extragear/kde3/graphics/digikam/imageplugins/freerotation/imageplugin_freerotation.h #852917:852918
@@ -6,20 +6,20 @@
  * Date        : 2004-11-28
  * Description : a digiKam image editor plugin to process image
  *               free rotation.
- * 
- * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
- * 
+ *
+ * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ *
  * This program is free software; you can redistribute it
  * and/or modify it under the terms of the GNU General
  * Public License as published by the Free Software Foundation;
  * either version 2, or (at your option)
  * any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * ============================================================ */
 
 #ifndef IMAGEPLUGIN_FREEROTATION_H
@@ -35,11 +35,11 @@
 class DIGIKAMIMAGEPLUGINS_EXPORT ImagePlugin_FreeRotation : public Digikam::ImagePlugin
 {
     Q_OBJECT
-    
+
 public:
 
     ImagePlugin_FreeRotation(QObject *parent, const char* name,
-                         const QStringList &args);
+                             const QStringList &args);
     ~ImagePlugin_FreeRotation();
 
     void setEnabledActions(bool enable);
@@ -52,5 +52,5 @@
 
     KAction *m_freerotationAction;
 };
-    
+
 #endif /* IMAGEPLUGIN_FREEROTATION_H */



More information about the Digikam-devel mailing list