[Kde-imaging] kdeextragear-libs-1/kipi-plugins/gammacalibration
Gilles Caulier
caulier.gilles at free.fr
Thu Jun 10 12:51:52 CEST 2004
CVS commit by cgilles:
Finalize GammaCalibration plugin. Work fine now !
CCMAIL: kde-imaging at kde.org
M +17 -16 plugin_gammacalibration.cpp 1.2
M +5 -8 plugin_gammacalibration.h 1.2
--- kdeextragear-libs-1/kipi-plugins/gammacalibration/plugin_gammacalibration.cpp #1.1:1.2
@@ -2,6 +2,5 @@
* File : plugin_gammacalibration.cpp
*
- * Authors: Gregory KOKANOSKY <gregory dot kokanosky at free.fr>
- * Gilles Caulier <caulier dot gilles at free.fr>
+ * Authors: Gilles Caulier <caulier dot gilles at free.fr>
*
* Date : 01/2004
@@ -39,10 +38,11 @@
typedef KGenericFactory<Plugin_GammaCalibration> Factory;
- K_EXPORT_COMPONENT_FACTORY( kipiplugin_gammacalibration,
+
+K_EXPORT_COMPONENT_FACTORY( kipiplugin_gammacalibration,
Factory("kipiplugin_gammacalibration"));
- /////////////////////////////////////////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////////////////////////////////////////
- Plugin_GammaCalibration::Plugin_GammaCalibration(QObject *parent, const char*, const QStringList&)
+Plugin_GammaCalibration::Plugin_GammaCalibration(QObject *parent, const char*, const QStringList&)
: KIPI::Plugin( Factory::instance(), parent, "GammaCalibration")
{
@@ -50,18 +50,19 @@ typedef KGenericFactory<Plugin_GammaCali
}
-void Plugin_DiPlugin_GammaCalibration::setup( QWidget* widget )
+void Plugin_GammaCalibration::setup( QWidget* widget )
{
KIPI::Plugin::setup( widget );
- m_action_gammaCorrection = new KAction (i18n("Gamma correction..."),
+ m_action_gammaCalibration = new KAction (i18n("Gamma calibration..."),
"kgamma",
0,
this,
- SLOT(slotGammaCorrection()),
+ SLOT(slotActivate()),
actionCollection(),
"gamma_correction");
+ addAction( m_action_gammaCalibration );
}
-void Plugin_GammaCalibration::slotGammaCorrection(void)
+void Plugin_GammaCalibration::slotActivate(void)
{
QStringList args;
@@ -79,5 +80,5 @@ void Plugin_GammaCalibration::slotGammaC
KIPI::Category Plugin_GammaCalibration::category() const
{
- return KIPI::TOOLPLUGIN;
+ return KIPI::TOOLSPLUGIN;
}
--- kdeextragear-libs-1/kipi-plugins/gammacalibration/plugin_gammacalibration.h #1.1:1.2
@@ -2,6 +2,5 @@
* File : plugin_gammacalibration.h
*
- * Authors: Gregory KOKANOSKY <gregory dot kokanosky at free.fr>
- * Gilles Caulier <caulier dot gilles at free.fr>
+ * Authors: Gilles Caulier <caulier dot gilles at free.fr>
*
* Date : 01/2004
@@ -30,5 +29,4 @@
#include <libkipi/plugin.h>
- class KActionMenu;
class KAction;
@@ -48,10 +46,9 @@
private slots:
- void slotGammaCorrection(void);
+ void slotActivate(void);
private:
- KActionMenu *m_action_gammaCorrection;
-
+ KAction *m_action_gammaCalibration;
};
More information about the Kde-imaging
mailing list