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;
|
2020-08-10 12:40:38 +00:00
|
|
|
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:
|
2020-08-10 12:40:38 +00:00
|
|
|
explicit ConsoleSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
2019-12-31 06:17:17 +00:00
|
|
|
~ConsoleSettingsWidget();
|
|
|
|
|
2021-03-03 11:33:24 +00:00
|
|
|
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();
|
2020-10-04 14:05:14 +00:00
|
|
|
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
|
|
|
};
|