2020-04-04 15:18:15 -06:00
|
|
|
// Copyright 2020 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
#include "DiscIO/Blob.h"
|
|
|
|
|
2020-04-11 05:06:45 -06:00
|
|
|
class QCheckBox;
|
2020-04-04 15:18:15 -06:00
|
|
|
class QComboBox;
|
|
|
|
|
2020-04-17 12:38:33 -06:00
|
|
|
namespace DiscIO
|
|
|
|
{
|
|
|
|
enum class WIACompressionType : u32;
|
|
|
|
}
|
|
|
|
|
2020-04-04 15:18:15 -06:00
|
|
|
namespace UICommon
|
|
|
|
{
|
|
|
|
class GameFile;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConvertDialog final : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConvertDialog(QList<std::shared_ptr<const UICommon::GameFile>> files,
|
|
|
|
QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
private slots:
|
2020-04-10 07:14:03 -06:00
|
|
|
void OnFormatChanged();
|
2020-04-17 12:38:33 -06:00
|
|
|
void OnCompressionChanged();
|
2020-04-04 15:18:15 -06:00
|
|
|
void Convert();
|
|
|
|
|
|
|
|
private:
|
2020-04-10 07:14:03 -06:00
|
|
|
void AddToBlockSizeComboBox(int size);
|
2020-04-17 12:38:33 -06:00
|
|
|
void AddToCompressionComboBox(const QString& name, DiscIO::WIACompressionType type);
|
|
|
|
void AddToCompressionLevelComboBox(int level);
|
2020-04-04 15:18:15 -06:00
|
|
|
|
2020-04-11 05:06:45 -06:00
|
|
|
bool ShowAreYouSureDialog(const QString& text);
|
|
|
|
|
2020-04-04 15:18:15 -06:00
|
|
|
QComboBox* m_format;
|
2020-04-10 07:14:03 -06:00
|
|
|
QComboBox* m_block_size;
|
2020-04-17 12:38:33 -06:00
|
|
|
QComboBox* m_compression;
|
|
|
|
QComboBox* m_compression_level;
|
2020-04-11 05:06:45 -06:00
|
|
|
QCheckBox* m_scrub;
|
2020-04-04 15:18:15 -06:00
|
|
|
QList<std::shared_ptr<const UICommon::GameFile>> m_files;
|
|
|
|
};
|