[Digikam-devel] extragear/graphics/digikam/imageplugins/adjustcurves
Andi Clemens
andi.clemens at gmx.net
Sat Aug 30 10:21:04 BST 2008
SVN commit 854729 by aclemens:
digiKam from trunk: Adjust Curves plugin is now ported to Editor Tool API.
CCMAIL: digikam-devel at kde.org
M +1 -1 CMakeLists.txt
D adjustcurves.cpp
D adjustcurves.h
A adjustcurvestool.cpp adjustcurves.cpp#854724 [License: GPL (v2+)]
A adjustcurvestool.h adjustcurves.h#854724 [License: GPL (v2+)]
M +6 -4 imageplugin_adjustcurves.cpp
--- trunk/extragear/graphics/digikam/imageplugins/adjustcurves/CMakeLists.txt #854728:854729
@@ -1,6 +1,6 @@
SET(digikamimageplugin_adjustcurves_PART_SRCS imageplugin_adjustcurves.cpp
- adjustcurves.cpp
+ adjustcurvestool.cpp
)
--- trunk/extragear/graphics/digikam/imageplugins/adjustcurves/imageplugin_adjustcurves.cpp #854728:854729
@@ -34,10 +34,12 @@
// Local includes.
#include "ddebug.h"
-#include "adjustcurves.h"
+#include "adjustcurvestool.h"
#include "imageplugin_adjustcurves.h"
#include "imageplugin_adjustcurves.moc"
+using namespace DigikamAdjustCurvesImagesPlugin;
+
K_PLUGIN_FACTORY( AdjustCurvesFactory, registerPlugin<ImagePlugin_AdjustCurves>(); )
K_EXPORT_PLUGIN ( AdjustCurvesFactory("digikamimageplugin_adjustcurves") )
@@ -48,7 +50,7 @@
m_curvesAction = new KAction(KIcon("adjustcurves"), i18n("Curves Adjust..."), this);
actionCollection()->addAction("imageplugin_adjustcurves", m_curvesAction );
- connect(m_curvesAction, SIGNAL(triggered(bool) ),
+ connect(m_curvesAction, SIGNAL(triggered(bool) ),
this, SLOT(slotCurvesAdjust()));
m_curvesAction->setShortcut(QKeySequence(Qt::CTRL+Qt::Key_M));
@@ -68,6 +70,6 @@
void ImagePlugin_AdjustCurves::slotCurvesAdjust()
{
- DigikamAdjustCurvesImagesPlugin::AdjustCurveDialog dlg(kapp->activeWindow());
- dlg.exec();
+ AdjustCurvesTool *tool = new AdjustCurvesTool(kapp->activeWindow());
+ loadTool(tool);
}
More information about the Digikam-devel
mailing list