|
|
@ -101,7 +101,7 @@ IPTCtqStatus::IPTCtqStatus(TQWidget* parent)
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------
|
|
|
|
// --------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
d->statusCheck = new TQCheckBox(i18n("Edit tqStatus:"), parent);
|
|
|
|
d->statusCheck = new TQCheckBox(i18n("Edit Status:"), parent);
|
|
|
|
d->statusEdit = new KLineEdit(parent);
|
|
|
|
d->statusEdit = new KLineEdit(parent);
|
|
|
|
d->statusEdit->setValidator(asciiValidator);
|
|
|
|
d->statusEdit->setValidator(asciiValidator);
|
|
|
|
d->statusEdit->setMaxLength(64);
|
|
|
|
d->statusEdit->setMaxLength(64);
|
|
|
@ -309,7 +309,7 @@ void IPTCtqStatus::readMetadata(TQByteArray& iptcData)
|
|
|
|
|
|
|
|
|
|
|
|
d->statusEdit->clear();
|
|
|
|
d->statusEdit->clear();
|
|
|
|
d->statusCheck->setChecked(false);
|
|
|
|
d->statusCheck->setChecked(false);
|
|
|
|
data = exiv2Iface.getIptcTagString("Iptc.Application2.EdittqStatus", false);
|
|
|
|
data = exiv2Iface.getIptcTagString("Iptc.Application2.EditStatus", false);
|
|
|
|
if (!data.isNull())
|
|
|
|
if (!data.isNull())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
d->statusEdit->setText(data);
|
|
|
|
d->statusEdit->setText(data);
|
|
|
@ -423,9 +423,9 @@ void IPTCtqStatus::applyMetadata(TQByteArray& iptcData)
|
|
|
|
exiv2Iface.setIptc(iptcData);
|
|
|
|
exiv2Iface.setIptc(iptcData);
|
|
|
|
|
|
|
|
|
|
|
|
if (d->statusCheck->isChecked())
|
|
|
|
if (d->statusCheck->isChecked())
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.EdittqStatus", d->statusEdit->text());
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.EditStatus", d->statusEdit->text());
|
|
|
|
else
|
|
|
|
else
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.EdittqStatus");
|
|
|
|
exiv2Iface.removeIptcTag("Iptc.Application2.EditStatus");
|
|
|
|
|
|
|
|
|
|
|
|
if (d->priorityCheck->isChecked())
|
|
|
|
if (d->priorityCheck->isChecked())
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.Urgency", TQString::number(d->priorityCB->currentItem()));
|
|
|
|
exiv2Iface.setIptcTagString("Iptc.Application2.Urgency", TQString::number(d->priorityCB->currentItem()));
|
|
|
|