mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-23 09:48:41 +00:00
DolphinQt: Turn the compress/decompress action into a dialog
This commit is contained in:
parent
42f6913bcc
commit
dae2c14f7f
9 changed files with 283 additions and 195 deletions
37
Source/Core/DolphinQt/ConvertDialog.h
Normal file
37
Source/Core/DolphinQt/ConvertDialog.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
// 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 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 Convert();
|
||||
|
||||
private:
|
||||
void AddToFormatComboBox(const QString& name, DiscIO::BlobType format);
|
||||
|
||||
QComboBox* m_format;
|
||||
QList<std::shared_ptr<const UICommon::GameFile>> m_files;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue