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

interfacesettingswidget.h (797B)


      1 // SPDX-FileCopyrightText: 2019-2024 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_interfacesettingswidget.h"
      9 
     10 class SettingsWindow;
     11 
     12 class InterfaceSettingsWidget : public QWidget
     13 {
     14   Q_OBJECT
     15 
     16 public:
     17   explicit InterfaceSettingsWidget(SettingsWindow* dialog, QWidget* parent);
     18   ~InterfaceSettingsWidget();
     19 
     20   static void populateLanguageDropdown(QComboBox* cb);
     21 
     22 Q_SIGNALS:
     23   void themeChanged();
     24 
     25 private Q_SLOTS:
     26   void onRenderToSeparateWindowChanged();
     27   void onLanguageChanged();
     28 
     29 private:
     30   Ui::InterfaceSettingsWidget m_ui;
     31 
     32   SettingsWindow* m_dialog;
     33 
     34 public:
     35   static const char* THEME_NAMES[];
     36   static const char* THEME_VALUES[];
     37   static const char* DEFAULT_THEME_NAME;
     38 };