7
7
* Description : image channels mixer.
9
* Copyright (C) 2005-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
9
* Copyright (C) 2005-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
* Load and save mixer gains methods inspired from
12
12
* Gimp 2.2.3 and copyrighted 2002 by Martin Guldahl
102
102
I18N_NOOP("An image color channel mixer plugin for digiKam."),
103
103
KAboutData::License_GPL,
104
"(c) 2005-2007, Gilles Caulier",
104
"(c) 2005-2008, Gilles Caulier",
106
106
"http://www.digikam.org");
130
130
m_channelCB->insertItem( i18n("Green") );
131
131
m_channelCB->insertItem( i18n("Blue") );
132
132
m_channelCB->setCurrentText( i18n("Red") );
133
QWhatsThis::add( m_channelCB, i18n("<p>Select here the color channel to mix:<p>"
133
QWhatsThis::add( m_channelCB, i18n("<p>Select the color channel to mix here:<p>"
134
134
"<b>Red</b>: display the red image-channel values.<p>"
135
135
"<b>Green</b>: display the green image-channel values.<p>"
136
136
"<b>Blue</b>: display the blue image-channel values.<p>"));
139
139
m_scaleBG->setExclusive(true);
140
140
m_scaleBG->setFrameShape(QFrame::NoFrame);
141
141
m_scaleBG->setInsideMargin( 0 );
142
QWhatsThis::add( m_scaleBG, i18n("<p>Select here the histogram scale.<p>"
142
QWhatsThis::add( m_scaleBG, i18n("<p>Select the histogram scale here.<p>"
143
143
"If the image's maximal counts are small, you can use the linear scale.<p>"
144
144
"Logarithmic scale can be used when the maximal counts are big; "
145
145
"if it is used, all values (small and large) will be visible on the graph."));
188
188
m_redGain = new KDoubleNumInput(gboxSettings);
189
189
m_redGain->setPrecision(0);
190
190
m_redGain->setRange(-200.0, 200.0, 1, true);
191
QWhatsThis::add( m_redGain, i18n("<p>Select here the red color gain in percent for the current channel."));
191
QWhatsThis::add( m_redGain, i18n("<p>Select the red color gain in percent for the current channel here."));
193
193
QLabel *blueLabel = new QLabel(i18n("Blue:"), gboxSettings);
194
194
m_greenGain = new KDoubleNumInput(gboxSettings);
195
195
m_greenGain->setPrecision(0);
196
196
m_greenGain->setRange(-200.0, 200.0, 1, true);
197
QWhatsThis::add( m_greenGain, i18n("<p>Select here the green color gain in percent for the current channel."));
197
QWhatsThis::add( m_greenGain, i18n("<p>Select the green color gain in percent for the current channel here."));
199
199
QLabel *greenLabel = new QLabel(i18n("Green:"), gboxSettings);
200
200
m_blueGain = new KDoubleNumInput(gboxSettings);
201
201
m_blueGain->setPrecision(0);
202
202
m_blueGain->setRange(-200.0, 200.0, 1, true);
203
QWhatsThis::add( m_blueGain, i18n("<p>Select here the blue color gain in percent for the current channel."));
203
QWhatsThis::add( m_blueGain, i18n("<p>Select the blue color gain in percent for the current channel here."));
205
205
m_resetButton = new QPushButton(i18n("&Reset"), gboxSettings);
206
206
QWhatsThis::add( m_resetButton, i18n("Reset color channels' gains settings from the currently selected channel."));