summaryrefslogtreecommitdiffstats
path: root/src/imageplugins/coreplugin/iccprooftool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imageplugins/coreplugin/iccprooftool.cpp')
-rw-r--r--src/imageplugins/coreplugin/iccprooftool.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/imageplugins/coreplugin/iccprooftool.cpp b/src/imageplugins/coreplugin/iccprooftool.cpp
index b74adf9a..d7026949 100644
--- a/src/imageplugins/coreplugin/iccprooftool.cpp
+++ b/src/imageplugins/coreplugin/iccprooftool.cpp
@@ -538,7 +538,7 @@ ICCProofTool::~ICCProofTool()
void ICCProofTool::readSettings()
{
TQString defaultICCPath = TDEGlobalSettings::documentPath();
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
// General settings of digiKam Color Management
config->setGroup("Color Management");
@@ -563,7 +563,7 @@ void ICCProofTool::readSettings()
TQString message = i18n("The ICC profiles path seems to be invalid. You won't be able to use the \"Default profile\"\
options.<p>Please fix this in the digiKam ICC setup.");
slotToggledWidgets( false );
- KMessageBox::information(kapp->activeWindow(), message);
+ KMessageBox::information(tdeApp->activeWindow(), message);
}
}
@@ -615,7 +615,7 @@ void ICCProofTool::readSettings()
void ICCProofTool::writeSettings()
{
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("colormanagement Tool");
config->writeEntry("Settings Tab", m_toolBoxWidgets->currentIndex());
config->writeEntry("Histogram Channel", m_channelCB->currentItem());
@@ -652,7 +652,7 @@ void ICCProofTool::writeSettings()
void ICCProofTool::processLCMSURL(const TQString& url)
{
- TDEApplication::kApplication()->invokeBrowser(url);
+ tdeApp->invokeBrowser(url);
}
void ICCProofTool::slotSpotColorChanged(const DColor &color)
@@ -717,7 +717,7 @@ void ICCProofTool::slotResetSettings()
void ICCProofTool::slotEffect()
{
- kapp->setOverrideCursor(KCursor::waitCursor());
+ tdeApp->setOverrideCursor(KCursor::waitCursor());
m_gboxSettings->enableButton(EditorToolSettings::Ok, true);
m_histogramWidget->stopHistogramComputation();
@@ -754,7 +754,7 @@ void ICCProofTool::slotEffect()
TQFileInfo info(tmpInPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>The selected ICC input profile path seems to be invalid.<p>"
"Please check it."));
return;
@@ -773,7 +773,7 @@ void ICCProofTool::slotEffect()
TQFileInfo info(tmpProofPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>The selected ICC proof profile path seems to be invalid.<p>"
"Please check it."));
return;
@@ -795,7 +795,7 @@ void ICCProofTool::slotEffect()
TQFileInfo info(tmpSpacePath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>Selected ICC workspace profile path seems to be invalid.<p>"
"Please check it."));
return;
@@ -833,14 +833,14 @@ void ICCProofTool::slotEffect()
if ( proofCondition || spaceCondition )
{
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
TQString error = i18n("<p>Your settings are not sufficient.</p>"
"<p>To apply a color transform, you need at least two ICC profiles:</p>"
"<ul><li>An \"Input\" profile.</li>"
"<li>A \"Workspace\" profile.</li></ul>"
"<p>If you want to do a \"soft-proof\" transform, in addition to these profiles "
"you need a \"Proof\" profile.</p>");
- KMessageBox::information(kapp->activeWindow(), error);
+ KMessageBox::information(tdeApp->activeWindow(), error);
m_gboxSettings->enableButton(EditorToolSettings::Ok, false);
}
else
@@ -876,7 +876,7 @@ void ICCProofTool::slotEffect()
memcpy(m_destinationPreviewData, preview2.bits(), preview2.numBytes());
m_histogramWidget->updateData(m_destinationPreviewData, w, h, sb, 0, 0, 0, false);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
}
}
@@ -884,7 +884,7 @@ void ICCProofTool::finalRendering()
{
if (!m_doSoftProofBox->isChecked())
{
- kapp->setOverrideCursor( KCursor::waitCursor() );
+ tdeApp->setOverrideCursor( KCursor::waitCursor() );
ImageIface *iface = m_previewWidget->imageIface();
uchar *data = iface->getOriginalImage();
@@ -916,7 +916,7 @@ void ICCProofTool::finalRendering()
TQFileInfo info(tmpInPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>Selected ICC input profile path seems "
"to be invalid.<p>Please check it."));
return;
@@ -935,7 +935,7 @@ void ICCProofTool::finalRendering()
TQFileInfo info(tmpProofPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>The selected ICC proof profile path seems "
"to be invalid.<p>Please check it."));
return;
@@ -957,7 +957,7 @@ void ICCProofTool::finalRendering()
TQFileInfo info(tmpSpacePath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
- KMessageBox::information(kapp->activeWindow(),
+ KMessageBox::information(tdeApp->activeWindow(),
i18n("<p>Selected ICC workspace profile path seems "
"to be invalid.<p>Please check it."));
return;
@@ -1027,7 +1027,7 @@ void ICCProofTool::finalRendering()
delete [] data;
}
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
}
}
@@ -1049,7 +1049,7 @@ void ICCProofTool::slotInICCInfo()
TQString message = i18n("<p>You have selected the \"Default builtin sRGB profile\"</p>");
message.append(i18n("<p>This profile is built on the fly, so there is no relevant information "
"about it.</p>"));
- KMessageBox::information(kapp->activeWindow(), message);
+ KMessageBox::information(tdeApp->activeWindow(), message);
}
else if (useDefaultInProfile())
{
@@ -1089,13 +1089,13 @@ void ICCProofTool::getICCInfo(const TQString& profile)
{
if (profile.isEmpty())
{
- KMessageBox::error(kapp->activeWindow(),
+ KMessageBox::error(tdeApp->activeWindow(),
i18n("Sorry, there is no selected profile"),
i18n("Profile Error"));
return;
}
- ICCProfileInfoDlg infoDlg(kapp->activeWindow(), profile);
+ ICCProfileInfoDlg infoDlg(tdeApp->activeWindow(), profile);
infoDlg.exec();
}
@@ -1103,13 +1103,13 @@ void ICCProofTool::getICCInfo(const TQByteArray& profile)
{
if (profile.isNull())
{
- KMessageBox::error(kapp->activeWindow(),
+ KMessageBox::error(tdeApp->activeWindow(),
i18n("Sorry, it seems there is no embedded profile"),
i18n("Profile Error"));
return;
}
- ICCProfileInfoDlg infoDlg(kapp->activeWindow(), TQString(), profile);
+ ICCProfileInfoDlg infoDlg(tdeApp->activeWindow(), TQString(), profile);
infoDlg.exec();
}
@@ -1119,7 +1119,7 @@ void ICCProofTool::slotCMDisabledWarning()
{
TQString message = i18n("<p>You have not enabled Color Management in the digiKam preferences.</p>");
message.append(i18n("<p>\"Use of default profile\" options will be disabled now.</p>"));
- KMessageBox::information(kapp->activeWindow(), message);
+ KMessageBox::information(tdeApp->activeWindow(), message);
slotToggledWidgets(false);
}
}
@@ -1187,7 +1187,7 @@ bool ICCProofTool::useDefaultProofProfile()
void ICCProofTool::slotLoadSettings()
{
KURL loadColorManagementFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
- TQString("*"), kapp->activeWindow(),
+ TQString("*"), tdeApp->activeWindow(),
TQString(i18n("Color Management Settings File to Load")));
if (loadColorManagementFile.isEmpty())
return;
@@ -1200,7 +1200,7 @@ void ICCProofTool::slotLoadSettings()
if (stream.readLine() != "# Color Management Configuration File")
{
- KMessageBox::error(kapp->activeWindow(),
+ KMessageBox::error(tdeApp->activeWindow(),
i18n("\"%1\" is not a Color Management settings text file.")
.arg(loadColorManagementFile.fileName()));
file.close();
@@ -1253,7 +1253,7 @@ void ICCProofTool::slotLoadSettings()
slotEffect();
}
else
- KMessageBox::error(kapp->activeWindow(),
+ KMessageBox::error(tdeApp->activeWindow(),
i18n("Cannot load settings from the Color Management text file."));
file.close();
@@ -1264,7 +1264,7 @@ void ICCProofTool::slotLoadSettings()
void ICCProofTool::slotSaveAsSettings()
{
KURL saveColorManagementFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
- TQString( "*" ), kapp->activeWindow(),
+ TQString( "*" ), tdeApp->activeWindow(),
TQString(i18n("Color Management Settings File to Save")));
if (saveColorManagementFile.isEmpty())
return;
@@ -1301,7 +1301,7 @@ void ICCProofTool::slotSaveAsSettings()
}
}
else
- KMessageBox::error(kapp->activeWindow(),
+ KMessageBox::error(tdeApp->activeWindow(),
i18n("Cannot save settings to the Color Management text file."));
file.close();