blob: ce53f81a0aa91131cdc287f61166116ce000c9cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QWidget>
#include "Common/CommonTypes.h"
class ConfigBool;
template <typename T>
class ConfigChoiceMap;
class ConfigChoiceU32;
class ConfigSliderU32;
class ConfigUserPath;
class QLabel;
class QListWidget;
class QPushButton;
class QString;
class QVBoxLayout;
class WiiPane : public QWidget
{
Q_OBJECT
public:
explicit WiiPane(QWidget* parent = nullptr);
private:
void PopulateUSBPassthroughListWidget();
void CreateLayout();
void ConnectLayout();
void CreateMisc();
void CreateSDCard();
void CreateWhitelistedUSBPassthroughDevices();
void CreateWiiRemoteSettings();
void OnEmulationStateChanged(bool running);
void ValidateSelectionState();
void OnUSBWhitelistAddButton();
void OnUSBWhitelistRemoveButton();
void BrowseSDRaw();
void BrowseSDSyncFolder();
// Widgets
QVBoxLayout* m_main_layout;
// Misc Settings
ConfigBool* m_screensaver_checkbox;
ConfigBool* m_pal60_mode_checkbox;
ConfigBool* m_connect_keyboard_checkbox;
ConfigBool* m_wiilink_checkbox;
ConfigChoiceU32* m_system_language_choice;
QLabel* m_system_language_choice_label;
ConfigChoiceMap<bool>* m_aspect_ratio_choice;
QLabel* m_aspect_ratio_choice_label;
ConfigChoiceU32* m_sound_mode_choice;
QLabel* m_sound_mode_choice_label;
// SD Card Settings
ConfigBool* m_sd_card_checkbox;
ConfigBool* m_allow_sd_writes_checkbox;
ConfigBool* m_sync_sd_folder_checkbox;
ConfigChoiceMap<u64>* m_sd_card_size_combo;
ConfigUserPath* m_sd_raw_edit;
ConfigUserPath* m_sd_sync_folder_edit;
QPushButton* m_sd_pack_button;
QPushButton* m_sd_unpack_button;
// Whitelisted USB Passthrough Devices
QListWidget* m_whitelist_usb_list;
QPushButton* m_whitelist_usb_add_button;
QPushButton* m_whitelist_usb_remove_button;
// Wii Remote Settings
QLabel* m_wiimote_sensor_position_label;
ConfigChoiceMap<u32>* m_wiimote_ir_sensor_position;
ConfigSliderU32* m_wiimote_ir_sensitivity;
QLabel* m_wiimote_ir_sensitivity_label;
ConfigSliderU32* m_wiimote_speaker_volume;
QLabel* m_wiimote_speaker_volume_label;
ConfigBool* m_wiimote_motor;
};
|