Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into refactor-instanceview
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
30
launcher/ui/dialogs/ImportResourceDialog.h
Normal file
30
launcher/ui/dialogs/ImportResourceDialog.h
Normal file
@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QItemSelection>
|
||||
|
||||
#include "minecraft/mod/tasks/LocalResourceParse.h"
|
||||
#include "ui/instanceview/InstanceGridProxyModel.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;
|
||||
InstanceGridProxyModel* proxyModel;
|
||||
|
||||
private slots:
|
||||
void selectionChanged(QItemSelection, QItemSelection);
|
||||
void activated(QModelIndex);
|
||||
};
|
Reference in New Issue
Block a user