File indexing completed on 2025-01-05 03:56:43

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2004-11-17
0007  * Description : a tab to display item metadata information
0008  *
0009  * SPDX-FileCopyrightText: 2004-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_ITEM_PROPERTIES_METADATA_TAB_H
0016 #define DIGIKAM_ITEM_PROPERTIES_METADATA_TAB_H
0017 
0018 // Qt includes
0019 
0020 #include <QWidget>
0021 #include <QTabWidget>
0022 #include <QUrl>
0023 
0024 // Local includes
0025 
0026 #include "digikam_export.h"
0027 #include "dmetadata.h"
0028 
0029 namespace Digikam
0030 {
0031 
0032 class DIGIKAM_EXPORT ItemPropertiesMetadataTab : public QTabWidget
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037 
0038     explicit ItemPropertiesMetadataTab(QWidget* const parent);
0039     ~ItemPropertiesMetadataTab() override;
0040 
0041     void setCurrentURL(const QUrl& url = QUrl());
0042     void setCurrentData(DMetadata* const metadata = nullptr,
0043                         const QUrl& url = QUrl());
0044 
0045     void loadFilters();
0046 
0047     void readSettings(const KConfigGroup& group);
0048     void writeSettings(KConfigGroup& group);
0049 
0050 Q_SIGNALS:
0051 
0052     void signalSetupMetadataFilters(int);
0053     void signalSetupExifTool();
0054 
0055 private Q_SLOTS:
0056 
0057     void slotSetupMetadataFilters();
0058 
0059 private:
0060 
0061     class Private;
0062     Private* const d;
0063 };
0064 
0065 } // namespace Digikam
0066 
0067 #endif // DIGIKAM_ITEM_PROPERTIES_METADATA_TAB_H