2017-05-04 07:47:59 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-05-04 07:47:59 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2023-11-04 22:00:58 +00:00
|
|
|
class ConfigBool;
|
2023-11-13 23:04:12 +00:00
|
|
|
class ConfigRadioInt;
|
2023-11-04 22:33:19 +00:00
|
|
|
class ConfigStringChoice;
|
2018-05-06 16:25:37 +00:00
|
|
|
class QLabel;
|
2017-05-04 07:47:59 +00:00
|
|
|
class QVBoxLayout;
|
2023-06-08 01:54:49 +00:00
|
|
|
class ToolTipCheckBox;
|
2023-11-13 23:08:09 +00:00
|
|
|
class ToolTipComboBox;
|
2017-05-04 07:47:59 +00:00
|
|
|
|
|
|
|
class InterfacePane final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit InterfacePane(QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateLayout();
|
|
|
|
void CreateUI();
|
|
|
|
void CreateInGame();
|
2023-11-04 22:00:58 +00:00
|
|
|
void AddDescriptions();
|
2017-05-04 07:47:59 +00:00
|
|
|
void ConnectLayout();
|
2023-11-12 00:04:50 +00:00
|
|
|
void UpdateShowDebuggingCheckbox();
|
2023-11-13 23:08:09 +00:00
|
|
|
void LoadUserStyle();
|
|
|
|
void OnUserStyleChanged();
|
2023-11-11 22:02:08 +00:00
|
|
|
void OnLanguageChanged();
|
2017-05-04 07:47:59 +00:00
|
|
|
|
|
|
|
QVBoxLayout* m_main_layout;
|
2023-11-11 22:02:08 +00:00
|
|
|
ConfigStringChoice* m_combobox_language;
|
2017-05-05 10:38:59 +00:00
|
|
|
|
2023-11-04 22:33:19 +00:00
|
|
|
ConfigStringChoice* m_combobox_theme;
|
2023-11-13 23:08:09 +00:00
|
|
|
ToolTipComboBox* m_combobox_userstyle;
|
2018-05-06 16:25:37 +00:00
|
|
|
QLabel* m_label_userstyle;
|
2023-11-05 19:45:56 +00:00
|
|
|
ConfigBool* m_checkbox_top_window;
|
2023-11-04 22:00:58 +00:00
|
|
|
ConfigBool* m_checkbox_use_builtin_title_database;
|
2023-06-08 01:54:49 +00:00
|
|
|
ToolTipCheckBox* m_checkbox_show_debugging_ui;
|
2023-11-12 00:13:55 +00:00
|
|
|
ConfigBool* m_checkbox_focused_hotkeys;
|
2023-11-12 06:55:12 +00:00
|
|
|
ConfigBool* m_checkbox_use_covers;
|
2023-11-12 07:29:16 +00:00
|
|
|
ConfigBool* m_checkbox_disable_screensaver;
|
2017-05-04 07:47:59 +00:00
|
|
|
|
2023-11-12 07:41:39 +00:00
|
|
|
ConfigBool* m_checkbox_confirm_on_stop;
|
2023-11-12 08:03:00 +00:00
|
|
|
ConfigBool* m_checkbox_use_panic_handlers;
|
2023-11-12 08:18:02 +00:00
|
|
|
ConfigBool* m_checkbox_enable_osd;
|
2023-11-12 08:29:52 +00:00
|
|
|
ConfigBool* m_checkbox_show_active_title;
|
2023-11-12 08:38:54 +00:00
|
|
|
ConfigBool* m_checkbox_pause_on_focus_lost;
|
2023-11-13 23:04:12 +00:00
|
|
|
ConfigRadioInt* m_radio_cursor_visible_movement;
|
|
|
|
ConfigRadioInt* m_radio_cursor_visible_never;
|
|
|
|
ConfigRadioInt* m_radio_cursor_visible_always;
|
2023-11-12 09:32:03 +00:00
|
|
|
ConfigBool* m_checkbox_lock_mouse;
|
2017-05-04 07:47:59 +00:00
|
|
|
};
|