Duckstation/src/duckstation-qt/consolesettingswidget.h

34 lines
698 B
C
Raw Normal View History

2019-12-31 06:17:17 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_consolesettingswidget.h"
2020-01-01 04:01:58 +00:00
class QtHostInterface;
class SettingsDialog;
2020-01-01 04:01:58 +00:00
2019-12-31 06:17:17 +00:00
class ConsoleSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit ConsoleSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
2019-12-31 06:17:17 +00:00
~ConsoleSettingsWidget();
Q_SIGNALS:
void multitapModeChanged();
2020-09-29 14:29:47 +00:00
private Q_SLOTS:
void onEnableCPUClockSpeedControlChecked(int state);
void onCPUClockSpeedValueChanged(int value);
void updateCPUClockSpeedLabel();
void onCDROMReadSpeedupValueChanged(int value);
2020-09-29 14:29:47 +00:00
2019-12-31 06:17:17 +00:00
private:
2020-09-29 14:29:47 +00:00
void calculateCPUClockValue();
2019-12-31 06:17:17 +00:00
Ui::ConsoleSettingsWidget m_ui;
2020-01-01 04:01:58 +00:00
QtHostInterface* m_host_interface;
2019-12-31 06:17:17 +00:00
};