SVN commit 852147 by cgilles:
digiKam from KDE3 branch: Adjust Levels image plugin is now ported to Editor Tool API. CCMAIL: [hidden email] M +1 -1 Makefile.am D adjustlevels.cpp D adjustlevels.h A adjustlevelstool.cpp adjustlevels.cpp#852070 [License: GPL (v2+)] A adjustlevelstool.h adjustlevels.h#852070 [License: GPL (v2+)] M +13 -12 imageplugin_adjustlevels.cpp --- branches/extragear/kde3/graphics/digikam/imageplugins/adjustlevels/Makefile.am #852146:852147 @@ -18,7 +18,7 @@ $(all_includes) digikamimageplugin_adjustlevels_la_SOURCES = imageplugin_adjustlevels.cpp \ - adjustlevels.cpp + adjustlevelstool.cpp digikamimageplugin_adjustlevels_la_LIBADD = $(LIB_KPARTS) \ $(top_builddir)/digikam/digikam/libdigikam.la --- branches/extragear/kde3/graphics/digikam/imageplugins/adjustlevels/imageplugin_adjustlevels.cpp #852146:852147 @@ -4,21 +4,21 @@ * http://www.digikam.org * * Date : 2004-06-04 - * Description : image histogram adjust levels. - * - * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com> + * Description : image histogram adjust levels. * + * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> + * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * ============================================================ */ // KDE includes. @@ -32,13 +32,15 @@ // Local includes. #include "ddebug.h" -#include "adjustlevels.h" +#include "adjustlevelstool.h" #include "imageplugin_adjustlevels.h" #include "imageplugin_adjustlevels.moc" -K_EXPORT_COMPONENT_FACTORY( digikamimageplugin_adjustlevels, - KGenericFactory<ImagePlugin_AdjustLevels>("digikamimageplugin_adjustlevels")) +using namespace DigikamAdjustLevelsImagesPlugin; +K_EXPORT_COMPONENT_FACTORY(digikamimageplugin_adjustlevels, + KGenericFactory<ImagePlugin_AdjustLevels>("digikamimageplugin_adjustlevels")) + ImagePlugin_AdjustLevels::ImagePlugin_AdjustLevels(QObject *parent, const char*, const QStringList &) : Digikam::ImagePlugin(parent, "ImagePlugin_AdjustLevels") @@ -49,7 +51,7 @@ actionCollection(), "imageplugin_adjustlevels"); setXMLFile("digikamimageplugin_adjustlevels_ui.rc"); - + DDebug() << "ImagePlugin_AdjustLevels plugin loaded" << endl; } @@ -64,7 +66,6 @@ void ImagePlugin_AdjustLevels::slotLevelsAdjust() { - DigikamAdjustLevelsImagesPlugin::AdjustLevelDialog dlg(parentWidget()); - dlg.exec(); + AdjustLevelsTool *levels = new AdjustLevelsTool(this); + loadTool(levels); } - _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |