7
7
* Description : image histogram adjust levels.
9
* Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
9
* Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
* This program is free software; you can redistribute it
12
12
* and/or modify it under the terms of the GNU General
104
104
I18N_NOOP("An image-histogram-levels adjustment plugin for digiKam."),
105
105
KAboutData::License_GPL,
106
"(c) 2004-2007, Gilles Caulier",
106
"(c) 2004-2008, Gilles Caulier",
108
108
"http://www.digikam.org");
192
192
m_hGradientMinInput->setFixedHeight( 20 );
193
193
m_hGradientMinInput->setMinValue(0);
194
194
m_hGradientMinInput->setMaxValue(m_histoSegments);
195
QWhatsThis::add( m_hGradientMinInput, i18n("<p>Select here the minimal intensity input value of the histogram."));
195
QWhatsThis::add( m_hGradientMinInput, i18n("<p>Select the minimal intensity input value of the histogram."));
196
196
QToolTip::add( m_hGradientMinInput, i18n( "Minimal intensity input." ) );
197
197
m_hGradientMinInput->setColors( QColor( "black" ), QColor( "white" ) );
198
198
m_hGradientMinInput->installEventFilter(this);
201
201
m_hGradientMaxInput->setFixedHeight( 20 );
202
202
m_hGradientMaxInput->setMinValue(0);
203
203
m_hGradientMaxInput->setMaxValue(m_histoSegments);
204
QWhatsThis::add( m_hGradientMaxInput, i18n("<p>Select here the maximal intensity input value of the histogram."));
204
QWhatsThis::add( m_hGradientMaxInput, i18n("<p>Select the maximal intensity input value of the histogram."));
205
205
QToolTip::add( m_hGradientMaxInput, i18n( "Maximal intensity input." ) );
206
206
m_hGradientMaxInput->setColors( QColor( "black" ), QColor( "white" ) );
207
207
m_hGradientMaxInput->installEventFilter(this);
209
209
m_minInput = new QSpinBox(0, m_histoSegments, 1, gboxSettings);
210
210
m_minInput->setValue(0);
211
QWhatsThis::add( m_minInput, i18n("<p>Select here the minimal intensity input value of the histogram."));
211
QWhatsThis::add( m_minInput, i18n("<p>Select the minimal intensity input value of the histogram."));
212
212
QToolTip::add( m_minInput, i18n( "Minimal intensity input." ) );
214
214
m_gammaInput = new KDoubleNumInput(gboxSettings);
216
216
m_gammaInput->setRange(0.1, 3.0, 0.01);
217
217
m_gammaInput->setValue(1.0);
218
218
QToolTip::add( m_gammaInput, i18n( "Gamma input value." ) );
219
QWhatsThis::add( m_gammaInput, i18n("<p>Select here the gamma input value."));
219
QWhatsThis::add( m_gammaInput, i18n("<p>Select the gamma input value."));
221
221
m_maxInput = new QSpinBox(0, m_histoSegments, 1, gboxSettings);
222
222
m_maxInput->setValue(m_histoSegments);
223
223
QToolTip::add( m_maxInput, i18n( "Maximal intensity input." ) );
224
QWhatsThis::add( m_maxInput, i18n("<p>Select here the maximal intensity input value of the histogram."));
224
QWhatsThis::add( m_maxInput, i18n("<p>Select the maximal intensity input value of the histogram."));
226
226
m_hGradientMinOutput = new KGradientSelector( KSelector::Horizontal, gboxSettings );
227
227
m_hGradientMinOutput->setColors( QColor( "black" ), QColor( "white" ) );
228
QWhatsThis::add( m_hGradientMinOutput, i18n("<p>Select here the minimal intensity output value of the histogram."));
228
QWhatsThis::add( m_hGradientMinOutput, i18n("<p>Select the minimal intensity output value of the histogram."));
229
229
QToolTip::add( m_hGradientMinOutput, i18n( "Minimal intensity output." ) );
230
230
m_hGradientMinOutput->setFixedHeight( 20 );
231
231
m_hGradientMinOutput->setMinValue(0);
235
235
m_hGradientMaxOutput = new KGradientSelector( KSelector::Horizontal, gboxSettings );
236
236
m_hGradientMaxOutput->setColors( QColor( "black" ), QColor( "white" ) );
237
QWhatsThis::add( m_hGradientMaxOutput, i18n("<p>Select here the maximal intensity output value of the histogram."));
237
QWhatsThis::add( m_hGradientMaxOutput, i18n("<p>Select the maximal intensity output value of the histogram."));
238
238
QToolTip::add( m_hGradientMaxOutput, i18n( "Maximal intensity output." ) );
239
239
m_hGradientMaxOutput->setFixedHeight( 20 );
240
240
m_hGradientMaxOutput->setMinValue(0);
244
244
m_minOutput = new QSpinBox(0, m_histoSegments, 1, gboxSettings);
245
245
m_minOutput->setValue(0);
246
246
QToolTip::add( m_minOutput, i18n( "Minimal intensity output." ) );
247
QWhatsThis::add( m_minOutput, i18n("<p>Select here the minimal intensity output value of the histogram."));
247
QWhatsThis::add( m_minOutput, i18n("<p>Select the minimal intensity output value of the histogram."));
249
249
m_maxOutput = new QSpinBox(0, m_histoSegments, 1, gboxSettings);
250
250
m_maxOutput->setValue(m_histoSegments);
251
251
QToolTip::add( m_maxOutput, i18n( "Maximal intensity output." ) );
252
QWhatsThis::add( m_maxOutput, i18n("<p>Select here the maximal intensity output value of the histogram."));
252
QWhatsThis::add( m_maxOutput, i18n("<p>Select the maximal intensity output value of the histogram."));
254
254
// -------------------------------------------------------------