SVN commit 855338 by aclemens:
digiKam from trunk: Raindrop plugin is now ported to Editor Tool API. CCMAIL: [hidden email] M +1 -1 EDITORTOOLPORT M +1 -1 raindrop/CMakeLists.txt D raindrop/imageeffect_raindrop.cpp D raindrop/imageeffect_raindrop.h M +6 -4 raindrop/imageplugin_raindrop.cpp A raindrop/raindroptool.cpp raindrop/imageeffect_raindrop.cpp#855233 [License: GPL (v2+)] A raindrop/raindroptool.h raindrop/imageeffect_raindrop.h#855233 [License: GPL (v2+)] --- trunk/extragear/graphics/digikam/imageplugins/EDITORTOOLPORT #855337:855338 @@ -30,7 +30,7 @@ distortionfx ImageGuideDlg DONE DONE freerotation ImageGuideDlg DONE inpainting ImageGuideDlg A DONE -raindrop ImageGuideDlg A +raindrop ImageGuideDlg DONE DONE sheartool ImageGuideDlg DONE coreplugin --- trunk/extragear/graphics/digikam/imageplugins/raindrop/CMakeLists.txt #855337:855338 @@ -1,6 +1,6 @@ SET(digikamimageplugin_raindrop_PART_SRCS imageplugin_raindrop.cpp - imageeffect_raindrop.cpp + raindroptool.cpp raindrop.cpp ) --- trunk/extragear/graphics/digikam/imageplugins/raindrop/imageplugin_raindrop.cpp #855337:855338 @@ -34,10 +34,12 @@ // Local includes. #include "ddebug.h" -#include "imageeffect_raindrop.h" +#include "raindroptool.h" #include "imageplugin_raindrop.h" #include "imageplugin_raindrop.moc" +using namespace DigikamRainDropImagesPlugin; + K_PLUGIN_FACTORY( RainDropFactory, registerPlugin<ImagePlugin_RainDrop>(); ) K_EXPORT_PLUGIN ( RainDropFactory("digikamimageplugin_raindrop") ) @@ -47,7 +49,7 @@ m_raindropAction = new KAction(KIcon("raindrop"), i18n("Raindrops..."), this); actionCollection()->addAction("imageplugin_raindrop", m_raindropAction ); - connect(m_raindropAction, SIGNAL(triggered(bool) ), + connect(m_raindropAction, SIGNAL(triggered(bool) ), this, SLOT(slotRainDrop())); setXMLFile( "digikamimageplugin_raindrop_ui.rc" ); @@ -66,6 +68,6 @@ void ImagePlugin_RainDrop::slotRainDrop() { - DigikamRainDropImagesPlugin::ImageEffect_RainDrop dlg(kapp->activeWindow()); - dlg.exec(); + RainDropTool *tool = new RainDropTool(kapp->activeWindow()); + loadTool(tool); } _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |