Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
stenzek
GitHub Repository: stenzek/duckstation
Path: blob/master/src/duckstation-qt/consolesettingswidget.h
4246 views
1
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <[email protected]>
2
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
3
4
#pragma once
5
6
#include <QtWidgets/QWidget>
7
8
#include "ui_consolesettingswidget.h"
9
10
class SettingsWindow;
11
12
class ConsoleSettingsWidget : public QWidget
13
{
14
Q_OBJECT
15
16
public:
17
explicit ConsoleSettingsWidget(SettingsWindow* dialog, QWidget* parent);
18
~ConsoleSettingsWidget();
19
20
private Q_SLOTS:
21
void onFastBootChanged();
22
void updateRecompilerICacheEnabled();
23
void onEnableCPUClockSpeedControlChecked(int state);
24
void onCPUClockSpeedValueChanged(int value);
25
void updateCPUClockSpeedLabel();
26
27
private:
28
void calculateCPUClockValue();
29
30
Ui::ConsoleSettingsWidget m_ui;
31
32
SettingsWindow* m_dialog;
33
};
34
35