| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
class QTabWidget; |
| 9 |
class QDialogButtonBox; |
| 10 |
class QTableWidget; |
| 11 |
class QPushButton; |
| 12 |
class ToolTipCheckBox; |
| 13 |
|
| 14 |
class SDLHintsWindow final : public QDialog |
| 15 |
{ |
| 16 |
Q_OBJECT |
| 17 |
public: |
| 18 |
explicit SDLHintsWindow(QWidget* parent); |
| 19 |
|
| 20 |
QSize sizeHint() const override; |
| 21 |
|
| 22 |
private: |
| 23 |
void CreateMainLayout(); |
| 24 |
|
| 25 |
void PopulateTable(); |
| 26 |
void SaveTable(); |
| 27 |
void PopulateChecklist(); |
| 28 |
void AddRow(); |
| 29 |
void RemoveRow(); |
| 30 |
void SelectionChanged(); |
| 31 |
void OnClose(); |
| 32 |
void TabChanged(int new_index); |
| 33 |
void SectionResized(int logical_index, int old_size, int new_size); |
| 34 |
|
| 35 |
bool eventFilter(QObject* obj, QEvent* event) override; |
| 36 |
|
| 37 |
QTabWidget* m_tab_widget; |
| 38 |
QDialogButtonBox* m_button_box; |
| 39 |
QTableWidget* m_hints_table; |
| 40 |
QPushButton* m_rem_row_btn; |
| 41 |
|
| 42 |
ToolTipCheckBox* m_directinput_detection; |
| 43 |
ToolTipCheckBox* m_combine_joy_cons; |
| 44 |
ToolTipCheckBox* m_horizontal_joy_cons; |
| 45 |
ToolTipCheckBox* m_dualsense_player_led; |
| 46 |
|
| 47 |
int m_current_tab_index; |
| 48 |
}; |