pineapple/src/yuzu/configuration/configure_general.h

54 lines
1 KiB
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-10-09 02:29:53 +02:00
namespace Core {
class System;
}
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:
2021-10-09 02:29:53 +02:00
explicit ConfigureGeneral(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 16:15:37 +01:00
~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();
2021-10-09 02:29:53 +02:00
void SetConfiguration();
2020-12-28 16:15:37 +01:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
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;
2021-10-09 02:29:53 +02:00
const Core::System& system;
2020-12-28 16:15:37 +01:00
};