digiKam
metadataedit.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 : 2011-03-14
7  * Description : a dialog to edit EXIF,IPTC and XMP metadata
8  *
9  * Copyright (C) 2011 by Victor Dodon <dodon dot victor at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) 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_EDIT_H
25 #define DIGIKAM_META_DATA_EDIT_H
26 
27 // Qt includes
28 
29 #include <QCloseEvent>
30 #include <QUrl>
31 
32 // Local includes
33 
34 #include "dplugindialog.h"
35 #include "dinfointerface.h"
36 
37 using namespace Digikam;
38 
40 {
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit MetadataEditDialog(QWidget* const parent, DInfoInterface* const iface);
49  ~MetadataEditDialog() override;
50 
51  QList<QUrl>::iterator currentItem() const;
52  QString currentItemTitleHeader(const QString& title) const;
53 
54 Q_SIGNALS:
55 
56  void signalMetadataChangedForUrl(const QUrl&);
57 
58 public Q_SLOTS:
59 
60  void slotModified();
61 
62 private Q_SLOTS:
63 
64  void slotOk();
65  void slotClose();
66  void slotItemChanged();
67  void slotApply();
68  void slotNext();
69  void slotPrevious();
70  void slotSetReadOnly(bool);
71 
72 protected:
73 
74  void closeEvent(QCloseEvent*) override;
75  bool eventFilter(QObject*, QEvent*) override;
76 
77 private:
78 
79  void saveSettings();
80  void readSettings();
81  void updatePreview();
82 
83 private:
84 
85  class Private;
86  Private* const d;
87 };
88 
89 } // namespace DigikamGenericMetadataEditPlugin
90 
91 #endif // DIGIKAM_META_DATA_EDIT_H
Definition: dinfointerface.h:56
Definition: dplugindialog.h:42
Definition: piwigotalker.h:48
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43