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

54 lines
1.0 KiB
C
Raw Normal View History

2020-12-28 10:15:37 -05: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 04:40:16 -04:00
#include <functional>
2020-12-28 10:15:37 -05:00
#include <memory>
#include <QWidget>
2021-10-08 20:29:53 -04:00
namespace Core {
class System;
}
2021-06-04 04:40:16 -04:00
class ConfigureDialog;
2020-12-28 10:15:37 -05:00
namespace ConfigurationShared {
enum class CheckState;
}
class HotkeyRegistry;
namespace Ui {
class ConfigureGeneral;
}
class ConfigureGeneral : public QWidget {
Q_OBJECT
public:
2021-10-08 20:29:53 -04:00
explicit ConfigureGeneral(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 10:15:37 -05:00
~ConfigureGeneral() override;
2021-06-04 04:40:16 -04:00
void SetResetCallback(std::function<void()> callback);
void ResetDefaults();
2020-12-28 10:15:37 -05:00
void ApplyConfiguration();
2021-10-08 20:29:53 -04:00
void SetConfiguration();
2020-12-28 10:15:37 -05:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void SetupPerGameUI();
2021-06-04 04:40:16 -04:00
std::function<void()> reset_callback;
2020-12-28 10:15:37 -05:00
std::unique_ptr<Ui::ConfigureGeneral> ui;
2021-07-26 23:04:12 -04:00
ConfigurationShared::CheckState use_speed_limit;
2020-12-28 10:15:37 -05:00
ConfigurationShared::CheckState use_multi_core;
2021-10-08 20:29:53 -04:00
const Core::System& system;
2020-12-28 10:15:37 -05:00
};