mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 01:00:22 +00:00
GH-4699 Modrinth pack exporter (WIP)
This commit is contained in:
37
launcher/ui/dialogs/ModrinthExportDialog.h
Normal file
37
launcher/ui/dialogs/ModrinthExportDialog.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright 2023 arthomnix
|
||||
*
|
||||
* This source is subject to the Microsoft Public License (MS-PL).
|
||||
* Please see the COPYING.md file for more information.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include "ExportInstanceDialog.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui
|
||||
{
|
||||
class ModrinthExportDialog;
|
||||
}
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class ModrinthExportDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ModrinthExportDialog(InstancePtr instance, QWidget *parent = nullptr);
|
||||
|
||||
~ModrinthExportDialog() override;
|
||||
|
||||
private slots:
|
||||
void on_fileBrowseButton_clicked();
|
||||
void accept() override;
|
||||
void updateDialogState();
|
||||
|
||||
private:
|
||||
Ui::ModrinthExportDialog *ui;
|
||||
InstancePtr m_instance;
|
||||
};
|
Reference in New Issue
Block a user