File indexing completed on 2025-01-19 03:51:23
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-03-14 0007 * Description : a #include "dconfigdlgwdgWidget to edit IPTC metadata 0008 * 0009 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2011 by Victor Dodon <dodon dot victor at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_IPTC_EDIT_WIDGET_H 0017 #define DIGIKAM_IPTC_EDIT_WIDGET_H 0018 0019 // Local includes 0020 0021 #include "dconfigdlgwidgets.h" 0022 0023 using namespace Digikam; 0024 0025 namespace DigikamGenericMetadataEditPlugin 0026 { 0027 0028 class MetadataEditDialog; 0029 0030 class IPTCEditWidget : public DConfigDlgWdg 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit IPTCEditWidget(MetadataEditDialog* const parent); 0037 ~IPTCEditWidget() override; 0038 0039 bool isModified() const; 0040 void saveSettings(); 0041 void apply(); 0042 0043 Q_SIGNALS: 0044 0045 void signalModified(); 0046 void signalSetReadOnly(bool); 0047 0048 public Q_SLOTS: 0049 0050 void slotModified(); 0051 void slotItemChanged(); 0052 0053 private: 0054 0055 void readSettings(); 0056 0057 int activePageIndex() const; 0058 void showPage(int page); 0059 0060 private: 0061 0062 class Private; 0063 Private* const d; 0064 }; 0065 0066 } // namespace DigikamGenericMetadataEditPlugin 0067 0068 #endif // DIGIKAM_IPTC_EDIT_WIDGET_H