duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

consolesettingswidget.h (714B)


      1 // SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR 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 updateRecompilerICacheEnabled();
     22   void onEnableCPUClockSpeedControlChecked(int state);
     23   void onCPUClockSpeedValueChanged(int value);
     24   void updateCPUClockSpeedLabel();
     25 
     26 private:
     27   void calculateCPUClockValue();
     28 
     29   Ui::ConsoleSettingsWidget m_ui;
     30 
     31   SettingsWindow* m_dialog;
     32 };