[Digikam-devel] extragear/graphics/digikam/imageplugins/inserttext
Andi Clemens
andi.clemens at gmx.net
Sun Aug 31 10:02:17 BST 2008
SVN commit 855149 by aclemens:
digiKam from trunk: Insert Text plugin is now ported to Editor Tool API.
CCMAIL: digikam-devel at kde.org
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);
}
More information about the Digikam-devel
mailing list