2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2021-01-23 07:33:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_emulationsettingswidget.h"
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
class SettingsWindow;
|
2021-01-23 07:33:36 +00:00
|
|
|
|
|
|
|
class EmulationSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-11-06 13:01:38 +00:00
|
|
|
explicit EmulationSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
2021-01-23 07:33:36 +00:00
|
|
|
~EmulationSettingsWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onEmulationSpeedIndexChanged(int index);
|
|
|
|
void onFastForwardSpeedIndexChanged(int index);
|
|
|
|
void onTurboSpeedIndexChanged(int index);
|
2021-01-25 16:48:40 +00:00
|
|
|
void updateRewind();
|
2021-01-23 07:33:36 +00:00
|
|
|
|
|
|
|
private:
|
2022-07-11 13:03:29 +00:00
|
|
|
void fillComboBoxWithEmulationSpeeds(QComboBox* cb, float global_value);
|
2021-01-23 07:33:36 +00:00
|
|
|
|
|
|
|
Ui::EmulationSettingsWidget m_ui;
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
SettingsWindow* m_dialog;
|
2021-01-23 07:33:36 +00:00
|
|
|
};
|