2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2020-01-05 02:46:03 +00:00
|
|
|
#pragma once
|
2022-07-11 13:03:29 +00:00
|
|
|
|
2020-01-05 02:46:03 +00:00
|
|
|
#include <QtCore/QMap>
|
2022-07-11 13:03:29 +00:00
|
|
|
#include <QtWidgets/QWidget>
|
2020-01-05 02:46:03 +00:00
|
|
|
#include <array>
|
|
|
|
#include <vector>
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
class QScrollArea;
|
2020-01-05 02:46:03 +00:00
|
|
|
class QGridLayout;
|
2022-07-11 13:03:29 +00:00
|
|
|
class QVBoxLayout;
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
class ControllerSettingsWindow;
|
2020-01-05 02:46:03 +00:00
|
|
|
|
|
|
|
class HotkeySettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-11-06 13:01:38 +00:00
|
|
|
HotkeySettingsWidget(QWidget* parent, ControllerSettingsWindow* dialog);
|
2020-01-05 02:46:03 +00:00
|
|
|
~HotkeySettingsWidget();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void createUi();
|
|
|
|
void createButtons();
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
ControllerSettingsWindow* m_dialog;
|
2022-07-11 13:03:29 +00:00
|
|
|
QScrollArea* m_scroll_area = nullptr;
|
|
|
|
QWidget* m_container = nullptr;
|
|
|
|
QVBoxLayout* m_layout = nullptr;
|
2020-01-05 02:46:03 +00:00
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
QMap<QString, QGridLayout*> m_categories;
|
2020-01-05 02:46:03 +00:00
|
|
|
};
|