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 Standard Exif metadata 8 * 9 * Copyright (C) 2006-2021 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_EXIF_WIDGET_H 25 #define DIGIKAM_EXIF_WIDGET_H 26 27 // Qt includes 28 29 #include <QString> 30 31 // Local includes 32 33 #include "metadatawidget.h" 34 #include "digikam_export.h" 35 36 namespace Digikam 37 { 38 39 class DIGIKAM_EXPORT ExifWidget : public MetadataWidget 40 { 41 Q_OBJECT 42 43 public: 44 45 explicit ExifWidget(QWidget* const parent, const QString& name = QString()); 46 ~ExifWidget() override; 47 48 bool loadFromURL(const QUrl& url) override; 49 50 QString getTagDescription(const QString& key) override; 51 QString getTagTitle(const QString& key) override; 52 53 QString getMetadataTitle() const override; 54 55 protected Q_SLOTS: 56 57 void slotSaveMetadataToFile() override; 58 59 private: 60 61 bool decodeMetadata() override; 62 void buildView() override; 63 64 private: 65 66 QStringList m_keysFilter; 67 }; 68 69 } // namespace Digikam 70 71 #endif // DIGIKAM_EXIF_WIDGET_H 72