File indexing completed on 2025-01-19 03:51:21
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2006-10-12 0007 * Description : EXIF caption settings page. 0008 * 0009 * SPDX-FileCopyrightText: 2006-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_EXIF_CAPTION_H 0016 #define DIGIKAM_EXIF_CAPTION_H 0017 0018 // Qt includes 0019 0020 #include <QLabel> 0021 #include <QWidget> 0022 #include <QLineEdit> 0023 0024 // Local includes 0025 0026 #include "dmetadata.h" 0027 #include "metadataeditpage.h" 0028 0029 namespace Digikam 0030 { 0031 class DTextEdit; 0032 } 0033 0034 using namespace Digikam; 0035 0036 namespace DigikamGenericMetadataEditPlugin 0037 { 0038 0039 class EXIFCaption : public MetadataEditPage 0040 { 0041 Q_OBJECT 0042 0043 public: 0044 0045 explicit EXIFCaption(QWidget* const parent); 0046 ~EXIFCaption() override; 0047 0048 void applyMetadata(const DMetadata& meta); 0049 void readMetadata(const DMetadata& meta); 0050 0051 bool syncJFIFCommentIsChecked() const; 0052 bool syncXMPCaptionIsChecked() const; 0053 bool syncIPTCCaptionIsChecked() const; 0054 0055 void setCheckedSyncJFIFComment(bool c); 0056 void setCheckedSyncXMPCaption(bool c); 0057 void setCheckedSyncIPTCCaption(bool c); 0058 0059 QString getEXIFUserComments() const; 0060 0061 Q_SIGNALS: 0062 0063 void signalModified(); 0064 0065 private: 0066 0067 class Private; 0068 Private* const d; 0069 }; 0070 0071 } // namespace DigikamGenericMetadataEditPlugin 0072 0073 #endif // DIGIKAM_EXIF_CAPTION_H