mirror of
https://github.com/thejerf/baijiSteamVR.git
synced 2026-10-19 06:02:49 +02:00
This works toward #14, but is not entirely satisfactory as due to some other previous fixes, when the Dolphin UI is displayed the emulation window stops rendering. So that needs to be addressed.
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// Copyright 2017 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include <QWidget>
|
|
|
|
class ConfigBool;
|
|
class ConfigChoice;
|
|
class ConfigInteger;
|
|
class ConfigRadioInt;
|
|
class ConfigStringChoice;
|
|
class GraphicsPane;
|
|
class QLabel;
|
|
class ToolTipComboBox;
|
|
|
|
namespace Config
|
|
{
|
|
class Layer;
|
|
} // namespace Config
|
|
|
|
class GeneralWidget final : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit GeneralWidget(GraphicsPane* gfx_pane);
|
|
|
|
signals:
|
|
void BackendChanged(const QString& backend);
|
|
|
|
private:
|
|
void BackendWarning();
|
|
|
|
void CreateWidgets();
|
|
void ToggleCustomAspectRatio(int index);
|
|
void ConnectWidgets();
|
|
void AddDescriptions();
|
|
|
|
void OnBackendChanged(const QString& backend_name);
|
|
void OnEmulationStateChanged(bool running);
|
|
|
|
// Video
|
|
ConfigStringChoice* m_backend_combo;
|
|
ToolTipComboBox* m_adapter_combo;
|
|
ConfigChoice* m_aspect_combo;
|
|
QLabel* m_custom_aspect_label;
|
|
ConfigInteger* m_custom_aspect_width;
|
|
ConfigInteger* m_custom_aspect_height;
|
|
ConfigBool* m_enable_vsync;
|
|
ConfigBool* m_enable_fullscreen;
|
|
|
|
// Options
|
|
ConfigBool* m_autoadjust_window_size;
|
|
#ifndef BAIJI_STEAMVR
|
|
ConfigBool* m_render_main_window;
|
|
#endif
|
|
|
|
std::array<ConfigRadioInt*, 4> m_shader_compilation_mode{};
|
|
ConfigBool* m_wait_for_shaders;
|
|
int m_previous_backend = 0;
|
|
Config::Layer* m_game_layer = nullptr;
|
|
};
|