2017-12-21 18:21:44 -05:00
|
|
|
#pragma once
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QStorageInfo>
|
|
|
|
|
|
|
|
#include "VfsDevice.h"
|
|
|
|
|
2017-12-21 18:21:44 -05:00
|
|
|
namespace Ui
|
|
|
|
{
|
2018-04-30 21:01:23 +01:00
|
|
|
class VFSDiscSelectorDialog;
|
2016-09-06 00:03:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class VFSDiscSelectorDialog : public QDialog
|
|
|
|
{
|
2017-12-21 18:21:44 -05:00
|
|
|
Q_OBJECT
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
public:
|
2019-10-16 20:51:11 -04:00
|
|
|
explicit VFSDiscSelectorDialog(fs::path, CCdrom0Device::BINDINGTYPE, QWidget* parent = nullptr);
|
2017-12-21 18:21:44 -05:00
|
|
|
~VFSDiscSelectorDialog();
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
protected:
|
2017-12-21 18:21:44 -05:00
|
|
|
void accept() Q_DECL_OVERRIDE;
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
private slots:
|
2017-12-21 18:21:44 -05:00
|
|
|
void on_iso_browse_button_clicked();
|
|
|
|
void on_refresh_disc_drive_button_clicked();
|
|
|
|
void on_comboBox_currentIndexChanged(int index);
|
|
|
|
void on_disc_image_radioButton_clicked();
|
|
|
|
void on_cd_device_radioButton_clicked();
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
signals:
|
2017-12-21 18:21:44 -05:00
|
|
|
void onFinish(QString, CCdrom0Device::BINDINGTYPE);
|
2016-09-06 00:03:02 +01:00
|
|
|
|
|
|
|
private:
|
2017-12-21 18:21:44 -05:00
|
|
|
void Refresh_disc_drive();
|
2016-09-06 00:03:02 +01:00
|
|
|
|
2017-12-21 18:21:44 -05:00
|
|
|
Ui::VFSDiscSelectorDialog* ui;
|
2019-10-16 20:51:11 -04:00
|
|
|
fs::path m_path;
|
2018-04-30 21:01:23 +01:00
|
|
|
QList<QStorageInfo> m_discInfo;
|
2017-12-21 18:21:44 -05:00
|
|
|
};
|