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