extragear/graphics/digikam/imageplugins/inserttext

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

extragear/graphics/digikam/imageplugins/inserttext

Bugzilla from andi.clemens@gmx.net
SVN commit 855149 by aclemens:

digiKam from trunk: Insert Text plugin is now ported to Editor Tool API.
CCMAIL: [hidden email]

 M  +1 -1      CMakeLists.txt  
 D             imageeffect_inserttext.cpp  
 D             imageeffect_inserttext.h  
 M  +5 -3      imageplugin_inserttext.cpp  
 A             inserttexttool.cpp   imageeffect_inserttext.cpp#854969 [License: GPL (v2+)]
 A             inserttexttool.h   imageeffect_inserttext.h#854969 [License: GPL (v2+)]


--- trunk/extragear/graphics/digikam/imageplugins/inserttext/CMakeLists.txt #855148:855149
@@ -1,7 +1,7 @@
 
 SET(digikamimageplugin_inserttext_PART_SRCS inserttextwidget.cpp
                                             imageplugin_inserttext.cpp
-                                            imageeffect_inserttext.cpp
+                                            inserttexttool.cpp
    )
 
 
--- trunk/extragear/graphics/digikam/imageplugins/inserttext/imageplugin_inserttext.cpp #855148:855149
@@ -34,10 +34,12 @@
 // Local includes.
 
 #include "ddebug.h"
-#include "imageeffect_inserttext.h"
+#include "inserttexttool.h"
 #include "imageplugin_inserttext.h"
 #include "imageplugin_inserttext.moc"
 
+using namespace DigikamInsertTextImagesPlugin;
+
 K_PLUGIN_FACTORY( InsertTextFactory, registerPlugin<ImagePlugin_InsertText>(); )
 K_EXPORT_PLUGIN ( InsertTextFactory("digikamimageplugin_inserttext") )
 
@@ -68,6 +70,6 @@
 
 void ImagePlugin_InsertText::slotInsertText()
 {
-    DigikamInsertTextImagesPlugin::ImageEffect_InsertText dlg(kapp->activeWindow());
-    dlg.exec();
+    InsertTextTool *tool = new InsertTextTool(kapp->activeWindow());
+    loadTool(tool);
 }
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel