pineapple-src/src/yuzu/configuration/configure_general.h

49 lines
963 B
C
Raw Normal View History

2020-12-28 16:15:37 +01:00
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
2021-06-04 10:40:16 +02:00
#include <functional>
2020-12-28 16:15:37 +01:00
#include <memory>
#include <QWidget>
2021-06-04 10:40:16 +02:00
class ConfigureDialog;
2020-12-28 16:15:37 +01:00
namespace ConfigurationShared {
enum class CheckState;
}
class HotkeyRegistry;
namespace Ui {
class ConfigureGeneral;
}
class ConfigureGeneral : public QWidget {
Q_OBJECT
public:
explicit ConfigureGeneral(QWidget* parent = nullptr);
~ConfigureGeneral() override;
2021-06-04 10:40:16 +02:00
void SetResetCallback(std::function<void()> callback);
void ResetDefaults();
2020-12-28 16:15:37 +01:00
void ApplyConfiguration();
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void SetConfiguration();
void SetupPerGameUI();
2021-06-04 10:40:16 +02:00
std::function<void()> reset_callback;
2020-12-28 16:15:37 +01:00
std::unique_ptr<Ui::ConfigureGeneral> ui;
2021-07-27 05:04:12 +02:00
ConfigurationShared::CheckState use_speed_limit;
2020-12-28 16:15:37 +01:00
ConfigurationShared::CheckState use_multi_core;
};