You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
duckstation/src/duckstation-qt/consolesettingswidget.h

31 lines
700 B
C++

// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
#pragma once
#include <QtWidgets/QWidget>
#include "ui_consolesettingswidget.h"
class SettingsWindow;
class ConsoleSettingsWidget : public QWidget
{
public:
explicit ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* parent);
~ConsoleSettingsWidget();
private:
void calculateCPUClockValue();
void onFastBootChanged();
void updateRecompilerICacheEnabled();
void onEnableCPUClockSpeedControlChecked(int state);
void onCPUClockSpeedValueChanged(int value);
void updateCPUClockSpeedLabel();
Ui::ConsoleSettingsWidget m_ui;
SettingsWindow* m_dialog;
};