| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
class QCheckBox; |
| 9 |
class QLabel; |
| 10 |
class QDialogButtonBox; |
| 11 |
class QVBoxLayout; |
| 12 |
|
| 13 |
class GCPadWiiUConfigDialog final : public QDialog |
| 14 |
{ |
| 15 |
Q_OBJECT |
| 16 |
public: |
| 17 |
explicit GCPadWiiUConfigDialog(int port, QWidget* parent = nullptr); |
| 18 |
|
| 19 |
private: |
| 20 |
void LoadSettings(); |
| 21 |
void SaveSettings(); |
| 22 |
|
| 23 |
void CreateLayout(); |
| 24 |
void ConnectWidgets(); |
| 25 |
|
| 26 |
private: |
| 27 |
void UpdateAdapterStatus(); |
| 28 |
|
| 29 |
int m_port; |
| 30 |
|
| 31 |
QVBoxLayout* m_layout; |
| 32 |
QLabel* m_status_label; |
| 33 |
QLabel* m_poll_rate_label; |
| 34 |
QDialogButtonBox* m_button_box; |
| 35 |
|
| 36 |
|
| 37 |
QCheckBox* m_rumble; |
| 38 |
QCheckBox* m_simulate_bongos; |
| 39 |
}; |