Debian Codegraph @

Source/Core/DolphinQt/Settings/WiiPane.h

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