pineapple/src/yuzu/configuration/configure_ui.h

51 lines
968 B
C
Raw Normal View History

2022-07-27 20:06:50 +02:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 16:15:37 +01:00
#pragma once
#include <memory>
#include <QWidget>
2021-10-09 02:29:53 +02:00
namespace Core {
class System;
}
2020-12-28 16:15:37 +01:00
namespace Ui {
class ConfigureUi;
}
class ConfigureUi : public QWidget {
Q_OBJECT
public:
2021-10-09 02:29:53 +02:00
explicit ConfigureUi(Core::System& system_, QWidget* parent = nullptr);
2020-12-28 16:15:37 +01:00
~ConfigureUi() override;
void ApplyConfiguration();
private slots:
void OnLanguageChanged(int index);
signals:
void LanguageChanged(const QString& locale);
private:
void RequestGameListUpdate();
void SetConfiguration();
void changeEvent(QEvent*) override;
void RetranslateUI();
void InitializeLanguageComboBox();
void InitializeIconSizeComboBox();
void InitializeRowComboBoxes();
void UpdateFirstRowComboBox(bool init = false);
void UpdateSecondRowComboBox(bool init = false);
std::unique_ptr<Ui::ConfigureUi> ui;
2021-10-09 02:29:53 +02:00
Core::System& system;
2020-12-28 16:15:37 +01:00
};