2017-05-20 17:53:17 +02:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2017-07-26 16:31:58 -04:00
|
|
|
#pragma once
|
|
|
|
|
2017-11-03 14:47:36 -07:00
|
|
|
#include <QDialog>
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QLabel;
|
2017-11-03 14:47:36 -07:00
|
|
|
class QDialogButtonBox;
|
2017-05-20 17:53:17 +02:00
|
|
|
class QVBoxLayout;
|
|
|
|
|
2017-11-04 18:45:37 -07:00
|
|
|
class GCPadWiiUConfigDialog final : public QDialog
|
2017-05-20 17:53:17 +02:00
|
|
|
{
|
2018-05-13 16:16:20 -04:00
|
|
|
Q_OBJECT
|
2017-05-20 17:53:17 +02:00
|
|
|
public:
|
2017-11-04 18:45:37 -07:00
|
|
|
explicit GCPadWiiUConfigDialog(int port, QWidget* parent = nullptr);
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
private:
|
2017-11-03 14:47:36 -07:00
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
2017-11-03 14:47:36 -07:00
|
|
|
int m_port;
|
|
|
|
|
2017-05-20 17:53:17 +02:00
|
|
|
QVBoxLayout* m_layout;
|
|
|
|
QLabel* m_status_label;
|
2017-11-03 14:47:36 -07:00
|
|
|
QDialogButtonBox* m_button_box;
|
2017-05-20 17:53:17 +02:00
|
|
|
|
|
|
|
// Checkboxes
|
|
|
|
QCheckBox* m_rumble;
|
|
|
|
QCheckBox* m_simulate_bongos;
|
|
|
|
};
|