Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
31 lines
717 B
C++
Executable File
31 lines
717 B
C++
Executable File
#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);
|
|
};
|