2020-04-16 20:27:38 -07:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QHBoxLayout;
|
|
|
|
class QLabel;
|
|
|
|
class QListWidget;
|
|
|
|
class QVBoxLayout;
|
|
|
|
|
|
|
|
class InstallDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit InstallDialog(QWidget* parent, const QStringList& files);
|
|
|
|
~InstallDialog() override;
|
|
|
|
|
2020-07-01 13:15:57 -07:00
|
|
|
QStringList GetFiles() const;
|
2020-04-16 20:27:38 -07:00
|
|
|
bool ShouldOverwriteFiles() const;
|
2020-07-01 13:15:57 -07:00
|
|
|
int GetMinimumWidth() const;
|
2020-04-16 20:27:38 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
QListWidget* file_list;
|
|
|
|
|
|
|
|
QVBoxLayout* vbox_layout;
|
|
|
|
QHBoxLayout* hbox_layout;
|
|
|
|
|
|
|
|
QLabel* description;
|
|
|
|
QCheckBox* overwrite_files;
|
|
|
|
QDialogButtonBox* buttons;
|
2020-07-01 13:15:57 -07:00
|
|
|
};
|