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

Gilles Caulier caulier.gilles at gmail.com
Sat Aug 30 10:28:33 BST 2008


SVN commit 854739 by cgilles:

digiKam from KDE3 branch: Texture image plugin is now ported to Editor Tool API
CCMAIL: digikam-devel at kde.org


 M  +1 -1      Makefile.am  
 D             imageeffect_texture.cpp  
 D             imageeffect_texture.h  
 M  +5 -3      imageplugin_texture.cpp  
 A             texturetool.cpp   imageeffect_texture.cpp#854290 [License: GPL (v2+)]
 A             texturetool.h   imageeffect_texture.h#854290 [License: GPL (v2+)]


--- branches/extragear/kde3/graphics/digikam/imageplugins/texture/Makefile.am #854738:854739
@@ -19,7 +19,7 @@
 	       $(all_includes) 
 
 digikamimageplugin_texture_la_SOURCES = imageplugin_texture.cpp \
-	                                    imageeffect_texture.cpp texture.cpp 
+	                                    texturetool.cpp texture.cpp 
 
 digikamimageplugin_texture_la_LIBADD = $(LIB_KPARTS) \
 	                                   $(top_builddir)/digikam/digikam/libdigikam.la  
--- branches/extragear/kde3/graphics/digikam/imageplugins/texture/imageplugin_texture.cpp #854738:854739
@@ -33,10 +33,12 @@
 // Local includes.
 
 #include "ddebug.h"
-#include "imageeffect_texture.h"
+#include "texturetool.h"
 #include "imageplugin_texture.h"
 #include "imageplugin_texture.moc"
 
+using namespace DigikamTextureImagesPlugin;
+
 K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_texture,
                            KGenericFactory<ImagePlugin_Texture>("digikamimageplugin_texture"));
 
@@ -63,6 +65,6 @@
 
 void ImagePlugin_Texture::slotTexture()
 {
-    DigikamTextureImagesPlugin::ImageEffect_Texture dlg(kapp->activeWindow());
-    dlg.exec();
+    TextureTool *tool = new TextureTool(this);
+    loadTool(tool);
 }



More information about the Digikam-devel mailing list