citra/src/citra_qt/configuration/configure_dialog.h
Adityarup Laha 5fa25fcf13
citra-qt: Add base support for hotkey reconfiguration + UI (whole of PR citra-emu/citra#3786)
* Adds a new Hotkeys tab in the Controls group.
* Right click to reconfigure.
* See the original PR for more details & screenshots.
2019-01-20 16:12:10 +05:30

39 lines
807 B
C++

// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <QDialog>
class HotkeyRegistry;
namespace Ui {
class ConfigureDialog;
}
class ConfigureDialog : public QDialog {
Q_OBJECT
public:
explicit ConfigureDialog(QWidget* parent, const HotkeyRegistry& registry);
~ConfigureDialog() override;
void UpdateVisibleTabs();
void PopulateSelectionList();
void applyConfiguration(HotkeyRegistry& registry);
private slots:
void onLanguageChanged(const QString& locale);
signals:
void languageChanged(const QString& locale);
void UpdateHotkeys();
private:
void setConfiguration();
void retranslateUi();
std::unique_ptr<Ui::ConfigureDialog> ui;
};