mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
31 lines
656 B
C++
31 lines
656 B
C++
#pragma once
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
#include "ui_consolesettingswidget.h"
|
|
|
|
class QtHostInterface;
|
|
class SettingsDialog;
|
|
|
|
class ConsoleSettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConsoleSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
|
~ConsoleSettingsWidget();
|
|
|
|
private Q_SLOTS:
|
|
void onEnableCPUClockSpeedControlChecked(int state);
|
|
void onCPUClockSpeedValueChanged(int value);
|
|
void updateCPUClockSpeedLabel();
|
|
void onCDROMReadSpeedupValueChanged(int value);
|
|
|
|
private:
|
|
void calculateCPUClockValue();
|
|
|
|
Ui::ConsoleSettingsWidget m_ui;
|
|
|
|
QtHostInterface* m_host_interface;
|
|
};
|