digiKam
exifcaption.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-10-12
7  * Description : EXIF caption settings page.
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) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_EXIF_CAPTION_H
24 #define DIGIKAM_EXIF_CAPTION_H
25 
26 // Qt includes
27 
28 #include <QWidget>
29 
30 // Local includes
31 
32 #include "dmetadata.h"
33 
34 using namespace Digikam;
35 
37 {
38 
39 class EXIFCaption : public QWidget
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit EXIFCaption(QWidget* const parent);
46  ~EXIFCaption() override;
47 
48  void applyMetadata(const DMetadata& meta);
49  void readMetadata(const DMetadata& meta);
50 
51  bool syncJFIFCommentIsChecked() const;
52  bool syncXMPCaptionIsChecked() const;
53  bool syncIPTCCaptionIsChecked() const;
54 
55  void setCheckedSyncJFIFComment(bool c);
56  void setCheckedSyncXMPCaption(bool c);
57  void setCheckedSyncIPTCCaption(bool c);
58 
59  QString getEXIFUserComments() const;
60 
61 Q_SIGNALS:
62 
64 
65 private:
66 
67  class Private;
68  Private* const d;
69 };
70 
71 } // namespace DigikamGenericMetadataEditPlugin
72 
73 #endif // DIGIKAM_EXIF_CAPTION_H
Definition: dmetadata.h:55
Definition: altlangstringedit.cpp:39
Definition: datefolderview.cpp:43