summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/SDLHints/SDLHintsWindow.h
blob: 33103f93140d511fdbd93aae2fa7f69d6e8c0f68 (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
// Copyright 2026 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <QDialog>

class QTabWidget;
class QDialogButtonBox;
class QTableWidget;
class QPushButton;
class ToolTipCheckBox;

class SDLHintsWindow final : public QDialog
{
  Q_OBJECT
public:
  explicit SDLHintsWindow(QWidget* parent);

  QSize sizeHint() const override;

private:
  void CreateMainLayout();

  void PopulateTable();
  void SaveTable();
  void PopulateChecklist();
  void AddRow();
  void RemoveRow();
  void SelectionChanged();
  void OnClose();
  void TabChanged(int new_index);
  void SectionResized(int logical_index, int old_size, int new_size);

  bool eventFilter(QObject* obj, QEvent* event) override;

  QTabWidget* m_tab_widget;
  QDialogButtonBox* m_button_box;
  QTableWidget* m_hints_table;
  QPushButton* m_rem_row_btn;

  ToolTipCheckBox* m_directinput_detection;
  ToolTipCheckBox* m_combine_joy_cons;
  ToolTipCheckBox* m_horizontal_joy_cons;
  ToolTipCheckBox* m_dualsense_player_led;

  int m_current_tab_index;
};