2022-03-13 14:50:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ReviewMessageBox;
|
|
|
|
}
|
|
|
|
|
2022-04-22 17:20:31 +01:00
|
|
|
class ReviewMessageBox : public QDialog {
|
2022-03-13 14:50:18 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
static auto create(QWidget* parent, QString&& title, QString&& icon = "") -> ReviewMessageBox*;
|
|
|
|
|
2023-01-08 15:33:10 +00:00
|
|
|
using ResourceInformation = struct res_info {
|
2023-04-21 18:37:17 +01:00
|
|
|
QString name;
|
|
|
|
QString filename;
|
|
|
|
QString custom_file_path{};
|
|
|
|
QString provider;
|
2022-04-22 17:20:31 +01:00
|
|
|
};
|
|
|
|
|
2022-11-25 12:23:46 +00:00
|
|
|
void appendResource(ResourceInformation&& info);
|
|
|
|
auto deselectedResources() -> QStringList;
|
2022-03-13 14:50:18 +00:00
|
|
|
|
2023-01-08 15:28:55 +00:00
|
|
|
void retranslateUi(QString resources_name);
|
|
|
|
|
2022-11-25 12:23:46 +00:00
|
|
|
~ReviewMessageBox() override;
|
2022-03-13 14:50:18 +00:00
|
|
|
|
2022-04-22 17:20:31 +01:00
|
|
|
protected:
|
2022-03-13 14:50:18 +00:00
|
|
|
ReviewMessageBox(QWidget* parent, const QString& title, const QString& icon);
|
|
|
|
|
|
|
|
Ui::ReviewMessageBox* ui;
|
|
|
|
};
|