digiKam
iptcwidget.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-02-20
7  * Description : A widget to display IPTC metadata
8  *
9  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IPTC_WIDGET_H
25 #define DIGIKAM_IPTC_WIDGET_H
26 
27 // Local includes
28 
29 #include "metadatawidget.h"
30 #include "digikam_export.h"
31 
32 namespace Digikam
33 {
34 
35 class DIGIKAM_EXPORT IptcWidget : public MetadataWidget
36 {
37  Q_OBJECT
38 
39 public:
40 
41  explicit IptcWidget(QWidget* const parent,
42  const QString& name = QString());
43  ~IptcWidget() override;
44 
45  bool loadFromURL(const QUrl& url) override;
46 
47  QString getTagDescription(const QString& key) override;
48  QString getTagTitle(const QString& key) override;
49 
50  QString getMetadataTitle() const override;
51 
52 protected Q_SLOTS:
53 
54  void slotSaveMetadataToFile() override;
55 
56 private:
57 
58  bool decodeMetadata() override;
59  void buildView() override;
60 
61 private:
62 
63  QStringList m_keysFilter;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_IPTC_WIDGET_H
Definition: iptcwidget.h:36
Definition: metadatawidget.h:44
Definition: datefolderview.cpp:43