2017-05-20 15:53:17 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-20 15:53:17 +00:00
|
|
|
|
2017-07-26 20:31:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-11-03 21:47:36 +00:00
|
|
|
#include <QDialog>
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QLabel;
|
2017-11-03 21:47:36 +00:00
|
|
|
class QDialogButtonBox;
|
2017-05-20 15:53:17 +00:00
|
|
|
class QVBoxLayout;
|
|
|
|
|
2017-11-05 01:45:37 +00:00
|
|
|
class GCPadWiiUConfigDialog final : public QDialog
|
2017-05-20 15:53:17 +00:00
|
|
|
{
|
2018-05-13 20:16:20 +00:00
|
|
|
Q_OBJECT
|
2017-05-20 15:53:17 +00:00
|
|
|
public:
|
2017-11-05 01:45:37 +00:00
|
|
|
explicit GCPadWiiUConfigDialog(int port, QWidget* parent = nullptr);
|
2018-07-19 06:23:16 +00:00
|
|
|
~GCPadWiiUConfigDialog();
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
private:
|
2017-11-03 21:47:36 +00:00
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
2018-07-19 06:23:16 +00:00
|
|
|
private:
|
|
|
|
void UpdateAdapterStatus();
|
|
|
|
|
2017-11-03 21:47:36 +00:00
|
|
|
int m_port;
|
|
|
|
|
2017-05-20 15:53:17 +00:00
|
|
|
QVBoxLayout* m_layout;
|
|
|
|
QLabel* m_status_label;
|
2017-11-03 21:47:36 +00:00
|
|
|
QDialogButtonBox* m_button_box;
|
2017-05-20 15:53:17 +00:00
|
|
|
|
|
|
|
// Checkboxes
|
|
|
|
QCheckBox* m_rumble;
|
|
|
|
QCheckBox* m_simulate_bongos;
|
|
|
|
};
|