summaryrefslogtreecommitdiff
path: root/src/yuzu/install_dialog.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-12 12:20:56 -0400
committerGitHub <noreply@github.com>2020-07-12 12:20:56 -0400
commitf1aabc21eebd8c88a4b03578e3f04cc416312195 (patch)
tree6afa568d6d1c1202a46b6f8dd603ae6d35b78551 /src/yuzu/install_dialog.h
parent80a0f2a118b858b3ceb4ae0ae09d72353d58c928 (diff)
parent75a01475d174a8dbea7dcf41002cb53abce1d8bb (diff)
Merge pull request #3385 from Morph1984/batch-install
frontend: Add support to batch install files to NAND
Diffstat (limited to 'src/yuzu/install_dialog.h')
-rw-r--r--src/yuzu/install_dialog.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/yuzu/install_dialog.h b/src/yuzu/install_dialog.h
new file mode 100644
index 000000000..e4aba1b06
--- /dev/null
+++ b/src/yuzu/install_dialog.h
@@ -0,0 +1,36 @@
+// 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;
+
+ QStringList GetFiles() const;
+ bool ShouldOverwriteFiles() const;
+ int GetMinimumWidth() const;
+
+private:
+ QListWidget* file_list;
+
+ QVBoxLayout* vbox_layout;
+ QHBoxLayout* hbox_layout;
+
+ QLabel* description;
+ QLabel* update_description;
+ QDialogButtonBox* buttons;
+};