dolphin/Source/Core/DolphinQt/ConvertDialog.h
JosJuice ec3ea6c1df DolphinQt: Allow converting to same format
Mainly useful for WIA and RVZ, but also has some use for GCZ.
2020-06-17 12:44:16 +02:00

43 lines
780 B
C++

// 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"
class QCheckBox;
class QComboBox;
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:
void OnFormatChanged();
void Convert();
private:
void AddToBlockSizeComboBox(int size);
bool ShowAreYouSureDialog(const QString& text);
QComboBox* m_format;
QComboBox* m_block_size;
QCheckBox* m_scrub;
QList<std::shared_ptr<const UICommon::GameFile>> m_files;
};