[Digikam-devel] [Bug 128135] WISH: Adjust exposure etc. in terms of EV
Gilles Caulier
caulier.gilles at kdemail.net
Wed Jan 10 15:32:04 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=128135
------- Additional Comments From caulier.gilles kdemail net 2007-01-10 16:32 -------
SVN commit 622058 by cgilles:
digikam from trunk : Adjust Levels image editor tool : Fix Gamma excursion values to be homogenous with BCG image editor tool.
CCBUGS: 128135
M +6 -7 adjustlevels.cpp
M +31 -33 adjustlevels.h
--- trunk/extragear/graphics/digikamimageplugins/adjustlevels/adjustlevels.cpp #622057:622058
@ -1,10 +1,9 @
/* ============================================================
- * File : adjustlevels.cpp
- * Author: Gilles Caulier <caulier dot gilles at kdemail dot net>
- * Date : 2004-07-20
+ * Authors: Gilles Caulier <caulier dot gilles at kdemail dot net>
+ * Date : 2004-07-20
* Description : image histogram adjust levels.
*
- * Copyright 2004-2006 by Gilles Caulier
+ * Copyright 2004-2007 by Gilles Caulier
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
@ -64,6 +63,7 @
#include "version.h"
#include "adjustlevels.h"
+#include "adjustlevels.moc"
namespace DigikamAdjustLevelsImagesPlugin
{
@ -92,7 +92,7 @
digikamimageplugins_version,
I18N_NOOP("An image-histogram-levels adjustment plugin for digiKam."),
KAboutData::License_GPL,
- "(c) 2004-2006, Gilles Caulier",
+ "(c) 2004-2007, Gilles Caulier",
0,
"http://extragear.kde.org/apps/digikamimageplugins");
@ -207,7 +207,7 @
QToolTip::add( m_minInput, i18n( "Minimal intensity input." ) );
m_gammaInput = new KDoubleNumInput(gboxSettings);
m_gammaInput->setPrecision(2);
- m_gammaInput->setRange(0.1, 10.0, 0.1);
+ m_gammaInput->setRange(0.1, 3.0, 0.01);
m_gammaInput->setValue(1.0);
QToolTip::add( m_gammaInput, i18n( "Gamma input value." ) );
QWhatsThis::add( m_gammaInput, i18n("<p>Select here the gamma input value."));
@ -730,5 +730,4 @
} // NameSpace DigikamAdjustLevelsImagesPlugin
-#include "adjustlevels.moc"
--- trunk/extragear/graphics/digikamimageplugins/adjustlevels/adjustlevels.h #622057:622058
@ -1,10 +1,9 @
/* ============================================================
- * File : adjustlevels.h
- * Author: Gilles Caulier <caulier dot gilles at kdemail dot net>
- * Date : 2004-07-20
+ * Authors: Gilles Caulier <caulier dot gilles at kdemail dot net>
+ * Date : 2004-07-20
* Description : image histogram adjust levels.
*
- * Copyright 2004-2006 by Gilles Caulier
+ * Copyright 2004-2007 by Gilles Caulier
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
@ -48,8 +47,36 @
AdjustLevelDialog(QWidget *parent, QString title, QFrame* banner);
~AdjustLevelDialog();
+protected:
+
+ void finalRendering();
+
private:
+
+ void adjustSliders(int minIn, double gamIn, int maxIn, int minOut, int maxOut);
+private slots:
+
+ void slotDefault();
+ void slotUser2();
+ void slotUser3();
+ void slotEffect();
+ void slotResetCurrentChannel();
+ void slotAutoLevels();
+ void slotChannelChanged(int channel);
+ void slotScaleChanged(int scale);
+ void slotAdjustSliders();
+ void slotGammaInputchanged(double val);
+ void slotAdjustMinInputSpinBox(int val);
+ void slotAdjustMaxInputSpinBox(int val);
+ void slotAdjustMinOutputSpinBox(int val);
+ void slotAdjustMaxOutputSpinBox(int val);
+ void slotSpotColorChanged(const Digikam::DColor &color);
+ void slotColorSelectedFromTarget(const Digikam::DColor &color);
+ void slotPickerColorButtonActived();
+
+private:
+
enum HistogramScale
{
Linear=0,
@ -109,35 +136,6 @
Digikam::ImageLevels *m_levels;
Digikam::DImg m_originalImage;
-
-protected:
-
- void finalRendering();
-
-private:
-
- void adjustSliders(int minIn, double gamIn, int maxIn, int minOut, int maxOut);
-
-private slots:
-
- void slotDefault();
- void slotUser2();
- void slotUser3();
- void slotEffect();
- void slotResetCurrentChannel();
- void slotAutoLevels();
- void slotChannelChanged(int channel);
- void slotScaleChanged(int scale);
- void slotAdjustSliders();
- void slotGammaInputchanged(double val);
- void slotAdjustMinInputSpinBox(int val);
- void slotAdjustMaxInputSpinBox(int val);
- void slotAdjustMinOutputSpinBox(int val);
- void slotAdjustMaxOutputSpinBox(int val);
- void slotSpotColorChanged(const Digikam::DColor &color);
- void slotColorSelectedFromTarget(const Digikam::DColor &color);
- void slotPickerColorButtonActived();
-
};
} // NameSpace DigikamAdjustLevelsImagesPlugin
More information about the Digikam-devel
mailing list