|
|
@ -144,16 +144,16 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
|
|
|
|
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
|
|
|
|
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
|
|
|
|
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
|
|
|
|
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
|
|
|
|
m_scaleBG->insert(linHistoButton, CurvesWidget::LinScaleHistogram);
|
|
|
|
m_scaleBG->insert(linHistoButton, CurvesWidget::LinScaleHistogram);
|
|
|
|
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
|
|
|
|
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
|
|
|
|
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
|
|
|
|
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
|
|
|
|
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
|
|
|
|
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
|
|
|
|
linHistoButton->setToggleButton(true);
|
|
|
|
linHistoButton->setToggleButton(true);
|
|
|
|
|
|
|
|
|
|
|
|
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
|
|
|
|
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
|
|
|
|
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
|
|
|
|
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
|
|
|
|
m_scaleBG->insert(logHistoButton, CurvesWidget::LogScaleHistogram);
|
|
|
|
m_scaleBG->insert(logHistoButton, CurvesWidget::LogScaleHistogram);
|
|
|
|
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
|
|
|
|
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
|
|
|
|
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
|
|
|
|
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
|
|
|
|
logHistoButton->setToggleButton(true);
|
|
|
|
logHistoButton->setToggleButton(true);
|
|
|
|
|
|
|
|
|
|
|
@ -209,18 +209,18 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
|
|
|
|
m_curveType = new TQHButtonGroup(m_gboxSettings->plainPage());
|
|
|
|
m_curveType = new TQHButtonGroup(m_gboxSettings->plainPage());
|
|
|
|
m_curveFree = new TQPushButton(m_curveType);
|
|
|
|
m_curveFree = new TQPushButton(m_curveType);
|
|
|
|
m_curveType->insert(m_curveFree, FreeDrawing);
|
|
|
|
m_curveType->insert(m_curveFree, FreeDrawing);
|
|
|
|
KGlobal::dirs()->addResourceType("curvefree", KGlobal::dirs()->kde_default("data") +
|
|
|
|
TDEGlobal::dirs()->addResourceType("curvefree", TDEGlobal::dirs()->kde_default("data") +
|
|
|
|
"digikam/data");
|
|
|
|
"digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
|
|
|
|
m_curveFree->setPixmap( TQPixmap( directory + "curvefree.png" ) );
|
|
|
|
m_curveFree->setPixmap( TQPixmap( directory + "curvefree.png" ) );
|
|
|
|
m_curveFree->setToggleButton(true);
|
|
|
|
m_curveFree->setToggleButton(true);
|
|
|
|
TQToolTip::add( m_curveFree, i18n( "Curve free mode" ) );
|
|
|
|
TQToolTip::add( m_curveFree, i18n( "Curve free mode" ) );
|
|
|
|
TQWhatsThis::add( m_curveFree, i18n("<p>With this button, you can draw your curve free-hand with the mouse."));
|
|
|
|
TQWhatsThis::add( m_curveFree, i18n("<p>With this button, you can draw your curve free-hand with the mouse."));
|
|
|
|
m_curveSmooth = new TQPushButton(m_curveType);
|
|
|
|
m_curveSmooth = new TQPushButton(m_curveType);
|
|
|
|
m_curveType->insert(m_curveSmooth, SmoothDrawing);
|
|
|
|
m_curveType->insert(m_curveSmooth, SmoothDrawing);
|
|
|
|
KGlobal::dirs()->addResourceType("curvemooth", KGlobal::dirs()->kde_default("data") +
|
|
|
|
TDEGlobal::dirs()->addResourceType("curvemooth", TDEGlobal::dirs()->kde_default("data") +
|
|
|
|
"digikam/data");
|
|
|
|
"digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
|
|
|
|
m_curveSmooth->setPixmap( TQPixmap( directory + "curvemooth.png" ) );
|
|
|
|
m_curveSmooth->setPixmap( TQPixmap( directory + "curvemooth.png" ) );
|
|
|
|
m_curveSmooth->setToggleButton(true);
|
|
|
|
m_curveSmooth->setToggleButton(true);
|
|
|
|
TQToolTip::add( m_curveSmooth, i18n( "Curve smooth mode" ) );
|
|
|
|
TQToolTip::add( m_curveSmooth, i18n( "Curve smooth mode" ) );
|
|
|
@ -234,9 +234,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
|
|
|
|
m_pickerColorButtonGroup = new TQHButtonGroup(m_gboxSettings->plainPage());
|
|
|
|
m_pickerColorButtonGroup = new TQHButtonGroup(m_gboxSettings->plainPage());
|
|
|
|
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
|
|
|
|
KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") +
|
|
|
|
TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") +
|
|
|
|
"digikam/data");
|
|
|
|
"digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
|
|
|
|
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
|
|
|
|
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
|
|
|
|
m_pickBlack->setToggleButton(true);
|
|
|
|
m_pickBlack->setToggleButton(true);
|
|
|
|
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
|
|
|
|
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
|
|
|
@ -244,9 +244,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
|
|
|
|
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
|
|
|
|
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
|
|
|
|
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
|
|
|
|
KGlobal::dirs()->addResourceType("color-picker-grey", KGlobal::dirs()->kde_default("data") +
|
|
|
|
TDEGlobal::dirs()->addResourceType("color-picker-grey", TDEGlobal::dirs()->kde_default("data") +
|
|
|
|
"digikam/data");
|
|
|
|
"digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
|
|
|
|
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
|
|
|
|
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
|
|
|
|
m_pickGray->setToggleButton(true);
|
|
|
|
m_pickGray->setToggleButton(true);
|
|
|
|
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
|
|
|
|
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
|
|
|
@ -254,9 +254,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
|
|
|
|
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
|
|
|
|
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
|
|
|
|
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
|
|
|
|
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
|
|
|
|
KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") +
|
|
|
|
TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") +
|
|
|
|
"digikam/data");
|
|
|
|
"digikam/data");
|
|
|
|
directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
|
|
|
|
directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
|
|
|
|
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
|
|
|
|
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
|
|
|
|
m_pickWhite->setToggleButton(true);
|
|
|
|
m_pickWhite->setToggleButton(true);
|
|
|
|
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
|
|
|
|
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
|
|
|
@ -619,7 +619,7 @@ void AdjustCurvesTool::slotLoadSettings()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KURL loadCurvesFile;
|
|
|
|
KURL loadCurvesFile;
|
|
|
|
|
|
|
|
|
|
|
|
loadCurvesFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
|
|
|
|
loadCurvesFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
|
|
|
|
TQString( "*" ), kapp->activeWindow(),
|
|
|
|
TQString( "*" ), kapp->activeWindow(),
|
|
|
|
TQString( i18n("Select Gimp Curves File to Load")) );
|
|
|
|
TQString( i18n("Select Gimp Curves File to Load")) );
|
|
|
|
if( loadCurvesFile.isEmpty() )
|
|
|
|
if( loadCurvesFile.isEmpty() )
|
|
|
@ -640,7 +640,7 @@ void AdjustCurvesTool::slotSaveAsSettings()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KURL saveCurvesFile;
|
|
|
|
KURL saveCurvesFile;
|
|
|
|
|
|
|
|
|
|
|
|
saveCurvesFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
|
|
|
|
saveCurvesFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
|
|
|
|
TQString( "*" ), kapp->activeWindow(),
|
|
|
|
TQString( "*" ), kapp->activeWindow(),
|
|
|
|
TQString( i18n("Gimp Curves File to Save")) );
|
|
|
|
TQString( i18n("Gimp Curves File to Save")) );
|
|
|
|
if( saveCurvesFile.isEmpty() )
|
|
|
|
if( saveCurvesFile.isEmpty() )
|
|
|
|