| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <memory> |
| 7 |
|
| 8 |
#include <QDialog> |
| 9 |
#include <QList> |
| 10 |
|
| 11 |
#include "DiscIO/Blob.h" |
| 12 |
|
| 13 |
class QCheckBox; |
| 14 |
class QComboBox; |
| 15 |
|
| 16 |
namespace DiscIO |
| 17 |
{ |
| 18 |
enum class WIARVZCompressionType : u32; |
| 19 |
} |
| 20 |
|
| 21 |
namespace UICommon |
| 22 |
{ |
| 23 |
class GameFile; |
| 24 |
} |
| 25 |
|
| 26 |
class ConvertDialog final : public QDialog |
| 27 |
{ |
| 28 |
Q_OBJECT |
| 29 |
|
| 30 |
public: |
| 31 |
explicit ConvertDialog(QList<std::shared_ptr<const UICommon::GameFile>> files, |
| 32 |
QWidget* parent = nullptr); |
| 33 |
|
| 34 |
private slots: |
| 35 |
void OnFormatChanged(); |
| 36 |
void OnCompressionChanged(); |
| 37 |
void Convert(); |
| 38 |
|
| 39 |
private: |
| 40 |
void AddToBlockSizeComboBox(int size); |
| 41 |
void AddToCompressionComboBox(const QString& name, DiscIO::WIARVZCompressionType type); |
| 42 |
void AddToCompressionLevelComboBox(int level); |
| 43 |
|
| 44 |
bool ShowAreYouSureDialog(const QString& text); |
| 45 |
|
| 46 |
QComboBox* m_format; |
| 47 |
QComboBox* m_block_size; |
| 48 |
QComboBox* m_compression; |
| 49 |
QComboBox* m_compression_level; |
| 50 |
QCheckBox* m_scrub; |
| 51 |
QList<std::shared_ptr<const UICommon::GameFile>> m_files; |
| 52 |
}; |