aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/ImportResourceDialog.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-01-16 10:04:09 +0100
committerGitHub <noreply@github.com>2023-01-16 10:04:09 +0100
commit1a35fec1341323950eb5cb4ee1d2791b2241db67 (patch)
treed435ef97651840f92f7b382121064a79ab816450 /launcher/ui/dialogs/ImportResourceDialog.h
parentf1247d2224e2ca81076d52fe53f0ddb0382713fd (diff)
parentf7b0ba88da5895a48e9d5f1adda223a8fb0f4c32 (diff)
downloadPrismLauncher-1a35fec1341323950eb5cb4ee1d2791b2241db67.tar.gz
PrismLauncher-1a35fec1341323950eb5cb4ee1d2791b2241db67.tar.bz2
PrismLauncher-1a35fec1341323950eb5cb4ee1d2791b2241db67.zip
Merge pull request #696 from Ryex/import-all-the-things
Fixes https://github.com/PrismLauncher/PrismLauncher/issues/581 Fixes https://github.com/PrismLauncher/PrismLauncher/issues/700
Diffstat (limited to 'launcher/ui/dialogs/ImportResourceDialog.h')
-rw-r--r--launcher/ui/dialogs/ImportResourceDialog.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ImportResourceDialog.h b/launcher/ui/dialogs/ImportResourceDialog.h
new file mode 100644
index 00000000..5f2f7a92
--- /dev/null
+++ b/launcher/ui/dialogs/ImportResourceDialog.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <QDialog>
+#include <QItemSelection>
+
+#include "minecraft/mod/tasks/LocalResourceParse.h"
+#include "ui/instanceview/InstanceProxyModel.h"
+
+namespace Ui {
+class ImportResourceDialog;
+}
+
+class ImportResourceDialog : public QDialog {
+ Q_OBJECT
+
+ public:
+ explicit ImportResourceDialog(QString file_path, PackedResourceType type, QWidget* parent = nullptr);
+ ~ImportResourceDialog() override;
+ QString selectedInstanceKey;
+
+ private:
+ Ui::ImportResourceDialog* ui;
+ PackedResourceType m_resource_type;
+ QString m_file_path;
+ InstanceProxyModel* proxyModel;
+
+ private slots:
+ void selectionChanged(QItemSelection, QItemSelection);
+ void activated(QModelIndex);
+};