mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
35 lines
736 B
C++
35 lines
736 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <net/NetJob.h>
|
|
#include <modplatform/ftb/PackHelpers.h>
|
|
#include "ui_ChooseFtbPackDialog.h"
|
|
#include "FtbListModel.h"
|
|
|
|
namespace Ui {
|
|
class ChooseFtbPackDialog;
|
|
}
|
|
|
|
class ChooseFtbPackDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
private:
|
|
Ui::ChooseFtbPackDialog *ui;
|
|
FtbModpack selected;
|
|
QString selectedVersion;
|
|
FtbListModel* listModel;
|
|
FtbFilterModel* filterModel;
|
|
|
|
private slots:
|
|
void onSortingSelectionChanged(QString data);
|
|
void onVersionSelectionItemChanged(QString data);
|
|
void onPackSelectionChanged(QModelIndex first, QModelIndex second);
|
|
public:
|
|
ChooseFtbPackDialog(FtbModpackList packs);
|
|
~ChooseFtbPackDialog();
|
|
|
|
FtbModpack getSelectedModpack();
|
|
QString getSelectedVersion();
|
|
};
|