Duckstation/src/duckstation-qt/emulationsettingswidget.h
2021-01-26 03:38:31 +10:00

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;
};