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

emulationsettingswidget.h (868B)


      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_emulationsettingswidget.h"
      9 
     10 class SettingsWindow;
     11 
     12 class EmulationSettingsWidget : public QWidget
     13 {
     14   Q_OBJECT
     15 
     16 public:
     17   explicit EmulationSettingsWidget(SettingsWindow* dialog, QWidget* parent);
     18   ~EmulationSettingsWidget();
     19 
     20 private Q_SLOTS:
     21   void onEmulationSpeedIndexChanged(int index);
     22   void onFastForwardSpeedIndexChanged(int index);
     23   void onTurboSpeedIndexChanged(int index);
     24   void onOptimalFramePacingChanged();
     25   void onPreFrameSleepChanged();
     26   void updateSkipDuplicateFramesEnabled();
     27   void updateRewind();
     28 
     29 private:
     30   void fillComboBoxWithEmulationSpeeds(QComboBox* cb, float global_value);
     31 
     32   Ui::EmulationSettingsWidget m_ui;
     33 
     34   SettingsWindow* m_dialog;
     35 };