File indexing completed on 2025-02-02 04:11:21

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef DOCUMENTMETADATADIALOG_H
0008 #define DOCUMENTMETADATADIALOG_H
0009 
0010 #include <memory>
0011 #include <QDialog>
0012 #include <QTableWidgetItem>
0013 #include <QAbstractButton>
0014 
0015 #include "model/document.hpp"
0016 
0017 namespace glaxnimate::gui {
0018 
0019 class DocumentMetadataDialog : public QDialog
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     DocumentMetadataDialog(model::Document* document, QWidget* parent = nullptr);
0025     ~DocumentMetadataDialog();
0026 
0027 protected:
0028     void changeEvent ( QEvent* e ) override;
0029 
0030 private Q_SLOTS:
0031     void update_item(QTableWidgetItem*);
0032     void button_clicked(QAbstractButton*);
0033 
0034 private:
0035     class Private;
0036     std::unique_ptr<Private> d;
0037 };
0038 
0039 } // namespace glaxnimate::gui
0040 
0041 #endif // DOCUMENTMETADATADIALOG_H