summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Settings/InterfacePane.h
blob: 1f33e7659d2e7b98739519cf916ef257827c01c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright 2017 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <QWidget>

class ConfigBool;
class ConfigRadioInt;
class ConfigStringChoice;
class QLabel;
class QVBoxLayout;
class ToolTipCheckBox;
class ToolTipComboBox;

namespace Core
{
enum class State;
}

class InterfacePane final : public QWidget
{
  Q_OBJECT
public:
  explicit InterfacePane(QWidget* parent = nullptr);

private:
  void CreateLayout();
  void CreateUI();
  void CreateInGame();
  void AddDescriptions();
  void ConnectLayout();
  void UpdateShowDebuggingCheckbox();
  void LoadUserStyle();
  void OnUserStyleChanged();
  void OnLanguageChanged();

  void OnEmulationStateChanged(Core::State state);

  QVBoxLayout* m_main_layout;
  ConfigStringChoice* m_combobox_language;

  ConfigStringChoice* m_combobox_theme;
  ToolTipComboBox* m_combobox_userstyle;
  QLabel* m_label_userstyle;
  ConfigBool* m_checkbox_top_window;
  ConfigBool* m_checkbox_use_builtin_title_database;
  ToolTipCheckBox* m_checkbox_show_debugging_ui;
  ConfigBool* m_checkbox_focused_hotkeys;
  ConfigBool* m_checkbox_use_covers;
  ConfigBool* m_checkbox_disable_screensaver;
  ConfigBool* m_checkbox_time_tracking;

  ConfigBool* m_checkbox_confirm_on_stop;
  ConfigBool* m_checkbox_use_panic_handlers;
  ConfigBool* m_checkbox_show_active_title;
  ConfigBool* m_checkbox_pause_on_focus_lost;
  ConfigRadioInt* m_radio_cursor_visible_movement;
  ConfigRadioInt* m_radio_cursor_visible_never;
  ConfigRadioInt* m_radio_cursor_visible_always;
  ConfigBool* m_checkbox_lock_mouse;
};