2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2019-12-31 06:17:17 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_consolesettingswidget.h"
|
|
|
|
|
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:
|
2022-07-11 13:03:29 +00:00
|
|
|
explicit ConsoleSettingsWidget(SettingsDialog* dialog, QWidget* parent);
|
2019-12-31 06:17:17 +00:00
|
|
|
~ConsoleSettingsWidget();
|
|
|
|
|
2020-09-29 14:29:47 +00:00
|
|
|
private Q_SLOTS:
|
2022-07-26 08:42:37 +00:00
|
|
|
void updateRecompilerICacheEnabled();
|
2020-09-29 14:29:47 +00:00
|
|
|
void onEnableCPUClockSpeedControlChecked(int state);
|
|
|
|
void onCPUClockSpeedValueChanged(int value);
|
|
|
|
void updateCPUClockSpeedLabel();
|
|
|
|
|
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
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
SettingsDialog* m_dialog;
|
2019-12-31 06:17:17 +00:00
|
|
|
};
|