diff options
Diffstat (limited to 'kipi-plugins/metadataedit/exiflight.cpp')
-rw-r--r-- | kipi-plugins/metadataedit/exiflight.cpp | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/kipi-plugins/metadataedit/exiflight.cpp b/kipi-plugins/metadataedit/exiflight.cpp index e0a6d06..8812a90 100644 --- a/kipi-plugins/metadataedit/exiflight.cpp +++ b/kipi-plugins/metadataedit/exiflight.cpp @@ -26,11 +26,11 @@ // QT includes. -#include <qlayout.h> -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qcombobox.h> -#include <qmap.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqcombobox.h> +#include <tqmap.h> // KDE includes. @@ -56,15 +56,15 @@ namespace KIPIMetadataEditPlugin public: FlashMode() {} - FlashMode(int id, const QString& desc) : m_id(id), m_desc(desc) {} + FlashMode(int id, const TQString& desc) : m_id(id), m_desc(desc) {} int id() const { return m_id; } - QString desc() const { return m_desc; } + TQString desc() const { return m_desc; } private: int m_id; - QString m_desc; + TQString m_desc; }; class EXIFLightPriv @@ -106,15 +106,15 @@ public: flashModeMap.insert(21, FlashMode( 0x5f, i18n("Yes, auto, red-eye, return light") )); } - typedef QMap<int, FlashMode> FlashModeMap; + typedef TQMap<int, FlashMode> FlashModeMap; FlashModeMap flashModeMap; - QCheckBox *flashEnergyCheck; + TQCheckBox *flashEnergyCheck; - QComboBox *lightSourceCB; - QComboBox *flashModeCB; - QComboBox *whiteBalanceCB; + TQComboBox *lightSourceCB; + TQComboBox *flashModeCB; + TQComboBox *whiteBalanceCB; KDoubleSpinBox *flashEnergyEdit; @@ -123,17 +123,17 @@ public: MetadataCheckBox *whiteBalanceCheck; }; -EXIFLight::EXIFLight(QWidget* parent) - : QWidget(parent) +EXIFLight::EXIFLight(TQWidget* tqparent) + : TQWidget(tqparent) { d = new EXIFLightPriv; - QGridLayout* grid = new QGridLayout(parent, 4, 3, KDialog::spacingHint()); + TQGridLayout* grid = new TQGridLayout(tqparent, 4, 3, KDialog::spacingHint()); // -------------------------------------------------------- - d->lightSourceCheck = new MetadataCheckBox(i18n("Light source:"), parent); - d->lightSourceCB = new QComboBox(false, parent); + d->lightSourceCheck = new MetadataCheckBox(i18n("Light source:"), tqparent); + d->lightSourceCB = new TQComboBox(false, tqparent); d->lightSourceCB->insertItem(i18n("Unknown"), 0); d->lightSourceCB->insertItem(i18n("Daylight"), 1); d->lightSourceCB->insertItem(i18n("Fluorescent"), 2); @@ -157,13 +157,13 @@ EXIFLight::EXIFLight(QWidget* parent) d->lightSourceCB->insertItem(i18n("Other light source"), 20); grid->addMultiCellWidget(d->lightSourceCheck, 0, 0, 0, 0); grid->addMultiCellWidget(d->lightSourceCB, 0, 0, 2, 3); - QWhatsThis::add(d->lightSourceCB, i18n("<p>Select here the kind of light source used " + TQWhatsThis::add(d->lightSourceCB, i18n("<p>Select here the kind of light source used " "to take the picture.")); // -------------------------------------------------------- - d->flashModeCheck = new MetadataCheckBox(i18n("Flash mode:"), parent); - d->flashModeCB = new QComboBox(false, parent); + d->flashModeCheck = new MetadataCheckBox(i18n("Flash mode:"), tqparent); + d->flashModeCB = new TQComboBox(false, tqparent); for (EXIFLightPriv::FlashModeMap::Iterator it = d->flashModeMap.begin(); it != d->flashModeMap.end(); ++it ) @@ -171,16 +171,16 @@ EXIFLight::EXIFLight(QWidget* parent) grid->addMultiCellWidget(d->flashModeCheck, 1, 1, 0, 0); grid->addMultiCellWidget(d->flashModeCB, 1, 1, 2, 3); - QWhatsThis::add(d->flashModeCB, i18n("<p>Select here the flash program mode used by camera " + TQWhatsThis::add(d->flashModeCB, i18n("<p>Select here the flash program mode used by camera " "to take the picture.")); // -------------------------------------------------------- - d->flashEnergyCheck = new QCheckBox(i18n("Flash energy (BCPS):"), parent); - d->flashEnergyEdit = new KDoubleSpinBox(1.0, 10000.0, 1.0, 1.0, 1, parent); + d->flashEnergyCheck = new TQCheckBox(i18n("Flash energy (BCPS):"), tqparent); + d->flashEnergyEdit = new KDoubleSpinBox(1.0, 10000.0, 1.0, 1.0, 1, tqparent); grid->addMultiCellWidget(d->flashEnergyCheck, 2, 2, 0, 0); grid->addMultiCellWidget(d->flashEnergyEdit, 2, 2, 2, 2); - QWhatsThis::add(d->flashEnergyEdit, i18n("<p>Set here the flash energy used to take the picture " + TQWhatsThis::add(d->flashEnergyEdit, i18n("<p>Set here the flash energy used to take the picture " "in BCPS unit. Beam Candle Power Seconds is the measure " "of effective intensity of a light source when it is " "focused into a beam by a reflector or lens. This value " @@ -188,13 +188,13 @@ EXIFLight::EXIFLight(QWidget* parent) // -------------------------------------------------------- - d->whiteBalanceCheck = new MetadataCheckBox(i18n("White balance:"), parent); - d->whiteBalanceCB = new QComboBox(false, parent); + d->whiteBalanceCheck = new MetadataCheckBox(i18n("White balance:"), tqparent); + d->whiteBalanceCB = new TQComboBox(false, tqparent); d->whiteBalanceCB->insertItem(i18n("Auto"), 0); d->whiteBalanceCB->insertItem(i18n("Manual"), 1); grid->addMultiCellWidget(d->whiteBalanceCheck, 3, 3, 0, 0); grid->addMultiCellWidget(d->whiteBalanceCB, 3, 3, 2, 2); - QWhatsThis::add(d->whiteBalanceCB, i18n("<p>Select here the white balance mode set by camera when " + TQWhatsThis::add(d->whiteBalanceCB, i18n("<p>Select here the white balance mode set by camera when " "the picture have been shot.")); @@ -203,45 +203,45 @@ EXIFLight::EXIFLight(QWidget* parent) // -------------------------------------------------------- - connect(d->lightSourceCheck, SIGNAL(toggled(bool)), - d->lightSourceCB, SLOT(setEnabled(bool))); + connect(d->lightSourceCheck, TQT_SIGNAL(toggled(bool)), + d->lightSourceCB, TQT_SLOT(setEnabled(bool))); - connect(d->flashModeCheck, SIGNAL(toggled(bool)), - d->flashModeCB, SLOT(setEnabled(bool))); + connect(d->flashModeCheck, TQT_SIGNAL(toggled(bool)), + d->flashModeCB, TQT_SLOT(setEnabled(bool))); - connect(d->flashEnergyCheck, SIGNAL(toggled(bool)), - d->flashEnergyEdit, SLOT(setEnabled(bool))); + connect(d->flashEnergyCheck, TQT_SIGNAL(toggled(bool)), + d->flashEnergyEdit, TQT_SLOT(setEnabled(bool))); - connect(d->whiteBalanceCheck, SIGNAL(toggled(bool)), - d->whiteBalanceCB, SLOT(setEnabled(bool))); + connect(d->whiteBalanceCheck, TQT_SIGNAL(toggled(bool)), + d->whiteBalanceCB, TQT_SLOT(setEnabled(bool))); // -------------------------------------------------------- - connect(d->flashEnergyCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->flashEnergyCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->lightSourceCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->lightSourceCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->flashModeCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->flashModeCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); - connect(d->whiteBalanceCheck, SIGNAL(toggled(bool)), - this, SIGNAL(signalModified())); + connect(d->whiteBalanceCheck, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(signalModified())); // -------------------------------------------------------- - connect(d->lightSourceCB, SIGNAL(activated(int)), - this, SIGNAL(signalModified())); + connect(d->lightSourceCB, TQT_SIGNAL(activated(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->flashModeCB, SIGNAL(activated(int)), - this, SIGNAL(signalModified())); + connect(d->flashModeCB, TQT_SIGNAL(activated(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->whiteBalanceCB, SIGNAL(activated(int)), - this, SIGNAL(signalModified())); + connect(d->whiteBalanceCB, TQT_SIGNAL(activated(int)), + this, TQT_SIGNAL(signalModified())); - connect(d->flashEnergyEdit, SIGNAL(valueChanged(double)), - this, SIGNAL(signalModified())); + connect(d->flashEnergyEdit, TQT_SIGNAL(valueChanged(double)), + this, TQT_SIGNAL(signalModified())); } EXIFLight::~EXIFLight() @@ -249,7 +249,7 @@ EXIFLight::~EXIFLight() delete d; } -void EXIFLight::readMetadata(QByteArray& exifData) +void EXIFLight::readMetadata(TQByteArray& exifData) { blockSignals(true); KExiv2Iface::KExiv2 exiv2Iface; @@ -326,7 +326,7 @@ void EXIFLight::readMetadata(QByteArray& exifData) blockSignals(false); } -void EXIFLight::applyMetadata(QByteArray& exifData) +void EXIFLight::applyMetadata(TQByteArray& exifData) { KExiv2Iface::KExiv2 exiv2Iface; exiv2Iface.setExif(exifData); |