1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a plugin to reduce lens distorsions to an image.
9
* Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
22
* ============================================================ */
27
#include <kgenericfactory.h>
28
#include <klibloader.h>
35
#include "imageeffect_lensdistortion.h"
36
#include "imageplugin_lensdistortion.h"
37
#include "imageplugin_lensdistortion.moc"
39
K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_lensdistortion,
40
KGenericFactory<ImagePlugin_LensDistortion>("digikamimageplugin_lensdistortion"));
42
ImagePlugin_LensDistortion::ImagePlugin_LensDistortion(QObject *parent, const char*, const QStringList &)
43
: Digikam::ImagePlugin(parent, "ImagePlugin_LensDistortion")
45
m_lensdistortionAction = new KAction(i18n("Lens Distortion..."), "lensdistortion", 0,
46
this, SLOT(slotLensDistortion()),
47
actionCollection(), "imageplugin_lensdistortion");
49
setXMLFile("digikamimageplugin_lensdistortion_ui.rc");
51
DDebug() << "ImagePlugin_LensDistortion plugin loaded" << endl;
54
ImagePlugin_LensDistortion::~ImagePlugin_LensDistortion()
58
void ImagePlugin_LensDistortion::setEnabledActions(bool enable)
60
m_lensdistortionAction->setEnabled(enable);
63
void ImagePlugin_LensDistortion::slotLensDistortion()
65
DigikamLensDistortionImagesPlugin::ImageEffect_LensDistortion dlg(parentWidget());