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 : 2007-10-08 0007 * Description : a widget to edit Application2 ObjectAttribute 0008 * Iptc tag. 0009 * 0010 * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_OBJECT_ATTRIBUTES_EDIT_H 0017 #define DIGIKAM_OBJECT_ATTRIBUTES_EDIT_H 0018 0019 // Qt includes 0020 0021 #include <QWidget> 0022 0023 namespace DigikamGenericMetadataEditPlugin 0024 { 0025 0026 class ObjectAttributesEdit : public QWidget 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 0032 explicit ObjectAttributesEdit(QWidget* const parent, int size=-1); 0033 ~ObjectAttributesEdit() override; 0034 0035 void setValid(bool v); 0036 bool isValid() const; 0037 0038 void setValues(const QStringList& values); 0039 bool getValues(QStringList& oldValues, QStringList& newValues); 0040 0041 Q_SIGNALS: 0042 0043 void signalModified(); 0044 0045 private Q_SLOTS: 0046 0047 void slotSelectionChanged(); 0048 void slotAddValue(); 0049 void slotDeleteValue(); 0050 void slotReplaceValue(); 0051 void slotLineEditModified(); 0052 0053 private: 0054 0055 class Private; 0056 Private* const d; 0057 }; 0058 0059 } // namespace DigikamGenericMetadataEditPlugin 0060 0061 #endif // DIGIKAM_OBJECT_ATTRIBUTES_EDIT_H