diff options
Diffstat (limited to 'src/imageplugins/adjustlevels/adjustlevelstool.cpp')
-rw-r--r-- | src/imageplugins/adjustlevels/adjustlevelstool.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/imageplugins/adjustlevels/adjustlevelstool.cpp b/src/imageplugins/adjustlevels/adjustlevelstool.cpp index 28066774..c8697226 100644 --- a/src/imageplugins/adjustlevels/adjustlevelstool.cpp +++ b/src/imageplugins/adjustlevels/adjustlevelstool.cpp @@ -285,12 +285,12 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent) m_pickerColorButtonGroup->setFrameShape(TQFrame::NoFrame); m_autoButton = new TQPushButton(m_gboxSettings->plainPage()); - m_autoButton->setPixmap(kapp->iconLoader()->loadIcon("system-run", (TDEIcon::Group)TDEIcon::Toolbar)); TQToolTip::add( m_autoButton, i18n( "Adjust all levels automatically." ) ); + m_autoButton->setPixmap(tdeApp->iconLoader()->loadIcon("system-run", (TDEIcon::Group)TDEIcon::Toolbar)); TQToolTip::add( m_autoButton, i18n( "Adjust all levels automatically." ) ); TQWhatsThis::add( m_autoButton, i18n("<p>If you press this button, all channel levels will be adjusted " "automatically.")); m_resetButton = new TQPushButton(i18n("&Reset"), m_gboxSettings->plainPage()); - m_resetButton->setPixmap(kapp->iconLoader()->loadIcon("reload_page", (TDEIcon::Group)TDEIcon::Toolbar)); + m_resetButton->setPixmap(tdeApp->iconLoader()->loadIcon("reload_page", (TDEIcon::Group)TDEIcon::Toolbar)); TQToolTip::add( m_resetButton, i18n( "Reset current channel levels' values." ) ); TQWhatsThis::add( m_resetButton, i18n("<p>If you press this button, all levels' values " "from the current selected channel " @@ -579,7 +579,7 @@ void AdjustLevelsTool::slotEffect() void AdjustLevelsTool::finalRendering() { - kapp->setOverrideCursor( KCursor::waitCursor() ); + tdeApp->setOverrideCursor( KCursor::waitCursor() ); ImageIface* iface = m_previewWidget->imageIface(); uchar *orgData = iface->getOriginalImage(); int w = iface->originalWidth(); @@ -596,7 +596,7 @@ void AdjustLevelsTool::finalRendering() m_levels->levelsLutProcess(orgData, desData, w, h); iface->putOriginalImage(i18n("Adjust Level"), desData); - kapp->restoreOverrideCursor(); + tdeApp->restoreOverrideCursor(); delete [] orgData; delete [] desData; @@ -672,7 +672,7 @@ void AdjustLevelsTool::slotScaleChanged(int scale) void AdjustLevelsTool::readSettings() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("adjustlevels Tool"); m_channelCB->setCurrentItem(config->readNumEntry("Histogram Channel", 0)); // Luminosity. @@ -710,7 +710,7 @@ void AdjustLevelsTool::readSettings() void AdjustLevelsTool::writeSettings() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("adjustlevels Tool"); config->writeEntry("Histogram Channel", m_channelCB->currentItem()); config->writeEntry("Histogram Scale", m_scaleBG->selectedId()); @@ -752,14 +752,14 @@ void AdjustLevelsTool::slotLoadSettings() KURL loadLevelsFile; loadLevelsFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(), - TQString( "*" ), kapp->activeWindow(), + TQString( "*" ), tdeApp->activeWindow(), TQString( i18n("Select Gimp Levels File to Load")) ); if( loadLevelsFile.isEmpty() ) return; if ( m_levels->loadLevelsFromGimpLevelsFile( loadLevelsFile ) == false ) { - KMessageBox::error(kapp->activeWindow(), i18n("Cannot load from the Gimp levels text file.")); + KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot load from the Gimp levels text file.")); return; } @@ -772,14 +772,14 @@ void AdjustLevelsTool::slotSaveAsSettings() KURL saveLevelsFile; saveLevelsFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(), - TQString( "*" ), kapp->activeWindow(), + TQString( "*" ), tdeApp->activeWindow(), TQString( i18n("Gimp Levels File to Save")) ); if( saveLevelsFile.isEmpty() ) return; if ( m_levels->saveLevelsToGimpLevelsFile( saveLevelsFile ) == false ) { - KMessageBox::error(kapp->activeWindow(), i18n("Cannot save to the Gimp levels text file.")); + KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot save to the Gimp levels text file.")); return; } |