2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_EmulationSettingsWidget.h"
|
|
|
|
|
2023-10-14 08:45:09 +00:00
|
|
|
class SettingsWindow;
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
class EmulationSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-10-14 08:45:09 +00:00
|
|
|
EmulationSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
2021-12-13 12:12:54 +00:00
|
|
|
~EmulationSettingsWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
2022-02-15 14:29:18 +00:00
|
|
|
void onOptimalFramePacingChanged();
|
2021-12-13 12:12:54 +00:00
|
|
|
|
|
|
|
private:
|
2022-02-15 14:29:18 +00:00
|
|
|
void initializeSpeedCombo(QComboBox* cb, const char* section, const char* key, float default_value);
|
|
|
|
void handleSpeedComboChange(QComboBox* cb, const char* section, const char* key);
|
2021-12-13 12:12:54 +00:00
|
|
|
void updateOptimalFramePacing();
|
2024-05-23 13:35:34 +00:00
|
|
|
void updateUseVSyncForTimingEnabled();
|
2021-12-13 12:12:54 +00:00
|
|
|
|
2023-10-14 08:45:09 +00:00
|
|
|
SettingsWindow* m_dialog;
|
2022-02-15 14:29:18 +00:00
|
|
|
|
2021-12-13 12:12:54 +00:00
|
|
|
Ui::EmulationSettingsWidget m_ui;
|
|
|
|
};
|