mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-08-04 03:47:57 -04:00
31 lines
717 B
C++
31 lines
717 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QItemSelection>
|
|
|
|
#include "modplatform/ResourceType.h"
|
|
#include "ui/instanceview/InstanceProxyModel.h"
|
|
|
|
namespace Ui {
|
|
class ImportResourceDialog;
|
|
}
|
|
|
|
class ImportResourceDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ImportResourceDialog(QString file_path, ModPlatform::ResourceType type, QWidget* parent = nullptr);
|
|
~ImportResourceDialog() override;
|
|
QString selectedInstanceKey;
|
|
|
|
private:
|
|
Ui::ImportResourceDialog* ui;
|
|
ModPlatform::ResourceType m_resource_type;
|
|
QString m_file_path;
|
|
InstanceProxyModel* proxyModel;
|
|
|
|
private slots:
|
|
void selectionChanged(QItemSelection, QItemSelection);
|
|
void activated(QModelIndex);
|
|
};
|