Duckstation/src/duckstation-qt/consolesettingswidget.h

33 lines
714 B
C
Raw Normal View History

// 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"
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:
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:
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
SettingsDialog* m_dialog;
2019-12-31 06:17:17 +00:00
};