2018-07-28 18:32:16 +02:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
2020-01-24 00:15:51 +01:00
|
|
|
class ConfigureUi;
|
2018-07-28 18:32:16 +02:00
|
|
|
}
|
|
|
|
|
2020-01-24 00:15:51 +01:00
|
|
|
class ConfigureUi : public QWidget {
|
2018-07-28 18:32:16 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-01-24 00:15:51 +01:00
|
|
|
explicit ConfigureUi(QWidget* parent = nullptr);
|
|
|
|
~ConfigureUi() override;
|
2018-07-28 18:32:16 +02:00
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void ApplyConfiguration();
|
2018-07-28 18:32:16 +02:00
|
|
|
|
2020-01-26 00:26:07 +01:00
|
|
|
private slots:
|
|
|
|
void OnLanguageChanged(int index);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void LanguageChanged(const QString& locale);
|
|
|
|
|
2018-07-28 18:32:16 +02:00
|
|
|
private:
|
2018-11-04 01:38:39 +01:00
|
|
|
void RequestGameListUpdate();
|
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void SetConfiguration();
|
2018-07-28 18:32:16 +02:00
|
|
|
|
2018-09-12 07:11:25 +02:00
|
|
|
void changeEvent(QEvent*) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
2020-01-26 00:37:48 +01:00
|
|
|
void InitializeLanguageComboBox();
|
2018-09-12 07:06:50 +02:00
|
|
|
void InitializeIconSizeComboBox();
|
|
|
|
void InitializeRowComboBoxes();
|
|
|
|
|
2020-01-19 21:56:49 +01:00
|
|
|
void UpdateFirstRowComboBox(bool init = false);
|
|
|
|
void UpdateSecondRowComboBox(bool init = false);
|
|
|
|
|
2020-01-24 00:15:51 +01:00
|
|
|
std::unique_ptr<Ui::ConfigureUi> ui;
|
2018-07-28 18:32:16 +02:00
|
|
|
};
|