Qt: Initial hotkey implementation

This commit is contained in:
Connor McLaughlin
2020-01-05 12:46:03 +10:00
parent 0590f0935c
commit 40e1b7af23
15 changed files with 409 additions and 159 deletions

View File

@@ -0,0 +1,39 @@
#pragma once
#include "core/types.h"
#include <QtWidgets/QTabWidget>
#include <QtCore/QMap>
#include <array>
#include <vector>
class QtHostInterface;
class QGridLayout;
class HotkeySettingsWidget : public QWidget
{
Q_OBJECT
public:
HotkeySettingsWidget(QtHostInterface* host_interface, QWidget* parent = nullptr);
~HotkeySettingsWidget();
private:
enum : u32
{
ROWS_PER_COLUMN = 10
};
void createUi();
void createButtons();
QtHostInterface* m_host_interface;
QTabWidget* m_tab_widget;
struct Category
{
QWidget* container;
QGridLayout* layout;
};
QMap<QString, Category> m_categories;
};