File indexing completed on 2024-12-22 04:15:06

0001 /*
0002  *  SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net>
0003  *  SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me>
0004  *
0005  *  SPDX-License-Identifier: LGPL-2.1-or-later
0006  */
0007 
0008 #ifndef _KIS_META_DATA_EDITOR_H_
0009 #define _KIS_META_DATA_EDITOR_H_
0010 
0011 #include <QWidget>
0012 
0013 #include <kpagedialog.h>
0014 
0015 #include "ui_dublincore.h"
0016 #include "ui_exif.h"
0017 
0018 namespace KisMetaData
0019 {
0020 class Store;
0021 }
0022 
0023 class WdgDublinCore : public QWidget, public Ui::DublinCore
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     WdgDublinCore(QWidget *parent) : QWidget(parent) {
0029         setupUi(this);
0030     }
0031 };
0032 
0033 class WdgExif : public QWidget, public Ui::Exif
0034 {
0035     Q_OBJECT
0036 
0037 public:
0038     WdgExif(QWidget *parent) : QWidget(parent) {
0039         setupUi(this);
0040     }
0041 };
0042 
0043 
0044 class KisMetaDataEditor : public KPageDialog
0045 {
0046     Q_OBJECT
0047 private:
0048     struct Private;
0049 public:
0050     KisMetaDataEditor(QWidget* parent, KisMetaData::Store* store);
0051     ~KisMetaDataEditor() override;
0052 public Q_SLOTS:
0053     void accept() override;
0054 private:
0055     Private* const d;
0056 };
0057 
0058 #endif