mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-28 00:25:41 +00:00
31 lines
688 B
C++
31 lines
688 B
C++
#pragma once
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
#include "ui_emulationsettingswidget.h"
|
|
|
|
class QtHostInterface;
|
|
class SettingsDialog;
|
|
|
|
class EmulationSettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EmulationSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
|
~EmulationSettingsWidget();
|
|
|
|
private Q_SLOTS:
|
|
void onEmulationSpeedIndexChanged(int index);
|
|
void onFastForwardSpeedIndexChanged(int index);
|
|
void onTurboSpeedIndexChanged(int index);
|
|
void updateRewind();
|
|
|
|
private:
|
|
bool runaheadEnabled() { return m_ui.runaheadFrames->currentIndex() > 0; }
|
|
|
|
Ui::EmulationSettingsWidget m_ui;
|
|
|
|
QtHostInterface* m_host_interface;
|
|
};
|