mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 21:36:27 -05:00
configuration_shared: Create Tab base class
This commit is contained in:
parent
60773194a0
commit
e5b981e1e4
2 changed files with 22 additions and 0 deletions
|
@ -4,10 +4,19 @@
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QWidget>
|
||||||
#include "common/settings.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/configure_per_game.h"
|
||||||
|
|
||||||
|
namespace ConfigurationShared {
|
||||||
|
|
||||||
|
Tab::Tab(QWidget* parent) : QWidget(parent) {}
|
||||||
|
|
||||||
|
Tab::~Tab() {}
|
||||||
|
|
||||||
|
} // namespace ConfigurationShared
|
||||||
|
|
||||||
void ConfigurationShared::ApplyPerGameSetting(Settings::SwitchableSetting<bool>* setting,
|
void ConfigurationShared::ApplyPerGameSetting(Settings::SwitchableSetting<bool>* setting,
|
||||||
const QCheckBox* checkbox,
|
const QCheckBox* checkbox,
|
||||||
const CheckState& tracker) {
|
const CheckState& tracker) {
|
||||||
|
|
|
@ -5,10 +5,23 @@
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
#include <QWidget>
|
||||||
|
#include <qobjectdefs.h>
|
||||||
#include "common/settings.h"
|
#include "common/settings.h"
|
||||||
|
|
||||||
namespace ConfigurationShared {
|
namespace ConfigurationShared {
|
||||||
|
|
||||||
|
class Tab : public QWidget {
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit Tab(QWidget* parent = nullptr);
|
||||||
|
~Tab();
|
||||||
|
|
||||||
|
virtual void ApplyConfiguration() = 0;
|
||||||
|
virtual void SetConfiguration() = 0;
|
||||||
|
};
|
||||||
|
|
||||||
constexpr int USE_GLOBAL_INDEX = 0;
|
constexpr int USE_GLOBAL_INDEX = 0;
|
||||||
constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1;
|
constexpr int USE_GLOBAL_SEPARATOR_INDEX = 1;
|
||||||
constexpr int USE_GLOBAL_OFFSET = 2;
|
constexpr int USE_GLOBAL_OFFSET = 2;
|
||||||
|
|
Loading…
Reference in a new issue