2020-07-11 09:26:36 -04:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
2021-04-14 19:07:40 -04:00
|
|
|
#include "common/settings.h"
|
2020-07-11 09:26:36 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureCpu;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureCpu : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureCpu(QWidget* parent = nullptr);
|
|
|
|
~ConfigureCpu() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
2020-07-12 07:06:04 -04:00
|
|
|
void AccuracyUpdated(int index);
|
2020-08-16 08:19:55 -04:00
|
|
|
void UpdateGroup(int index);
|
2020-07-11 11:25:49 -04:00
|
|
|
|
2020-07-11 09:26:36 -04:00
|
|
|
void SetConfiguration();
|
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureCpu> ui;
|
|
|
|
};
|