mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
44 lines
809 B
C++
44 lines
809 B
C++
// Copyright 2021 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
#include <array>
|
|
|
|
class QComboBox;
|
|
class QHBoxLayout;
|
|
class QGridLayout;
|
|
class QGroupBox;
|
|
class QPushButton;
|
|
|
|
namespace Core
|
|
{
|
|
enum class State;
|
|
}
|
|
|
|
class GamecubeControllersWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit GamecubeControllersWidget(QWidget* parent);
|
|
|
|
private:
|
|
void LoadSettings(Core::State state);
|
|
void SaveSettings();
|
|
|
|
void OnGCTypeChanged(size_t index);
|
|
void OnGCPadConfigure(size_t index);
|
|
|
|
void CreateLayout();
|
|
void ConnectWidgets();
|
|
|
|
// Gamecube
|
|
QGroupBox* m_gc_box;
|
|
QGridLayout* m_gc_layout;
|
|
std::array<QComboBox*, 4> m_gc_controller_boxes;
|
|
std::array<QPushButton*, 4> m_gc_buttons;
|
|
std::array<QHBoxLayout*, 4> m_gc_groups;
|
|
};
|