2017-05-09 16:49:10 +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-09 16:49:10 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2021-01-23 18:16:56 +00:00
|
|
|
class CommonControllersWidget;
|
2021-01-23 18:44:21 +00:00
|
|
|
class GamecubeControllersWidget;
|
2017-05-09 16:49:10 +00:00
|
|
|
class QDialogButtonBox;
|
2023-02-23 04:10:23 +00:00
|
|
|
class QShowEvent;
|
2021-01-23 19:05:04 +00:00
|
|
|
class WiimoteControllersWidget;
|
2017-05-09 16:49:10 +00:00
|
|
|
|
|
|
|
class ControllersWindow final : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ControllersWindow(QWidget* parent);
|
|
|
|
|
2023-02-23 04:10:23 +00:00
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
|
2017-05-09 16:49:10 +00:00
|
|
|
private:
|
|
|
|
void CreateMainLayout();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
|
|
|
QDialogButtonBox* m_button_box;
|
2021-01-23 18:44:21 +00:00
|
|
|
GamecubeControllersWidget* m_gamecube_controllers;
|
2021-01-23 19:05:04 +00:00
|
|
|
WiimoteControllersWidget* m_wiimote_controllers;
|
2021-01-23 18:16:56 +00:00
|
|
|
CommonControllersWidget* m_common;
|
2017-05-09 16:49:10 +00:00
|
|
|
};
|