diff options
Diffstat (limited to 'kipi-plugins/metadataedit/exiflens.cpp')
-rw-r--r-- | kipi-plugins/metadataedit/exiflens.cpp | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/kipi-plugins/metadataedit/exiflens.cpp b/kipi-plugins/metadataedit/exiflens.cpp index ecd6a82..4f75217 100644 --- a/kipi-plugins/metadataedit/exiflens.cpp +++ b/kipi-plugins/metadataedit/exiflens.cpp @@ -26,10 +26,10 @@ // QT includes. -#include <qlayout.h> -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qcombobox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqcombobox.h> // KDE includes. @@ -127,14 +127,14 @@ public: apertureValues.append("f/91.0"); } - QStringList apertureValues; + TQStringList apertureValues; - QCheckBox *focalLength35mmCheck; - QCheckBox *focalLengthCheck; - QCheckBox *digitalZoomRatioCheck; + TQCheckBox *focalLength35mmCheck; + TQCheckBox *focalLengthCheck; + TQCheckBox *digitalZoomRatioCheck; - QComboBox *apertureCB; - QComboBox *maxApertureCB; + TQComboBox *apertureCB; + TQComboBox *maxApertureCB; KIntSpinBox *focalLength35mmEdit; @@ -145,59 +145,59 @@ public: MetadataCheckBox *maxApertureCheck; }; -EXIFLens::EXIFLens(QWidget* parent) - : QWidget(parent) +EXIFLens::EXIFLens(TQWidget* tqparent) + : TQWidget(tqparent) { d = new EXIFLensPriv; - QGridLayout* grid = new QGridLayout(parent, 5, 2, KDialog::spacingHint()); + TQGridLayout* grid = new TQGridLayout(tqparent, 5, 2, KDialog::spacingHint()); // -------------------------------------------------------- - d->focalLengthCheck = new QCheckBox(i18n("Focal length (mm):"), parent); - d->focalLengthEdit = new KDoubleSpinBox(1.0, 10000.0, 1.0, 50.0, 1, parent); + d->focalLengthCheck = new TQCheckBox(i18n("Focal length (mm):"), tqparent); + d->focalLengthEdit = new KDoubleSpinBox(1.0, 10000.0, 1.0, 50.0, 1, tqparent); grid->addMultiCellWidget(d->focalLengthCheck, 0, 0, 0, 0); grid->addMultiCellWidget(d->focalLengthEdit, 0, 0, 2, 2); - QWhatsThis::add(d->focalLengthEdit, i18n("<p>Set here the lens focal length in milimeters " + TQWhatsThis::add(d->focalLengthEdit, i18n("<p>Set here the lens focal length in milimeters " "used by camera to take the picture.")); // -------------------------------------------------------- - d->focalLength35mmCheck = new QCheckBox(i18n("Focal length in 35mm film (mm):"), parent); - d->focalLength35mmEdit = new KIntSpinBox(1, 10000, 1, 1, 10, parent); + d->focalLength35mmCheck = new TQCheckBox(i18n("Focal length in 35mm film (mm):"), tqparent); + d->focalLength35mmEdit = new KIntSpinBox(1, 10000, 1, 1, 10, tqparent); grid->addMultiCellWidget(d->focalLength35mmCheck, 1, 1, 0, 0); grid->addMultiCellWidget(d->focalLength35mmEdit, 1, 1, 2, 2); - QWhatsThis::add(d->focalLength35mmEdit, i18n("<p>Set here equivalent focal length assuming " + TQWhatsThis::add(d->focalLength35mmEdit, i18n("<p>Set here equivalent focal length assuming " "a 35mm film camera, in mm. A value of 0 means the focal " "length is unknown.")); // -------------------------------------------------------- - d->digitalZoomRatioCheck = new QCheckBox(i18n("Digital zoom ratio:"), parent); - d->digitalZoomRatioEdit = new KDoubleSpinBox(0.0, 100.0, 0.1, 1.0, 1, parent); + d->digitalZoomRatioCheck = new TQCheckBox(i18n("Digital zoom ratio:"), tqparent); + d->digitalZoomRatioEdit = new KDoubleSpinBox(0.0, 100.0, 0.1, 1.0, 1, tqparent); grid->addMultiCellWidget(d->digitalZoomRatioCheck, 2, 2, 0, 0); grid->addMultiCellWidget(d->digitalZoomRatioEdit, 2, 2, 2, 2); - QWhatsThis::add(d->digitalZoomRatioEdit, i18n("<p>Set here the digital zoom ratio " + TQWhatsThis::add(d->digitalZoomRatioEdit, i18n("<p>Set here the digital zoom ratio " "used by camera to take the picture.")); // -------------------------------------------------------- - d->apertureCheck = new MetadataCheckBox(i18n("Lens aperture (f-number):"), parent); - d->apertureCB = new QComboBox(false, parent); + d->apertureCheck = new MetadataCheckBox(i18n("Lens aperture (f-number):"), tqparent); + d->apertureCB = new TQComboBox(false, tqparent); d->apertureCB->insertStringList(d->apertureValues); grid->addMultiCellWidget(d->apertureCheck, 3, 3, 0, 0); grid->addMultiCellWidget(d->apertureCB, 3, 3, 2, 2); - QWhatsThis::add(d->apertureCB, i18n("<p>Select here the lens aperture used by camera " + TQWhatsThis::add(d->apertureCB, i18n("<p>Select here the lens aperture used by camera " "to take the picture.")); // -------------------------------------------------------- - d->maxApertureCheck = new MetadataCheckBox(i18n("Max. lens aperture (f-number):"), parent); - d->maxApertureCB = new QComboBox(false, parent); + d->maxApertureCheck = new MetadataCheckBox(i18n("Max. lens aperture (f-number):"), tqparent); + d->maxApertureCB = new TQComboBox(false, tqparent); d->maxApertureCB->insertStringList(d->apertureValues); grid->addMultiCellWidget(d->maxApertureCheck, 4, 4, 0, 0); grid->addMultiCellWidget(d->maxApertureCB, 4, 4, 2, 2); - QWhatsThis::add(d->maxApertureCB, i18n("<p>Select here the smallest aperture of the lens used by camera " + TQWhatsThis::add(d->maxApertureCB, i18n("<p>Select here the smallest aperture of the lens used by camera " "to take the picture.")); grid->setColStretch(1, 10); @@ -205,54 +205,54 @@ EXIFLens::EXIFLens(QWidget* parent) // -------------------------------------------------------- - connect(d->focalLengthCheck, SIGNAL(toggled(bool)), - d->focalLengthEdit, SLOT(setEnabled(bool))); + connect(d->focalLengthCheck, TQT_SIGNAL(toggled(bool)), + d->focalLengthEdit, TQT_SLOT(setEnabled(bool))); - connect(d->focalLength35mmCheck, SIGNAL(toggled(bool)), - d->focalLength35mmEdit, SLOT(setEnabled(bool))); + connect(d->focalLength35mmCheck, TQT_SIGNAL(toggled(bool)), + d->focalLength35mmEdit, TQT_SLOT(setEnabled(bool))); - connect(d->digitalZoomRatioCheck, SIGNAL(toggled(bool)), - d->digitalZoomRatioEdit, SLOT(setEnabled(bool))); + connect(d->digitalZoomRatioCheck, TQT_SIGNAL(toggled(bool)), + d->digitalZoomRatioEdit, TQT_SLOT(setEnabled(bool))); - connect(d->apertureCheck, SIGNAL(toggled(bool)), - d->apertureCB, SLOT(setEnabled(bool))); + connect(d->apertureCheck, TQT_SIGNAL(toggled(bool)), + d->apertureCB, TQT_SLOT(setEnabled(bool))); - connect(d->maxApertureCheck, SIGNAL(toggled(bool)), - d->maxApertureCB, SLOT(setEnabled(bool))); + connect(d->maxApertureCheck, TQT_SIGNAL(toggled(bool)), + d->maxApertureCB, TQT_SLOT(setEnabled(bool))); // -------------------------------------------------------- - connect(d->focalLength35mmCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->focalLength35mmCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->focalLengthCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->focalLengthCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->digitalZoomRatioCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->digitalZoomRatioCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->apertureCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->apertureCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->maxApertureCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->maxApertureCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); // -------------------------------------------------------- - connect(d->apertureCB, SIGNAL(activated(int)), - this, SIGNAL(signalModified())); + connect(d->apertureCB, TQT_SIGNAL(activated(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->maxApertureCB, SIGNAL(activated(int)), - this, SIGNAL(signalModified())); + connect(d->maxApertureCB, TQT_SIGNAL(activated(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->focalLength35mmEdit, SIGNAL(valueChanged(int)), - this, SIGNAL(signalModified())); + connect(d->focalLength35mmEdit, TQT_SIGNAL(valueChanged(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->focalLengthEdit, SIGNAL(valueChanged(double)), - this, SIGNAL(signalModified())); + connect(d->focalLengthEdit, TQT_SIGNAL(valueChanged(double)), + this, TQT_SIGNAL(signalModified())); - connect(d->digitalZoomRatioEdit, SIGNAL(valueChanged(double)), - this, SIGNAL(signalModified())); + connect(d->digitalZoomRatioEdit, TQT_SIGNAL(valueChanged(double)), + this, TQT_SIGNAL(signalModified())); } EXIFLens::~EXIFLens() @@ -260,7 +260,7 @@ EXIFLens::~EXIFLens() delete d; } -void EXIFLens::readMetadata(QByteArray& exifData) +void EXIFLens::readMetadata(TQByteArray& exifData) { blockSignals(true); KExiv2Iface::KExiv2 exiv2Iface; @@ -299,7 +299,7 @@ void EXIFLens::readMetadata(QByteArray& exifData) d->apertureCheck->setChecked(false); if (exiv2Iface.getExifTagRational("Exif.Photo.FNumber", num, den)) { - QString fnumber = QString::number((double)(num)/(double)(den), 'f', 1); + TQString fnumber = TQString::number((double)(num)/(double)(den), 'f', 1); int item = -1; for (int i = 0 ; i < d->apertureCB->count() ; i++) @@ -318,7 +318,7 @@ void EXIFLens::readMetadata(QByteArray& exifData) { double aperture = pow(2.0, ((double)(num)/(double)(den))/2.0); - QString fnumber = QString::number(aperture, 'f', 1); + TQString fnumber = TQString::number(aperture, 'f', 1); int item = -1; for (int i = 0 ; i < d->apertureCB->count() ; i++) @@ -343,7 +343,7 @@ void EXIFLens::readMetadata(QByteArray& exifData) { double maxAperture = pow(2.0, ((double)(num)/(double)(den))/2.0); - QString fnumber = QString::number(maxAperture, 'f', 1); + TQString fnumber = TQString::number(maxAperture, 'f', 1); int item = -1; for (int i = 0 ; i < d->apertureCB->count() ; i++) @@ -365,7 +365,7 @@ void EXIFLens::readMetadata(QByteArray& exifData) blockSignals(false); } -void EXIFLens::applyMetadata(QByteArray& exifData) +void EXIFLens::applyMetadata(TQByteArray& exifData) { KExiv2Iface::KExiv2 exiv2Iface; exiv2Iface.setExif(exifData); |