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