Debian Codegraph @

Source/Core/DolphinQt/Settings/GeneralPane.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 class ConfigBool;
9 class QCheckBox;
10 class QComboBox;
11 class QLabel;
12 class QPushButton;
13 class QRadioButton;
14 class QSlider;
15 class QVBoxLayout;
16 class ToolTipCheckBox;
17 class ToolTipComboBox;
18 class ToolTipPushButton;
19
20 namespace Core
21 {
22 enum class State;
23 }
24
25 class GeneralPane final : public QWidget
26 {
27 Q_OBJECT
28 public:
29 explicit GeneralPane(QWidget* parent = nullptr);
30
31 private:
32 void CreateLayout();
33 void ConnectLayout();
34 void CreateBasic();
35 void CreateAutoUpdate();
36 void CreateFallbackRegion();
37 void AddDescriptions();
38
39 void LoadConfig();
40 void OnSaveConfig();
41 void OnEmulationStateChanged(Core::State state);
42 void UpdateDescriptionsUsingHardcoreStatus();
43
44 // Widgets
45 QVBoxLayout* m_main_layout;
46 ToolTipComboBox* m_combobox_speedlimit;
47 ToolTipComboBox* m_combobox_update_track;
48 ToolTipComboBox* m_combobox_fallback_region;
49 ConfigBool* m_checkbox_dualcore;
50 ConfigBool* m_checkbox_cheats;
51 ConfigBool* m_checkbox_load_games_into_memory;
52 ConfigBool* m_checkbox_override_region_settings;
53 ConfigBool* m_checkbox_auto_disc_change;
54 #ifdef USE_DISCORD_PRESENCE
55 ToolTipCheckBox* m_checkbox_discord_presence;
56 #endif
57
58 // Analytics related
59 #if defined(USE_ANALYTICS) && USE_ANALYTICS
60 void CreateAnalytics();
61 void GenerateNewIdentity();
62
63 ToolTipPushButton* m_button_generate_new_identity;
64 ToolTipCheckBox* m_checkbox_enable_analytics;
65 #endif
66 };