digiKam
metadatapanel.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 : 2009-07-17
7  * Description : Metadata tags selector config panel.
8  *
9  * Copyright (C) 2009-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_META_DATA_PANEL_H
25 #define DIGIKAM_META_DATA_PANEL_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 #include <QString>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 class QTabWidget;
37 
38 namespace Digikam
39 {
40 
41 class MetadataSelectorView;
42 
43 class DIGIKAM_EXPORT MetadataPanel : public QObject
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit MetadataPanel(QTabWidget* const tab);
50  ~MetadataPanel() override;
51 
52  void applySettings();
53 
54  QStringList getAllCheckedTags() const;
55  QList<MetadataSelectorView*> viewers() const;
56 
57 public:
58 
59  static QStringList defaultExifFilter();
60  static QStringList defaultMknoteFilter();
61  static QStringList defaultIptcFilter();
62  static QStringList defaultXmpFilter();
63  static QStringList defaultExifToolFilter();
64 
65 private Q_SLOTS:
66 
67  void slotTabChanged(int);
68 
69 private:
70 
71  class Private;
72  Private* const d;
73 };
74 
75 } // namespace Digikam
76 
77 #endif // DIGIKAM_META_DATA_PANEL_H
Definition: metadatapanel.h:44
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43