2023-08-31 09:09:52 +02:00
|
|
|
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2023-03-27 12:49:53 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QDateEdit>
|
2023-08-31 13:39:00 +02:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QDir>
|
2023-03-27 12:49:53 -04:00
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include <QListWidget>
|
|
|
|
#include <QStringListModel>
|
|
|
|
#include <QTextEdit>
|
|
|
|
|
2023-06-15 13:54:52 -04:00
|
|
|
class ArtDetailWindow : public QDialog {
|
2023-08-31 10:02:32 +02:00
|
|
|
Q_OBJECT
|
2023-03-27 12:49:53 -04:00
|
|
|
public:
|
2023-08-31 13:39:00 +02:00
|
|
|
ArtDetailWindow(const QString &filename, const QDir &assetDirectory, QWidget *parent = nullptr);
|
2023-03-27 12:49:53 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
void loadData(const QString& filename);
|
|
|
|
|
|
|
|
void saveData(const QString& filename);
|
|
|
|
|
|
|
|
QLineEdit *m_titleEdit;
|
|
|
|
QTextEdit *m_altTextEdit;
|
|
|
|
QTextEdit *m_descriptionEdit;
|
|
|
|
QCheckBox *m_knowExactDateBox;
|
|
|
|
QDateEdit *m_dateEdit;
|
|
|
|
QLineEdit *m_newgroundsUrlEdit;
|
|
|
|
QLineEdit *m_pixivUrlEdit;
|
|
|
|
QLineEdit *m_mastodonUrlEdit;
|
|
|
|
QLineEdit *m_programEdit;
|
|
|
|
QCheckBox* m_nsfwBox;
|
|
|
|
|
|
|
|
QStringListModel* m_characterListModel;
|
|
|
|
QStringListModel* m_tagsListModel;
|
|
|
|
};
|