File indexing completed on 2025-04-27 03:58:34
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2006-02-20 0007 * Description : A widget to display IPTC metadata 0008 * 0009 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_IPTC_WIDGET_H 0016 #define DIGIKAM_IPTC_WIDGET_H 0017 0018 // Local includes 0019 0020 #include "metadatawidget.h" 0021 #include "digikam_export.h" 0022 0023 namespace Digikam 0024 { 0025 0026 class DIGIKAM_EXPORT IptcWidget : public MetadataWidget 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 0032 explicit IptcWidget(QWidget* const parent, 0033 const QString& name = QString()); 0034 ~IptcWidget() override; 0035 0036 bool loadFromURL(const QUrl& url) override; 0037 0038 QString getTagDescription(const QString& key) override; 0039 QString getTagTitle(const QString& key) override; 0040 0041 QString getMetadataTitle() const override; 0042 0043 protected Q_SLOTS: 0044 0045 void slotSaveMetadataToFile() override; 0046 0047 private: 0048 0049 bool decodeMetadata() override; 0050 void buildView() override; 0051 0052 private: 0053 0054 QStringList m_keysFilter; 0055 }; 0056 0057 } // namespace Digikam 0058 0059 #endif // DIGIKAM_IPTC_WIDGET_H