mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01:00
lime3ds-gui: Add Layout tab to in-game settings
This commit is contained in:
parent
a52ba8f3ce
commit
fc936c8879
@ -97,6 +97,12 @@
|
|||||||
<header>configuration/configure_enhancements.h</header>
|
<header>configuration/configure_enhancements.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>ConfigureLayout</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>configuration/configure_layout.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>ConfigureWeb</class>
|
<class>ConfigureWeb</class>
|
||||||
<extends>QWidget</extends>
|
<extends>QWidget</extends>
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "lime_qt/configuration/configure_enhancements.h"
|
#include "lime_qt/configuration/configure_enhancements.h"
|
||||||
#include "lime_qt/configuration/configure_general.h"
|
#include "lime_qt/configuration/configure_general.h"
|
||||||
#include "lime_qt/configuration/configure_graphics.h"
|
#include "lime_qt/configuration/configure_graphics.h"
|
||||||
|
#include "lime_qt/configuration/configure_layout.h"
|
||||||
#include "lime_qt/configuration/configure_per_game.h"
|
#include "lime_qt/configuration/configure_per_game.h"
|
||||||
#include "lime_qt/configuration/configure_system.h"
|
#include "lime_qt/configuration/configure_system.h"
|
||||||
#include "lime_qt/util/util.h"
|
#include "lime_qt/util/util.h"
|
||||||
@ -36,6 +37,7 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const QString
|
|||||||
audio_tab = std::make_unique<ConfigureAudio>(is_powered_on, this);
|
audio_tab = std::make_unique<ConfigureAudio>(is_powered_on, this);
|
||||||
general_tab = std::make_unique<ConfigureGeneral>(this);
|
general_tab = std::make_unique<ConfigureGeneral>(this);
|
||||||
enhancements_tab = std::make_unique<ConfigureEnhancements>(this);
|
enhancements_tab = std::make_unique<ConfigureEnhancements>(this);
|
||||||
|
layout_tab = std::make_unique<ConfigureLayout>(this);
|
||||||
graphics_tab =
|
graphics_tab =
|
||||||
std::make_unique<ConfigureGraphics>(gl_renderer, physical_devices, is_powered_on, this);
|
std::make_unique<ConfigureGraphics>(gl_renderer, physical_devices, is_powered_on, this);
|
||||||
system_tab = std::make_unique<ConfigureSystem>(system, this);
|
system_tab = std::make_unique<ConfigureSystem>(system, this);
|
||||||
@ -47,6 +49,7 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const QString
|
|||||||
ui->tabWidget->addTab(general_tab.get(), tr("General"));
|
ui->tabWidget->addTab(general_tab.get(), tr("General"));
|
||||||
ui->tabWidget->addTab(system_tab.get(), tr("System"));
|
ui->tabWidget->addTab(system_tab.get(), tr("System"));
|
||||||
ui->tabWidget->addTab(enhancements_tab.get(), tr("Enhancements"));
|
ui->tabWidget->addTab(enhancements_tab.get(), tr("Enhancements"));
|
||||||
|
ui->tabWidget->addTab(layout_tab.get(), tr("Layout"));
|
||||||
ui->tabWidget->addTab(graphics_tab.get(), tr("Graphics"));
|
ui->tabWidget->addTab(graphics_tab.get(), tr("Graphics"));
|
||||||
ui->tabWidget->addTab(audio_tab.get(), tr("Audio"));
|
ui->tabWidget->addTab(audio_tab.get(), tr("Audio"));
|
||||||
ui->tabWidget->addTab(debug_tab.get(), tr("Debug"));
|
ui->tabWidget->addTab(debug_tab.get(), tr("Debug"));
|
||||||
@ -102,6 +105,7 @@ void ConfigurePerGame::ApplyConfiguration() {
|
|||||||
general_tab->ApplyConfiguration();
|
general_tab->ApplyConfiguration();
|
||||||
system_tab->ApplyConfiguration();
|
system_tab->ApplyConfiguration();
|
||||||
enhancements_tab->ApplyConfiguration();
|
enhancements_tab->ApplyConfiguration();
|
||||||
|
layout_tab->ApplyConfiguration();
|
||||||
graphics_tab->ApplyConfiguration();
|
graphics_tab->ApplyConfiguration();
|
||||||
audio_tab->ApplyConfiguration();
|
audio_tab->ApplyConfiguration();
|
||||||
debug_tab->ApplyConfiguration();
|
debug_tab->ApplyConfiguration();
|
||||||
|
@ -18,6 +18,7 @@ class System;
|
|||||||
class ConfigureAudio;
|
class ConfigureAudio;
|
||||||
class ConfigureGeneral;
|
class ConfigureGeneral;
|
||||||
class ConfigureEnhancements;
|
class ConfigureEnhancements;
|
||||||
|
class ConfigureLayout;
|
||||||
class ConfigureGraphics;
|
class ConfigureGraphics;
|
||||||
class ConfigureSystem;
|
class ConfigureSystem;
|
||||||
class ConfigureDebug;
|
class ConfigureDebug;
|
||||||
@ -71,6 +72,7 @@ private:
|
|||||||
std::unique_ptr<ConfigureAudio> audio_tab;
|
std::unique_ptr<ConfigureAudio> audio_tab;
|
||||||
std::unique_ptr<ConfigureGeneral> general_tab;
|
std::unique_ptr<ConfigureGeneral> general_tab;
|
||||||
std::unique_ptr<ConfigureEnhancements> enhancements_tab;
|
std::unique_ptr<ConfigureEnhancements> enhancements_tab;
|
||||||
|
std::unique_ptr<ConfigureLayout> layout_tab;
|
||||||
std::unique_ptr<ConfigureGraphics> graphics_tab;
|
std::unique_ptr<ConfigureGraphics> graphics_tab;
|
||||||
std::unique_ptr<ConfigureSystem> system_tab;
|
std::unique_ptr<ConfigureSystem> system_tab;
|
||||||
std::unique_ptr<ConfigureDebug> debug_tab;
|
std::unique_ptr<ConfigureDebug> debug_tab;
|
||||||
|
Loading…
Reference in New Issue
Block a user