configuration: Clean up includes a bit

This commit is contained in:
lat9nq 2023-05-18 23:05:21 -04:00
parent 3337250746
commit 217fa04080
14 changed files with 26 additions and 51 deletions

View file

@ -2,29 +2,8 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#include <memory> #include <memory>
#include <QBoxLayout> #include <type_traits>
#include <QCheckBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QObject>
#include <QPushButton>
#include <QString>
#include <QStyle>
#include <QWidget>
#include <qabstractbutton.h>
#include <qabstractslider.h>
#include <qboxlayout.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qnamespace.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qsurfaceformat.h>
#include "common/settings.h"
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_per_game.h"
#include "yuzu/configuration/shared_translation.h"
namespace ConfigurationShared { namespace ConfigurationShared {

View file

@ -4,14 +4,12 @@
#pragma once #pragma once
#include <forward_list> #include <forward_list>
#include <iterator>
#include <memory> #include <memory>
#include <QCheckBox> #include <QString>
#include <QComboBox>
#include <QWidget> #include <QWidget>
#include <qobjectdefs.h> #include <qobjectdefs.h>
#include "common/settings.h"
#include "yuzu/configuration/shared_translation.h" class QObject;
namespace ConfigurationShared { namespace ConfigurationShared {
@ -29,16 +27,4 @@ private:
std::shared_ptr<std::forward_list<Tab*>> group; std::shared_ptr<std::forward_list<Tab*>> group;
}; };
constexpr int USE_GLOBAL_INDEX = 0;
constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1;
constexpr int USE_GLOBAL_OFFSET = 2;
// CheckBoxes require a tracker for their state since we emulate a tristate CheckBox
enum class CheckState {
Off, // Checkbox overrides to off/false
On, // Checkbox overrides to on/true
Global, // Checkbox defers to the global state
Count, // Simply the number of states, not a valid checkbox state
};
} // namespace ConfigurationShared } // namespace ConfigurationShared

View file

@ -3,6 +3,7 @@
#include <forward_list> #include <forward_list>
#include <memory> #include <memory>
#include <QComboBox>
#include "audio_core/sink/sink.h" #include "audio_core/sink/sink.h"
#include "audio_core/sink/sink_details.h" #include "audio_core/sink/sink_details.h"

View file

@ -10,7 +10,7 @@
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h" #include "yuzu/configuration/shared_translation.h"
class QPushButton; class QComboBox;
namespace Core { namespace Core {
class System; class System;

View file

@ -3,6 +3,7 @@
#include <forward_list> #include <forward_list>
#include <memory> #include <memory>
#include <QComboBox>
#include "common/common_types.h" #include "common/common_types.h"
#include "common/settings.h" #include "common/settings.h"
#include "configuration/shared_widget.h" #include "configuration/shared_widget.h"

View file

@ -6,6 +6,9 @@
#include <memory> #include <memory>
#include <QWidget> #include <QWidget>
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
class QComboBox;
namespace Core { namespace Core {
class System; class System;
@ -37,13 +40,6 @@ private:
std::unique_ptr<Ui::ConfigureCpu> ui; std::unique_ptr<Ui::ConfigureCpu> ui;
ConfigurationShared::CheckState cpuopt_unsafe_unfuse_fma;
ConfigurationShared::CheckState cpuopt_unsafe_reduce_fp_error;
ConfigurationShared::CheckState cpuopt_unsafe_ignore_standard_fpcr;
ConfigurationShared::CheckState cpuopt_unsafe_inaccurate_nan;
ConfigurationShared::CheckState cpuopt_unsafe_fastmem_check;
ConfigurationShared::CheckState cpuopt_unsafe_ignore_global_monitor;
const Core::System& system; const Core::System& system;
const ConfigurationShared::TranslationMap& translations; const ConfigurationShared::TranslationMap& translations;

View file

@ -7,7 +7,8 @@
#include <memory> #include <memory>
#include <vector> #include <vector>
#include <QDialog> #include <QDialog>
#include "configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
#include "yuzu/vk_device_info.h" #include "yuzu/vk_device_info.h"
namespace Core { namespace Core {

View file

@ -5,6 +5,7 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include <type_traits>
#include <vector> #include <vector>
#include <QColor> #include <QColor>
#include <QString> #include <QString>
@ -14,6 +15,7 @@
#include "common/common_types.h" #include "common/common_types.h"
#include "vk_device_info.h" #include "vk_device_info.h"
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
class QPushButton; class QPushButton;
class QEvent; class QEvent;

View file

@ -8,6 +8,7 @@
#include "ui_configure_graphics_advanced.h" #include "ui_configure_graphics_advanced.h"
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/configure_graphics_advanced.h" #include "yuzu/configuration/configure_graphics_advanced.h"
#include "yuzu/configuration/shared_translation.h"
#include "yuzu/configuration/shared_widget.h" #include "yuzu/configuration/shared_widget.h"
ConfigureGraphicsAdvanced::ConfigureGraphicsAdvanced( ConfigureGraphicsAdvanced::ConfigureGraphicsAdvanced(

View file

@ -6,6 +6,7 @@
#include <memory> #include <memory>
#include <QWidget> #include <QWidget>
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
namespace Core { namespace Core {
class System; class System;

View file

@ -15,6 +15,7 @@
#include "vk_device_info.h" #include "vk_device_info.h"
#include "yuzu/configuration/config.h" #include "yuzu/configuration/config.h"
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
namespace Core { namespace Core {
class System; class System;

View file

@ -5,6 +5,8 @@
#include <forward_list> #include <forward_list>
#include <optional> #include <optional>
#include <QCheckBox>
#include <QComboBox>
#include <QDateTimeEdit> #include <QDateTimeEdit>
#include <QFileDialog> #include <QFileDialog>
#include <QGraphicsItem> #include <QGraphicsItem>

View file

@ -9,7 +9,11 @@
#include <QWidget> #include <QWidget>
#include "yuzu/configuration/configuration_shared.h" #include "yuzu/configuration/configuration_shared.h"
#include "yuzu/configuration/shared_translation.h"
class QCheckBox;
class QLineEdit;
class QComboBox;
class QDateTimeEdit; class QDateTimeEdit;
namespace Core { namespace Core {
@ -43,9 +47,6 @@ private:
std::unique_ptr<Ui::ConfigureSystem> ui; std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled = false; bool enabled = false;
ConfigurationShared::CheckState use_rng_seed;
ConfigurationShared::CheckState use_unsafe_extended_memory_layout;
Core::System& system; Core::System& system;
const ConfigurationShared::TranslationMap& translations; const ConfigurationShared::TranslationMap& translations;
const ConfigurationShared::ComboboxTranslationMap& combobox_translations; const ConfigurationShared::ComboboxTranslationMap& combobox_translations;

View file

@ -1,6 +1,7 @@
#include <functional> #include <functional>
#include <limits> #include <limits>
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox>
#include <QDateTimeEdit> #include <QDateTimeEdit>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QIcon> #include <QIcon>
@ -8,7 +9,9 @@
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
#include <QSizePolicy> #include <QSizePolicy>
#include <QSlider>
#include <QSpinBox> #include <QSpinBox>
#include <QStyle>
#include <QWidget> #include <QWidget>
#include <qabstractbutton.h> #include <qabstractbutton.h>
#include <qabstractspinbox.h> #include <qabstractspinbox.h>