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-04 22:33:19 +00:00
|
|
|
class ConfigStringChoice;
|
2017-05-04 07:47:59 +00:00
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
2018-05-06 16:25:37 +00:00
|
|
|
class QLabel;
|
2021-09-23 03:57:52 +00:00
|
|
|
class QRadioButton;
|
2017-05-04 07:47:59 +00:00
|
|
|
class QVBoxLayout;
|
2023-06-08 01:54:49 +00:00
|
|
|
class ToolTipCheckBox;
|
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();
|
2017-05-04 07:47:59 +00:00
|
|
|
void LoadConfig();
|
|
|
|
void OnSaveConfig();
|
2021-09-23 03:57:52 +00:00
|
|
|
void OnCursorVisibleMovement();
|
|
|
|
void OnCursorVisibleNever();
|
|
|
|
void OnCursorVisibleAlways();
|
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;
|
2018-05-06 16:25:37 +00:00
|
|
|
QComboBox* m_combobox_userstyle;
|
|
|
|
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
|
|
|
|
|
|
|
QCheckBox* m_checkbox_confirm_on_stop;
|
|
|
|
QCheckBox* m_checkbox_use_panic_handlers;
|
|
|
|
QCheckBox* m_checkbox_enable_osd;
|
2017-05-15 14:49:52 +00:00
|
|
|
QCheckBox* m_checkbox_show_active_title;
|
2017-05-04 07:47:59 +00:00
|
|
|
QCheckBox* m_checkbox_pause_on_focus_lost;
|
2021-09-23 03:57:52 +00:00
|
|
|
QRadioButton* m_radio_cursor_visible_movement;
|
|
|
|
QRadioButton* m_radio_cursor_visible_never;
|
|
|
|
QRadioButton* m_radio_cursor_visible_always;
|
2021-05-09 10:28:04 +00:00
|
|
|
QCheckBox* m_checkbox_lock_mouse;
|
2017-05-04 07:47:59 +00:00
|
|
|
};
|