2018-02-28 18:42:30 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <net/NetJob.h>
|
|
|
|
#include <modplatform/PackHelpers.h>
|
|
|
|
#include "ui_ChooseFtbPackDialog.h"
|
|
|
|
#include <modplatform/PackHelpers.h>
|
2018-03-03 20:22:00 +00:00
|
|
|
#include "FtbListModel.h"
|
2018-02-28 18:42:30 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ChooseFtbPackDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ChooseFtbPackDialog : public QDialog {
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ChooseFtbPackDialog *ui;
|
|
|
|
FtbModpack selected;
|
|
|
|
QString selectedVersion;
|
2018-03-03 20:22:00 +00:00
|
|
|
FtbListModel* listModel;
|
|
|
|
FtbFilterModel* filterModel;
|
2018-02-28 18:42:30 +00:00
|
|
|
|
|
|
|
private slots:
|
2018-03-03 20:22:00 +00:00
|
|
|
void onSortingSelectionChanged(QString data);
|
2018-02-28 18:42:30 +00:00
|
|
|
void onVersionSelectionItemChanged(QString data);
|
2018-03-03 20:22:00 +00:00
|
|
|
void onPackSelectionChanged(QModelIndex first, QModelIndex second);
|
2018-02-28 18:42:30 +00:00
|
|
|
public:
|
|
|
|
ChooseFtbPackDialog(FtbModpackList packs);
|
|
|
|
~ChooseFtbPackDialog();
|
|
|
|
|
|
|
|
FtbModpack getSelectedModpack();
|
|
|
|
QString getSelectedVersion();
|
|
|
|
};
|