本文整理汇总了C++中DMetadata::getIptc方法的典型用法代码示例。如果您正苦于以下问题:C++ DMetadata::getIptc方法的具体用法?C++ DMetadata::getIptc怎么用?C++ DMetadata::getIptc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DMetadata
的用法示例。
在下文中一共展示了DMetadata::getIptc方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applyMetadata
void IPTCStatus::applyMetadata(QByteArray& iptcData)
{
DMetadata meta;
meta.setIptc(iptcData);
if (d->objectNameCheck->isChecked())
meta.setIptcTagString("Iptc.Application2.ObjectName", d->objectNameEdit->text());
else
meta.removeIptcTag("Iptc.Application2.ObjectName");
if (d->statusCheck->isChecked())
meta.setIptcTagString("Iptc.Application2.EditStatus", d->statusEdit->text());
else
meta.removeIptcTag("Iptc.Application2.EditStatus");
if (d->JobIDCheck->isChecked())
meta.setIptcTagString("Iptc.Application2.FixtureId", d->JobIDEdit->text());
else
meta.removeIptcTag("Iptc.Application2.FixtureId");
if (d->specialInstructionCheck->isChecked())
meta.setIptcTagString("Iptc.Application2.SpecialInstructions", d->specialInstructionEdit->toPlainText());
else
meta.removeIptcTag("Iptc.Application2.SpecialInstructions");
iptcData = meta.getIptc();
}
示例2: applyMetadata
void IPTCSubjects::applyMetadata(QByteArray& iptcData)
{
DMetadata meta;
meta.setIptc(iptcData);
QStringList newSubjects = subjectsList();
if (m_subjectsCheck->isChecked())
meta.setIptcSubjects(meta.getIptcSubjects(), newSubjects);
else
meta.setIptcSubjects(meta.getIptcSubjects(), QStringList());
iptcData = meta.getIptc();
}
示例3: slotItemChanged
void IPTCEditWidget::slotItemChanged()
{
d->page_content->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Content Information<br/>"
"<i>Use this panel to describe the visual content of the image</i></qt>")));
d->page_origin->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Origin Information<br/>"
"<i>Use this panel for formal descriptive information about the image</i></qt>")));
d->page_credits->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Credit Information<br/>"
"<i>Use this panel to record copyright information about the image</i></qt>")));
d->page_subjects->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Subject Information<br/>"
"<i>Use this panel to record subject information about the image</i></qt>")));
d->page_keywords->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Keyword Information<br/>"
"<i>Use this panel to record keywords relevant to the image</i></qt>")));
d->page_categories->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Category Information<br/>"
"<i>Use this panel to record categories relevant to the image</i></qt>")));
d->page_status->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Status Information<br/>"
"<i>Use this panel to record workflow information</i></qt>")));
d->page_properties->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Status Properties<br/>"
"<i>Use this panel to record workflow properties</i></qt>")));
d->page_envelope->setHeader(d->dlg->currentItemTitleHeader(i18n("<qt>Envelope Information<br/>"
"<i>Use this panel to record editorial details</i></qt>")));
DMetadata meta;
meta.load((*d->dlg->currentItem()).path());
d->exifData = meta.getExifEncoded();
d->iptcData = meta.getIptc();
d->contentPage->readMetadata(d->iptcData);
d->originPage->readMetadata(d->iptcData);
d->creditsPage->readMetadata(d->iptcData);
d->subjectsPage->readMetadata(d->iptcData);
d->keywordsPage->readMetadata(d->iptcData);
d->categoriesPage->readMetadata(d->iptcData);
d->statusPage->readMetadata(d->iptcData);
d->propertiesPage->readMetadata(d->iptcData);
d->envelopePage->readMetadata(d->iptcData);
d->isReadOnly = !DMetadata::canWriteIptc((*d->dlg->currentItem()).path());
emit signalSetReadOnly(d->isReadOnly);
d->page_content->setEnabled(!d->isReadOnly);
d->page_origin->setEnabled(!d->isReadOnly);
d->page_credits->setEnabled(!d->isReadOnly);
d->page_subjects->setEnabled(!d->isReadOnly);
d->page_keywords->setEnabled(!d->isReadOnly);
d->page_categories->setEnabled(!d->isReadOnly);
d->page_status->setEnabled(!d->isReadOnly);
d->page_properties->setEnabled(!d->isReadOnly);
d->page_envelope->setEnabled(!d->isReadOnly);
}
示例4: applyMetadata
void IPTCKeywords::applyMetadata(QByteArray& iptcData)
{
DMetadata meta;
meta.setIptc(iptcData);
QStringList newKeywords;
for (int i = 0 ; i < d->keywordsBox->count(); ++i)
{
QListWidgetItem* const item = d->keywordsBox->item(i);
newKeywords.append(item->text());
}
if (d->keywordsCheck->isChecked())
meta.setIptcKeywords(d->oldKeywords, newKeywords);
else
meta.setIptcKeywords(d->oldKeywords, QStringList());
iptcData = meta.getIptc();
}