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