dolphin/Source/Core/DolphinQt/Config/ControllersWindow.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.1 KiB
C
Raw Normal View History

2017-05-09 16:49:10 +00:00
// Copyright 2017 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <QDialog>
#include <array>
class CommonControllersWidget;
2017-05-20 15:53:17 +00:00
class MappingWindow;
2017-05-09 16:49:10 +00:00
class QDialogButtonBox;
class QCheckBox;
class QComboBox;
class QHBoxLayout;
class QGridLayout;
2017-05-09 16:49:10 +00:00
class QGroupBox;
class QLabel;
class QPushButton;
class QRadioButton;
class WiimoteControllersWidget;
2017-05-09 16:49:10 +00:00
class ControllersWindow final : public QDialog
{
Q_OBJECT
public:
explicit ControllersWindow(QWidget* parent);
private:
void OnGCTypeChanged(int state);
void SaveSettings();
void OnGCPadConfigure();
void CreateGamecubeLayout();
void CreateMainLayout();
void ConnectWidgets();
void LoadSettings();
// Main
QDialogButtonBox* m_button_box;
// Gamecube
QGroupBox* m_gc_box;
QGridLayout* m_gc_layout;
2017-05-09 16:49:10 +00:00
std::array<QComboBox*, 4> m_gc_controller_boxes;
std::array<QPushButton*, 4> m_gc_buttons;
std::array<QHBoxLayout*, 4> m_gc_groups;
// Wii Remote
WiimoteControllersWidget* m_wiimote_controllers;
2017-05-09 16:49:10 +00:00
// Common
CommonControllersWidget* m_common;
2017-05-09 16:49:10 +00:00
};