2021-01-23 07:33:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_emulationsettingswidget.h"
|
|
|
|
|
|
|
|
class SettingsDialog;
|
|
|
|
|
|
|
|
class EmulationSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-11 13:03:29 +00:00
|
|
|
explicit EmulationSettingsWidget(SettingsDialog* 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;
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
SettingsDialog* m_dialog;
|
2021-01-23 07:33:36 +00:00
|
|
|
};
|