mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
45 lines
981 B
C++
45 lines
981 B
C++
#pragma once
|
|
|
|
#include "gui_settings.h"
|
|
#include "emu_settings.h"
|
|
|
|
#include "Emu/GameInfo.h"
|
|
|
|
#include <QDialog>
|
|
#include <QTabWidget>
|
|
|
|
#include <memory>
|
|
|
|
namespace Ui {
|
|
class settings_dialog;
|
|
}
|
|
|
|
class settings_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit settings_dialog(std::shared_ptr<gui_settings> xSettings, const Render_Creator& r_Creator, const int& tabIndex = 0, QWidget *parent = 0, const GameInfo *game = nullptr);
|
|
Q_SIGNALS:
|
|
void GuiSettingsSyncRequest();
|
|
void GuiStylesheetRequest(const QString& path);
|
|
void GuiSettingsSaveRequest();
|
|
void ToolBarRepaintRequest();
|
|
private Q_SLOTS:
|
|
void OnBackupCurrentConfig();
|
|
void OnApplyConfig();
|
|
void OnApplyStylesheet();
|
|
private:
|
|
//emulator tab
|
|
void AddConfigs();
|
|
void AddStylesheets();
|
|
QString m_startingStylesheet;
|
|
QString m_startingConfig;
|
|
//gpu tab
|
|
QString m_oldRender = "";
|
|
bool m_isD3D12 = false;
|
|
bool m_isVulkan = false;
|
|
|
|
Ui::settings_dialog *ui;
|
|
std::shared_ptr<gui_settings> xgui_settings;
|
|
};
|