613f2fc447
This adds a checkbox to each mod on the dialog that shows up when confirming the mods to download, so you can deselect some of those if you want to.
30 lines
582 B
C++
30 lines
582 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class ReviewMessageBox;
|
|
}
|
|
|
|
class ReviewMessageBox : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
static auto create(QWidget* parent, QString&& title, QString&& icon = "") -> ReviewMessageBox*;
|
|
|
|
using ModInformation = struct {
|
|
QString name;
|
|
QString filename;
|
|
};
|
|
|
|
void appendMod(ModInformation&& info);
|
|
auto deselectedMods() -> QStringList;
|
|
|
|
~ReviewMessageBox();
|
|
|
|
protected:
|
|
ReviewMessageBox(QWidget* parent, const QString& title, const QString& icon);
|
|
|
|
Ui::ReviewMessageBox* ui;
|
|
};
|