diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-01-16 10:04:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 10:04:09 +0100 |
commit | 1a35fec1341323950eb5cb4ee1d2791b2241db67 (patch) | |
tree | d435ef97651840f92f7b382121064a79ab816450 /launcher/ui/dialogs/ImportResourceDialog.h | |
parent | f1247d2224e2ca81076d52fe53f0ddb0382713fd (diff) | |
parent | f7b0ba88da5895a48e9d5f1adda223a8fb0f4c32 (diff) | |
download | PrismLauncher-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.h | 30 |
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); +}; |