Files
86Box/src/qt/qt_deviceconfig.hpp

35 lines
705 B
C++
Raw Normal View History

2021-11-25 10:20:56 +01:00
#ifndef QT_DEVICECONFIG_HPP
#define QT_DEVICECONFIG_HPP
#include <QDialog>
#include "qt_settings.hpp"
2021-11-25 10:20:56 +01:00
extern "C" {
struct _device_;
}
namespace Ui {
class DeviceConfig;
}
class Settings;
2022-11-19 08:49:04 -05:00
class DeviceConfig : public QDialog {
2021-11-25 10:20:56 +01:00
Q_OBJECT
public:
explicit DeviceConfig(QWidget *parent = nullptr);
~DeviceConfig() override;
2021-11-25 10:20:56 +01:00
static void ConfigureDevice(const _device_ *device, int instance = 0,
Settings *settings = nullptr);
2022-11-19 08:49:04 -05:00
static QString DeviceName(const _device_ *device, const char *internalName, int bus);
2021-11-25 10:20:56 +01:00
private:
Ui::DeviceConfig *ui;
void ProcessConfig(void *dc, const void *c, bool is_dep);
2021-11-25 10:20:56 +01:00
};
#endif // QT_DEVICECONFIG_HPP