summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/coreplugin/iccprooftool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/coreplugin/iccprooftool.cpp')
-rw-r--r--digikam/imageplugins/coreplugin/iccprooftool.cpp376
1 files changed, 188 insertions, 188 deletions
diff --git a/digikam/imageplugins/coreplugin/iccprooftool.cpp b/digikam/imageplugins/coreplugin/iccprooftool.cpp
index 76fd5067..acdacd8f 100644
--- a/digikam/imageplugins/coreplugin/iccprooftool.cpp
+++ b/digikam/imageplugins/coreplugin/iccprooftool.cpp
@@ -23,27 +23,27 @@
*
* ============================================================ */
-// Qt includes.
-
-#include <qcheckbox.h>
-#include <qcolor.h>
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qframe.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qhbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpoint.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qtextstream.h>
-#include <qtoolbox.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qvbuttongroup.h>
-#include <qwhatsthis.h>
+// TQt includes.
+
+#include <tqcheckbox.h>
+#include <tqcolor.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqframe.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqhbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpoint.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqtextstream.h>
+#include <tqtoolbox.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqvbuttongroup.h>
+#include <tqwhatsthis.h>
// KDE includes.
@@ -96,8 +96,8 @@ using namespace Digikam;
namespace DigikamImagesPluginCore
{
-ICCProofTool::ICCProofTool(QObject* parent)
- : EditorTool(parent)
+ICCProofTool::ICCProofTool(TQObject* tqparent)
+ : EditorTool(tqparent)
{
setName("colormanagement");
setToolName(i18n("Color Management"));
@@ -125,48 +125,48 @@ ICCProofTool::ICCProofTool(QObject* parent)
EditorToolSettings::Ok|
EditorToolSettings::Cancel);
- QGridLayout *gridSettings = new QGridLayout(m_gboxSettings->plainPage(), 3, 2);
+ TQGridLayout *gridSettings = new TQGridLayout(m_gboxSettings->plainPage(), 3, 2);
- QLabel *label1 = new QLabel(i18n("Channel: "), m_gboxSettings->plainPage());
- label1->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
- m_channelCB = new QComboBox(false, m_gboxSettings->plainPage());
+ TQLabel *label1 = new TQLabel(i18n("Channel: "), m_gboxSettings->plainPage());
+ label1->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+ m_channelCB = new TQComboBox(false, m_gboxSettings->plainPage());
m_channelCB->insertItem(i18n("Luminosity"));
m_channelCB->insertItem(i18n("Red"));
m_channelCB->insertItem(i18n("Green"));
m_channelCB->insertItem(i18n("Blue"));
- QWhatsThis::add( m_channelCB, i18n("<p>Select the histogram channel to display here:<p>"
+ TQWhatsThis::add( m_channelCB, i18n("<p>Select the histogram channel to display here:<p>"
"<b>Luminosity</b>: display the image's luminosity values.<p>"
"<b>Red</b>: display the red channel values.<p>"
"<b>Green</b>: display the green channel values.<p>"
"<b>Blue</b>: display the blue channel values.<p>"));
- m_scaleBG = new QHButtonGroup(m_gboxSettings->plainPage());
+ m_scaleBG = new TQHButtonGroup(m_gboxSettings->plainPage());
m_scaleBG->setExclusive(true);
- m_scaleBG->setFrameShape(QFrame::NoFrame);
+ m_scaleBG->setFrameShape(TQFrame::NoFrame);
m_scaleBG->setInsideMargin(0);
- QWhatsThis::add(m_scaleBG, i18n("<p>Select the histogram scale here.<p>"
+ TQWhatsThis::add(m_scaleBG, i18n("<p>Select the histogram scale here.<p>"
"If the image's maximal values are small, you can use the linear scale.<p>"
"Logarithmic scale can be used when the maximal values are big; "
"if it is used, all values (small and large) will be visible on the "
"graph."));
- QPushButton *linHistoButton = new QPushButton(m_scaleBG);
- QToolTip::add(linHistoButton, i18n("<p>Linear"));
+ TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
+ TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
- QString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
- linHistoButton->setPixmap(QPixmap(directory + "histogram-lin.png"));
+ TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
+ linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
- QPushButton *logHistoButton = new QPushButton(m_scaleBG);
- QToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
+ TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
+ TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
- logHistoButton->setPixmap(QPixmap(directory + "histogram-log.png"));
+ logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);
- QHBoxLayout* l1 = new QHBoxLayout();
+ TQHBoxLayout* l1 = new TQHBoxLayout();
l1->addWidget(label1);
l1->addWidget(m_channelCB);
l1->addStretch(10);
@@ -176,56 +176,56 @@ ICCProofTool::ICCProofTool(QObject* parent)
// -------------------------------------------------------------
- QVBox *histoBox = new QVBox(m_gboxSettings->plainPage());
+ TQVBox *histoBox = new TQVBox(m_gboxSettings->plainPage());
m_histogramWidget = new HistogramWidget(256, 140, histoBox, false, true, true);
- QWhatsThis::add( m_histogramWidget, i18n("<p>Here you can see the target preview image histogram "
+ TQWhatsThis::add( m_histogramWidget, i18n("<p>Here you can see the target preview image histogram "
"of the selected image channel. "
"This one is updated after setting changes."));
- QLabel *space = new QLabel(histoBox);
+ TQLabel *space = new TQLabel(histoBox);
space->setFixedHeight(1);
m_hGradient = new ColorGradientWidget( ColorGradientWidget::Horizontal, 10,
histoBox );
- m_hGradient->setColors( QColor( "black" ), QColor( "white" ) );
+ m_hGradient->setColors( TQColor( "black" ), TQColor( "white" ) );
gridSettings->addMultiCellWidget(histoBox, 1, 2, 0, 2);
// -------------------------------------------------------------
- m_toolBoxWidgets = new QToolBox(m_gboxSettings->plainPage());
- QWidget *generalOptions = new QWidget(m_toolBoxWidgets);
- QWidget *inProfiles = new QWidget(m_toolBoxWidgets);
- QWidget *spaceProfiles = new QWidget(m_toolBoxWidgets);
- QWidget *proofProfiles = new QWidget(m_toolBoxWidgets);
- QWidget *lightnessadjust = new QWidget(m_toolBoxWidgets);
+ m_toolBoxWidgets = new TQToolBox(m_gboxSettings->plainPage());
+ TQWidget *generalOptions = new TQWidget(m_toolBoxWidgets);
+ TQWidget *inProfiles = new TQWidget(m_toolBoxWidgets);
+ TQWidget *spaceProfiles = new TQWidget(m_toolBoxWidgets);
+ TQWidget *proofProfiles = new TQWidget(m_toolBoxWidgets);
+ TQWidget *lightnessadjust = new TQWidget(m_toolBoxWidgets);
//---------- "General" Page Setup ----------------------------------
m_toolBoxWidgets->insertItem(GENERALPAGE, generalOptions,
SmallIconSet("misc"), i18n("General Settings"));
- QWhatsThis::add(generalOptions, i18n("<p>Here you can set general parameters.</p>"));
+ TQWhatsThis::add(generalOptions, i18n("<p>Here you can set general parameters.</p>"));
- QGridLayout *zeroPageLayout = new QGridLayout(generalOptions, 5, 1);
+ TQGridLayout *zeroPageLayout = new TQGridLayout(generalOptions, 5, 1);
- m_doSoftProofBox = new QCheckBox(generalOptions);
+ m_doSoftProofBox = new TQCheckBox(generalOptions);
m_doSoftProofBox->setText(i18n("Soft-proofing"));
- QWhatsThis::add(m_doSoftProofBox, i18n("<p>Rendering emulation of the device described "
+ TQWhatsThis::add(m_doSoftProofBox, i18n("<p>Rendering emulation of the device described "
"by the \"Proofing\" profile. Useful to preview the final "
"result without rendering to physical medium.</p>"));
- m_checkGamutBox = new QCheckBox(generalOptions);
+ m_checkGamutBox = new TQCheckBox(generalOptions);
m_checkGamutBox->setText(i18n("Check gamut"));
- QWhatsThis::add(m_checkGamutBox, i18n("<p>You can use this option if you want to show "
+ TQWhatsThis::add(m_checkGamutBox, i18n("<p>You can use this option if you want to show "
"the colors that are outside the printer's gamut<p>"));
- m_embeddProfileBox = new QCheckBox(generalOptions);
+ m_embeddProfileBox = new TQCheckBox(generalOptions);
m_embeddProfileBox->setChecked(true);
m_embeddProfileBox->setText(i18n("Assign profile"));
- QWhatsThis::add(m_embeddProfileBox, i18n("<p>You can use this option to embed "
+ TQWhatsThis::add(m_embeddProfileBox, i18n("<p>You can use this option to embed "
"the selected workspace color profile into the image.</p>"));
- m_BPCBox = new QCheckBox(generalOptions);
+ m_BPCBox = new TQCheckBox(generalOptions);
m_BPCBox->setText(i18n("Use BPC"));
- QWhatsThis::add(m_BPCBox, i18n("<p>The Black Point Compensation (BPC) feature does work in conjunction "
+ TQWhatsThis::add(m_BPCBox, i18n("<p>The Black Point Compensation (BPC) feature does work in conjunction "
"with Relative Colorimetric Intent. Perceptual intent should make no "
"difference, since BPC is always on, and in Absolute Colorimetric "
"Intent it is always turned off.</p>"
@@ -233,14 +233,14 @@ ICCProofTool::ICCProofTool(QObject* parent)
"With BPC the dark tones are optimally mapped (no clipping) from original media "
"to the destination rendering media, e.g. the combination of paper and ink.</p>"));
- QLabel *intent = new QLabel(i18n("Rendering Intent:"), generalOptions);
+ TQLabel *intent = new TQLabel(i18n("Rendering Intent:"), generalOptions);
m_renderingIntentsCB = new RComboBox(generalOptions);
m_renderingIntentsCB->insertItem("Perceptual");
m_renderingIntentsCB->insertItem("Absolute Colorimetric");
m_renderingIntentsCB->insertItem("Relative Colorimetric");
m_renderingIntentsCB->insertItem("Saturation");
m_renderingIntentsCB->setDefaultItem(0);
- QWhatsThis::add( m_renderingIntentsCB, i18n("<ul><li>Perceptual intent causes the full gamut "
+ TQWhatsThis::add( m_renderingIntentsCB, i18n("<ul><li>Perceptual intent causes the full gamut "
"of the image to be compressed or expanded to fill the gamut of the destination media, "
"so that gray balance is preserved but colorimetric accuracy may not be preserved.<br>"
"In other words, if certain colors in an image fall outside of the range of colors that "
@@ -267,13 +267,13 @@ ICCProofTool::ICCProofTool(QObject* parent)
"specific color.</li></ul>"));
KURLLabel *lcmsLogoLabel = new KURLLabel(generalOptions);
- lcmsLogoLabel->setAlignment(AlignTop | AlignRight);
- lcmsLogoLabel->setText(QString());
+ lcmsLogoLabel->tqsetAlignment(AlignTop | AlignRight);
+ lcmsLogoLabel->setText(TQString());
lcmsLogoLabel->setURL("http://www.littlecms.com");
KGlobal::dirs()->addResourceType("logo-lcms", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
- lcmsLogoLabel->setPixmap(QPixmap(directory + "logo-lcms.png"));
- QToolTip::add(lcmsLogoLabel, i18n("Visit Little CMS project website"));
+ lcmsLogoLabel->setPixmap(TQPixmap(directory + "logo-lcms.png"));
+ TQToolTip::add(lcmsLogoLabel, i18n("Visit Little CMS project website"));
zeroPageLayout->addMultiCellWidget(m_doSoftProofBox, 0, 0, 0, 0);
zeroPageLayout->addMultiCellWidget(m_checkGamutBox, 1, 1, 0, 0);
@@ -287,26 +287,26 @@ ICCProofTool::ICCProofTool(QObject* parent)
//---------- "Input" Page Setup ----------------------------------
m_toolBoxWidgets->insertItem(INPUTPAGE, inProfiles, SmallIconSet("camera"), i18n("Input Profile"));
- QWhatsThis::add(inProfiles, i18n("<p>Set here all parameters relevant of Input Color "
+ TQWhatsThis::add(inProfiles, i18n("<p>Set here all parameters relevant of Input Color "
"Profiles.</p>"));
- QGridLayout *firstPageLayout = new QGridLayout(inProfiles, 4, 2);
+ TQGridLayout *firstPageLayout = new TQGridLayout(inProfiles, 4, 2);
- m_inProfileBG = new QButtonGroup(4, Qt::Vertical, inProfiles);
- m_inProfileBG->setFrameStyle(QFrame::NoFrame);
+ m_inProfileBG = new TQButtonGroup(4, Qt::Vertical, inProfiles);
+ m_inProfileBG->setFrameStyle(TQFrame::NoFrame);
m_inProfileBG->setInsideMargin(0);
- m_useEmbeddedProfile = new QRadioButton(m_inProfileBG);
+ m_useEmbeddedProfile = new TQRadioButton(m_inProfileBG);
m_useEmbeddedProfile->setText(i18n("Use embedded profile"));
- m_useSRGBDefaultProfile = new QRadioButton(m_inProfileBG);
+ m_useSRGBDefaultProfile = new TQRadioButton(m_inProfileBG);
m_useSRGBDefaultProfile->setText(i18n("Use builtin sRGB profile"));
m_useSRGBDefaultProfile->setChecked(true);
- m_useInDefaultProfile = new QRadioButton(m_inProfileBG);
+ m_useInDefaultProfile = new TQRadioButton(m_inProfileBG);
m_useInDefaultProfile->setText(i18n("Use default profile"));
- m_useInSelectedProfile = new QRadioButton(m_inProfileBG);
+ m_useInSelectedProfile = new TQRadioButton(m_inProfileBG);
m_useInSelectedProfile->setText(i18n("Use selected profile"));
m_inProfilesPath = new KURLRequester(inProfiles);
@@ -316,12 +316,12 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_iccInPreviewWidget = new ICCPreviewWidget(inProfiles_dialog);
inProfiles_dialog->setPreviewWidget(m_iccInPreviewWidget);
- QPushButton *inProfilesInfo = new QPushButton(i18n("Info..."), inProfiles);
+ TQPushButton *inProfilesInfo = new TQPushButton(i18n("Info..."), inProfiles);
- QGroupBox *pictureInfo = new QGroupBox(2, Qt::Horizontal, i18n("Camera information"), inProfiles);
- new QLabel(i18n("Make:"), pictureInfo);
+ TQGroupBox *pictureInfo = new TQGroupBox(2, Qt::Horizontal, i18n("Camera information"), inProfiles);
+ new TQLabel(i18n("Make:"), pictureInfo);
KSqueezedTextLabel *make = new KSqueezedTextLabel(0, pictureInfo);
- new QLabel(i18n("Model:"), pictureInfo);
+ new TQLabel(i18n("Model:"), pictureInfo);
KSqueezedTextLabel *model = new KSqueezedTextLabel(0, pictureInfo);
make->setText(iface.getPhotographInformations().make);
model->setText(iface.getPhotographInformations().model);
@@ -337,19 +337,19 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_toolBoxWidgets->insertItem(WORKSPACEPAGE, spaceProfiles,
SmallIconSet("tablet"), i18n("Workspace Profile"));
- QWhatsThis::add(spaceProfiles, i18n("<p>Set here all parameters relevant to Color Workspace "
+ TQWhatsThis::add(spaceProfiles, i18n("<p>Set here all parameters relevant to Color Workspace "
"Profiles.</p>"));
- QGridLayout *secondPageLayout = new QGridLayout(spaceProfiles, 3, 2);
+ TQGridLayout *secondPageLayout = new TQGridLayout(spaceProfiles, 3, 2);
- m_spaceProfileBG = new QButtonGroup(2, Qt::Vertical, spaceProfiles);
- m_spaceProfileBG->setFrameStyle(QFrame::NoFrame);
+ m_spaceProfileBG = new TQButtonGroup(2, Qt::Vertical, spaceProfiles);
+ m_spaceProfileBG->setFrameStyle(TQFrame::NoFrame);
m_spaceProfileBG->setInsideMargin(0);
- m_useSpaceDefaultProfile = new QRadioButton(m_spaceProfileBG);
+ m_useSpaceDefaultProfile = new TQRadioButton(m_spaceProfileBG);
m_useSpaceDefaultProfile->setText(i18n("Use default workspace profile"));
- m_useSpaceSelectedProfile = new QRadioButton(m_spaceProfileBG);
+ m_useSpaceSelectedProfile = new TQRadioButton(m_spaceProfileBG);
m_useSpaceSelectedProfile->setText(i18n("Use selected profile"));
m_spaceProfilePath = new KURLRequester(spaceProfiles);
@@ -359,7 +359,7 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_iccSpacePreviewWidget = new ICCPreviewWidget(spaceProfiles_dialog);
spaceProfiles_dialog->setPreviewWidget(m_iccSpacePreviewWidget);
- QPushButton *spaceProfilesInfo = new QPushButton(i18n("Info..."), spaceProfiles);
+ TQPushButton *spaceProfilesInfo = new TQPushButton(i18n("Info..."), spaceProfiles);
secondPageLayout->addMultiCellWidget(m_spaceProfileBG, 0, 1, 0, 0);
secondPageLayout->addMultiCellWidget(spaceProfilesInfo, 0, 0, 2, 2);
@@ -371,19 +371,19 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_toolBoxWidgets->insertItem(PROOFINGPAGE, proofProfiles,
SmallIconSet("printer1"), i18n("Proofing Profile"));
- QWhatsThis::add(proofProfiles, i18n("<p>Set here all parameters relevant to Proofing Color "
+ TQWhatsThis::add(proofProfiles, i18n("<p>Set here all parameters relevant to Proofing Color "
"Profiles.</p>"));
- QGridLayout *thirdPageLayout = new QGridLayout(proofProfiles, 3, 2);
+ TQGridLayout *thirdPageLayout = new TQGridLayout(proofProfiles, 3, 2);
- m_proofProfileBG = new QButtonGroup(2, Qt::Vertical, proofProfiles);
- m_proofProfileBG->setFrameStyle(QFrame::NoFrame);
+ m_proofProfileBG = new TQButtonGroup(2, Qt::Vertical, proofProfiles);
+ m_proofProfileBG->setFrameStyle(TQFrame::NoFrame);
m_proofProfileBG->setInsideMargin(0);
- m_useProofDefaultProfile = new QRadioButton(m_proofProfileBG);
+ m_useProofDefaultProfile = new TQRadioButton(m_proofProfileBG);
m_useProofDefaultProfile->setText(i18n("Use default proof profile"));
- m_useProofSelectedProfile = new QRadioButton(m_proofProfileBG);
+ m_useProofSelectedProfile = new TQRadioButton(m_proofProfileBG);
m_useProofSelectedProfile->setText(i18n("Use selected profile"));
m_proofProfilePath = new KURLRequester(proofProfiles);
@@ -393,7 +393,7 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_iccProofPreviewWidget = new ICCPreviewWidget(proofProfiles_dialog);
proofProfiles_dialog->setPreviewWidget(m_iccProofPreviewWidget);
- QPushButton *proofProfilesInfo = new QPushButton(i18n("Info..."), proofProfiles);
+ TQPushButton *proofProfilesInfo = new TQPushButton(i18n("Info..."), proofProfiles);
thirdPageLayout->addMultiCellWidget(m_proofProfileBG, 0, 1, 0, 0);
thirdPageLayout->addMultiCellWidget(proofProfilesInfo, 0, 0, 2, 2);
@@ -405,36 +405,36 @@ ICCProofTool::ICCProofTool(QObject* parent)
m_toolBoxWidgets->insertItem(LIGHTNESSPAGE, lightnessadjust,
SmallIconSet("blend"), i18n("Lightness Adjustments"));
- QWhatsThis::add(lightnessadjust, i18n("<p>Set here all lightness adjustments to the target image.</p>"));
+ TQWhatsThis::add(lightnessadjust, i18n("<p>Set here all lightness adjustments to the target image.</p>"));
- QGridLayout *fourPageLayout = new QGridLayout( lightnessadjust, 5, 2);
+ TQGridLayout *fourPageLayout = new TQGridLayout( lightnessadjust, 5, 2);
ColorGradientWidget* vGradient = new ColorGradientWidget(ColorGradientWidget::Vertical,
10, lightnessadjust );
- vGradient->setColors(QColor("white"), QColor("black"));
+ vGradient->setColors(TQColor("white"), TQColor("black"));
- QLabel *spacev = new QLabel(lightnessadjust);
+ TQLabel *spacev = new TQLabel(lightnessadjust);
spacev->setFixedWidth(1);
m_curvesWidget = new CurvesWidget(256, 192, m_originalImage->bits(), m_originalImage->width(),
m_originalImage->height(), m_originalImage->sixteenBit(),
lightnessadjust);
- QWhatsThis::add( m_curvesWidget, i18n("<p>This is the curve adjustment of the image luminosity"));
+ TQWhatsThis::add( m_curvesWidget, i18n("<p>This is the curve adjustment of the image luminosity"));
- QLabel *spaceh = new QLabel(lightnessadjust);
+ TQLabel *spaceh = new TQLabel(lightnessadjust);
spaceh->setFixedHeight(1);
ColorGradientWidget *hGradient = new ColorGradientWidget(ColorGradientWidget::Horizontal,
10,
lightnessadjust);
- hGradient->setColors(QColor("black"), QColor("white"));
+ hGradient->setColors(TQColor("black"), TQColor("white"));
m_cInput = new RIntNumInput(lightnessadjust);
m_cInput->input()->setLabel(i18n("Contrast:"), AlignLeft | AlignVCenter);
m_cInput->setRange(-100, 100, 1);
m_cInput->setDefaultValue(0);
- QWhatsThis::add( m_cInput, i18n("<p>Set here the contrast adjustment of the image."));
+ TQWhatsThis::add( m_cInput, i18n("<p>Set here the contrast adjustment of the image."));
fourPageLayout->addMultiCellWidget(vGradient, 0, 0, 0, 0);
fourPageLayout->addMultiCellWidget(spacev, 0, 0, 1, 1);
@@ -455,78 +455,78 @@ ICCProofTool::ICCProofTool(QObject* parent)
// -------------------------------------------------------------
- connect(lcmsLogoLabel, SIGNAL(leftClickedURL(const QString&)),
- this, SLOT(processLCMSURL(const QString&)));
+ connect(lcmsLogoLabel, TQT_SIGNAL(leftClickedURL(const TQString&)),
+ this, TQT_SLOT(processLCMSURL(const TQString&)));
- connect(m_channelCB, SIGNAL(activated(int)),
- this, SLOT(slotChannelChanged(int)));
+ connect(m_channelCB, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotChannelChanged(int)));
- connect(m_scaleBG, SIGNAL(released(int)),
- this, SLOT(slotScaleChanged(int)));
+ connect(m_scaleBG, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotScaleChanged(int)));
- connect(m_curvesWidget, SIGNAL(signalCurvesChanged()),
- this, SLOT(slotTimer()));
+ connect(m_curvesWidget, TQT_SIGNAL(signalCurvesChanged()),
+ this, TQT_SLOT(slotTimer()));
- connect(m_cInput, SIGNAL(valueChanged (int)),
- this, SLOT(slotTimer()));
+ connect(m_cInput, TQT_SIGNAL(valueChanged (int)),
+ this, TQT_SLOT(slotTimer()));
- connect(m_renderingIntentsCB, SIGNAL(activated(int)),
- this, SLOT(slotEffect()));
+ connect(m_renderingIntentsCB, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotEffect()));
//-- Check box options connections -------------------------------------------
- connect(m_doSoftProofBox, SIGNAL(toggled (bool)),
- this, SLOT(slotEffect()));
+ connect(m_doSoftProofBox, TQT_SIGNAL(toggled (bool)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_checkGamutBox, SIGNAL(toggled (bool)),
- this, SLOT(slotEffect()));
+ connect(m_checkGamutBox, TQT_SIGNAL(toggled (bool)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_BPCBox, SIGNAL(toggled (bool)),
- this, SLOT(slotEffect()));
+ connect(m_BPCBox, TQT_SIGNAL(toggled (bool)),
+ this, TQT_SLOT(slotEffect()));
//-- Button Group ICC profile options connections ----------------------------
- connect(m_inProfileBG, SIGNAL(released (int)),
- this, SLOT(slotEffect()));
+ connect(m_inProfileBG, TQT_SIGNAL(released (int)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_spaceProfileBG, SIGNAL(released (int)),
- this, SLOT(slotEffect()));
+ connect(m_spaceProfileBG, TQT_SIGNAL(released (int)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_proofProfileBG, SIGNAL(released (int)),
- this, SLOT(slotEffect()));
+ connect(m_proofProfileBG, TQT_SIGNAL(released (int)),
+ this, TQT_SLOT(slotEffect()));
//-- url requester ICC profile connections -----------------------------------
- connect(m_inProfilesPath, SIGNAL(urlSelected(const QString&)),
- this, SLOT(slotEffect()));
+ connect(m_inProfilesPath, TQT_SIGNAL(urlSelected(const TQString&)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_spaceProfilePath, SIGNAL(urlSelected(const QString&)),
- this, SLOT(slotEffect()));
+ connect(m_spaceProfilePath, TQT_SIGNAL(urlSelected(const TQString&)),
+ this, TQT_SLOT(slotEffect()));
- connect(m_proofProfilePath, SIGNAL(urlSelected(const QString&)),
- this, SLOT(slotEffect()));
+ connect(m_proofProfilePath, TQT_SIGNAL(urlSelected(const TQString&)),
+ this, TQT_SLOT(slotEffect()));
//-- Image preview widget connections ----------------------------
- connect(m_previewWidget, SIGNAL(signalResized()),
- this, SLOT(slotEffect()));
+ connect(m_previewWidget, TQT_SIGNAL(signalResized()),
+ this, TQT_SLOT(slotEffect()));
- connect(m_previewWidget, SIGNAL(spotPositionChangedFromOriginal( const Digikam::DColor &, const QPoint & )),
- this, SLOT(slotSpotColorChanged( const Digikam::DColor & )));
+ connect(m_previewWidget, TQT_SIGNAL(spotPositionChangedFromOriginal( const Digikam::DColor &, const TQPoint & )),
+ this, TQT_SLOT(slotSpotColorChanged( const Digikam::DColor & )));
- connect(m_previewWidget, SIGNAL(spotPositionChangedFromTarget( const Digikam::DColor &, const QPoint & )),
- this, SLOT(slotColorSelectedFromTarget( const Digikam::DColor & )));
+ connect(m_previewWidget, TQT_SIGNAL(spotPositionChangedFromTarget( const Digikam::DColor &, const TQPoint & )),
+ this, TQT_SLOT(slotColorSelectedFromTarget( const Digikam::DColor & )));
//-- ICC profile preview connections -----------------------------
- connect(inProfilesInfo, SIGNAL(clicked()),
- this, SLOT(slotInICCInfo()));
+ connect(inProfilesInfo, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotInICCInfo()));
- connect(spaceProfilesInfo, SIGNAL(clicked()),
- this, SLOT(slotSpaceICCInfo()));
+ connect(spaceProfilesInfo, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotSpaceICCInfo()));
- connect(proofProfilesInfo, SIGNAL(clicked()),
- this, SLOT(slotProofICCInfo()));
+ connect(proofProfilesInfo, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotProofICCInfo()));
}
ICCProofTool::~ICCProofTool()
@@ -537,7 +537,7 @@ ICCProofTool::~ICCProofTool()
void ICCProofTool::readSettings()
{
- QString defaultICCPath = KGlobalSettings::documentPath();
+ TQString defaultICCPath = KGlobalSettings::documentPath();
KConfig* config = kapp->config();
// General settings of digiKam Color Management
@@ -554,13 +554,13 @@ void ICCProofTool::readSettings()
m_spacePath = config->readPathEntry("WorkProfileFile");
m_proofPath = config->readPathEntry("ProofProfileFile");
- if (QFile::exists(config->readPathEntry("DefaultPath")))
+ if (TQFile::exists(config->readPathEntry("DefaultPath")))
{
defaultICCPath = config->readPathEntry("DefaultPath");
}
else
{
- QString message = i18n("The ICC profiles path seems to be invalid. You won't be able to use the \"Default profile\"\
+ 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);
@@ -593,8 +593,8 @@ void ICCProofTool::readSettings()
for (int j = 0 ; j < 17 ; j++)
{
- QPoint disable(-1, -1);
- QPoint p = config->readPointEntry(QString("CurveAjustmentPoint%1").arg(j), &disable);
+ TQPoint disable(-1, -1);
+ TQPoint p = config->readPointEntry(TQString("CurveAjustmentPoint%1").tqarg(j), &disable);
if (m_originalImage->sixteenBit() && p.x() != -1)
{
@@ -635,7 +635,7 @@ void ICCProofTool::writeSettings()
for (int j = 0; j < 17; j++)
{
- QPoint p = m_curvesWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
+ TQPoint p = m_curvesWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
if (m_originalImage->sixteenBit() && p.x() != -1)
{
@@ -643,14 +643,14 @@ void ICCProofTool::writeSettings()
p.setY(p.y() / 255);
}
- config->writeEntry(QString("CurveAjustmentPoint%1").arg(j), p);
+ config->writeEntry(TQString("CurveAjustmentPoint%1").tqarg(j), p);
}
m_previewWidget->writeSettings();
config->sync();
}
-void ICCProofTool::processLCMSURL(const QString& url)
+void ICCProofTool::processLCMSURL(const TQString& url)
{
KApplication::kApplication()->invokeBrowser(url);
}
@@ -671,32 +671,32 @@ void ICCProofTool::slotChannelChanged( int channel )
{
case LuminosityChannel:
m_histogramWidget->m_channelType = HistogramWidget::ValueHistogram;
- m_hGradient->setColors(QColor("black"), QColor("white"));
+ m_hGradient->setColors(TQColor("black"), TQColor("white"));
break;
case RedChannel:
m_histogramWidget->m_channelType = HistogramWidget::RedChannelHistogram;
- m_hGradient->setColors(QColor("black"), QColor("red"));
+ m_hGradient->setColors(TQColor("black"), TQColor("red"));
break;
case GreenChannel:
m_histogramWidget->m_channelType = HistogramWidget::GreenChannelHistogram;
- m_hGradient->setColors(QColor("black"), QColor("green"));
+ m_hGradient->setColors(TQColor("black"), TQColor("green"));
break;
case BlueChannel:
m_histogramWidget->m_channelType = HistogramWidget::BlueChannelHistogram;
- m_hGradient->setColors(QColor("black"), QColor("blue"));
+ m_hGradient->setColors(TQColor("black"), TQColor("blue"));
break;
}
- m_histogramWidget->repaint(false);
+ m_histogramWidget->tqrepaint(false);
}
void ICCProofTool::slotScaleChanged(int scale)
{
m_histogramWidget->m_scaleType = scale;
- m_histogramWidget->repaint(false);
+ m_histogramWidget->tqrepaint(false);
}
void ICCProofTool::slotResetSettings()
@@ -735,9 +735,9 @@ void ICCProofTool::slotEffect()
DImg preview(w, h, sb, a, m_destinationPreviewData);
- QString tmpInPath = QString();
- QString tmpProofPath = QString();
- QString tmpSpacePath = QString();
+ TQString tmpInPath = TQString();
+ TQString tmpProofPath = TQString();
+ TQString tmpSpacePath = TQString();
bool proofCondition = false;
bool spaceCondition = false;
@@ -751,7 +751,7 @@ void ICCProofTool::slotEffect()
else if (useSelectedInProfile())
{
tmpInPath = m_inProfilesPath->url();
- QFileInfo info(tmpInPath);
+ TQFileInfo info(tmpInPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -770,7 +770,7 @@ void ICCProofTool::slotEffect()
else
{
tmpProofPath = m_proofProfilePath->url();
- QFileInfo info(tmpProofPath);
+ TQFileInfo info(tmpProofPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -792,7 +792,7 @@ void ICCProofTool::slotEffect()
else
{
tmpSpacePath = m_spaceProfilePath->url();
- QFileInfo info(tmpSpacePath);
+ TQFileInfo info(tmpSpacePath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -834,7 +834,7 @@ void ICCProofTool::slotEffect()
if ( proofCondition || spaceCondition )
{
kapp->restoreOverrideCursor();
- QString error = i18n("<p>Your settings are not sufficient.</p>"
+ 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>"
@@ -852,7 +852,7 @@ void ICCProofTool::slotEffect()
}
else
{
- QByteArray fakeProfile = QByteArray();
+ TQByteArray fakeProfile = TQByteArray();
transform.apply(preview, fakeProfile, m_renderingIntentsCB->currentItem(), useBPC(),
m_checkGamutBox->isChecked(), useBuiltinProfile());
}
@@ -899,9 +899,9 @@ void ICCProofTool::finalRendering()
DImg img(w, h, sb, a, data);
- QString tmpInPath;
- QString tmpProofPath;
- QString tmpSpacePath;
+ TQString tmpInPath;
+ TQString tmpProofPath;
+ TQString tmpSpacePath;
bool proofCondition;
//-- Input profile parameters ------------------
@@ -913,7 +913,7 @@ void ICCProofTool::finalRendering()
else if (useSelectedInProfile())
{
tmpInPath = m_inProfilesPath->url();
- QFileInfo info(tmpInPath);
+ TQFileInfo info(tmpInPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -932,7 +932,7 @@ void ICCProofTool::finalRendering()
else
{
tmpProofPath = m_proofProfilePath->url();
- QFileInfo info(tmpProofPath);
+ TQFileInfo info(tmpProofPath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -954,7 +954,7 @@ void ICCProofTool::finalRendering()
else
{
tmpSpacePath = m_spaceProfilePath->url();
- QFileInfo info(tmpSpacePath);
+ TQFileInfo info(tmpSpacePath);
if (!info.exists() || !info.isReadable() || !info.isFile())
{
KMessageBox::information(kapp->activeWindow(),
@@ -998,7 +998,7 @@ void ICCProofTool::finalRendering()
}
else
{
- QByteArray fakeProfile = QByteArray();
+ TQByteArray fakeProfile = TQByteArray();
transform.apply(img, fakeProfile, m_renderingIntentsCB->currentItem(), useBPC(),
m_checkGamutBox->isChecked(), useBuiltinProfile());
}
@@ -1008,7 +1008,7 @@ void ICCProofTool::finalRendering()
if (m_embeddProfileBox->isChecked())
{
iface->setEmbeddedICCToOriginalImage(tmpSpacePath);
- DDebug() << k_funcinfo << QFile::encodeName(tmpSpacePath) << endl;
+ DDebug() << k_funcinfo << TQFile::encodeName(tmpSpacePath) << endl;
}
//-- Calculate and apply the curve on image after transformation -------------
@@ -1046,7 +1046,7 @@ void ICCProofTool::slotInICCInfo()
}
else if (useBuiltinProfile())
{
- QString message = i18n("<p>You have selected the \"Default builtin sRGB profile\"</p>");
+ 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);
@@ -1085,7 +1085,7 @@ void ICCProofTool::slotSpaceICCInfo()
}
}
-void ICCProofTool::getICCInfo(const QString& profile)
+void ICCProofTool::getICCInfo(const TQString& profile)
{
if (profile.isEmpty())
{
@@ -1099,7 +1099,7 @@ void ICCProofTool::getICCInfo(const QString& profile)
infoDlg.exec();
}
-void ICCProofTool::getICCInfo(const QByteArray& profile)
+void ICCProofTool::getICCInfo(const TQByteArray& profile)
{
if (profile.isNull())
{
@@ -1109,7 +1109,7 @@ void ICCProofTool::getICCInfo(const QByteArray& profile)
return;
}
- ICCProfileInfoDlg infoDlg(kapp->activeWindow(), QString(), profile);
+ ICCProfileInfoDlg infoDlg(kapp->activeWindow(), TQString(), profile);
infoDlg.exec();
}
@@ -1117,7 +1117,7 @@ void ICCProofTool::slotCMDisabledWarning()
{
if (!m_cmEnabled)
{
- QString message = i18n("<p>You have not enabled Color Management in the digiKam preferences.</p>");
+ 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);
slotToggledWidgets(false);
@@ -1187,22 +1187,22 @@ bool ICCProofTool::useDefaultProofProfile()
void ICCProofTool::slotLoadSettings()
{
KURL loadColorManagementFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
- QString("*"), kapp->activeWindow(),
- QString(i18n("Color Management Settings File to Load")));
+ TQString("*"), kapp->activeWindow(),
+ TQString(i18n("Color Management Settings File to Load")));
if (loadColorManagementFile.isEmpty())
return;
- QFile file(loadColorManagementFile.path());
+ TQFile file(loadColorManagementFile.path());
if (file.open(IO_ReadOnly))
{
- QTextStream stream(&file);
+ TQTextStream stream(&file);
if (stream.readLine() != "# Color Management Configuration File")
{
KMessageBox::error(kapp->activeWindow(),
i18n("\"%1\" is not a Color Management settings text file.")
- .arg(loadColorManagementFile.fileName()));
+ .tqarg(loadColorManagementFile.fileName()));
file.close();
return;
}
@@ -1230,8 +1230,8 @@ void ICCProofTool::slotLoadSettings()
for (int j = 0; j < 17; j++)
{
- QPoint disable(-1, -1);
- QPoint p;
+ TQPoint disable(-1, -1);
+ TQPoint p;
p.setX(stream.readLine().toInt());
p.setY(stream.readLine().toInt());
@@ -1264,16 +1264,16 @@ void ICCProofTool::slotLoadSettings()
void ICCProofTool::slotSaveAsSettings()
{
KURL saveColorManagementFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
- QString( "*" ), kapp->activeWindow(),
- QString(i18n("Color Management Settings File to Save")));
+ TQString( "*" ), kapp->activeWindow(),
+ TQString(i18n("Color Management Settings File to Save")));
if (saveColorManagementFile.isEmpty())
return;
- QFile file(saveColorManagementFile.path());
+ TQFile file(saveColorManagementFile.path());
if (file.open(IO_WriteOnly))
{
- QTextStream stream(&file);
+ TQTextStream stream(&file);
stream << "# Color Management Configuration File\n";
stream << m_renderingIntentsCB->currentItem() << "\n";
stream << m_doSoftProofBox->isChecked() << "\n";
@@ -1290,7 +1290,7 @@ void ICCProofTool::slotSaveAsSettings()
for (int j = 0; j < 17; j++)
{
- QPoint p = m_curvesWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
+ TQPoint p = m_curvesWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
if (m_originalImage->sixteenBit())
{
p.setX(p.x() / 255);