[Digikam-devel] extragear/graphics/digikam/imageplugins/colorfx
Andi Clemens
andi.clemens at gmx.net
Sun Aug 31 09:44:00 BST 2008
SVN commit 855131 by aclemens:
digiKam from trunk: Color Effects plugin is now ported to Editor Tool API.
CCMAIL: digikam-devel at kde.org
M +1 -1 CMakeLists.txt
A colorfxtool.cpp imageeffect_colorfx.cpp#854969 [License: GPL (v2+)]
A colorfxtool.h imageeffect_colorfx.h#854969 [License: GPL (v2+)]
D imageeffect_colorfx.cpp
D imageeffect_colorfx.h
M +6 -4 imageplugin_colorfx.cpp
--- trunk/extragear/graphics/digikam/imageplugins/colorfx/CMakeLists.txt #855130:855131
@@ -1,6 +1,6 @@
SET(digikamimageplugin_colorfx_PART_SRCS imageplugin_colorfx.cpp
- imageeffect_colorfx.cpp
+ colorfxtool.cpp
)
--- trunk/extragear/graphics/digikam/imageplugins/colorfx/imageplugin_colorfx.cpp #855130:855131
@@ -4,7 +4,7 @@
* http://www.digikam.org
*
* Date : 2004-02-14
- * Description : a digiKam image plugin for to apply a color
+ * Description : a digiKam image plugin for to apply a color
* effect to an image.
*
* Copyright (C) 2004-2005 by Renchi Raju <renchi at pooh.tam.uiuc.edu>
@@ -36,10 +36,12 @@
// Local includes.
#include "ddebug.h"
-#include "imageeffect_colorfx.h"
+#include "colorfxtool.h"
#include "imageplugin_colorfx.h"
#include "imageplugin_colorfx.moc"
+using namespace DigikamColorFXImagesPlugin;
+
K_PLUGIN_FACTORY( ColorFXFactory, registerPlugin<ImagePlugin_ColorFX>(); )
K_EXPORT_PLUGIN ( ColorFXFactory("digikamimageplugin_colorfx") )
@@ -68,6 +70,6 @@
void ImagePlugin_ColorFX::slotColorFX()
{
- DigikamColorFXImagesPlugin::ImageEffect_ColorFX dlg(kapp->activeWindow());
- dlg.exec();
+ ColorFXTool *tool = new ColorFXTool(kapp->activeWindow());
+ loadTool(tool);
}
More information about the Digikam-devel
mailing list