configuration_shared: Create Tab base class

This commit is contained in:
lat9nq 2023-05-05 19:49:51 -04:00
parent 60773194a0
commit e5b981e1e4
2 changed files with 22 additions and 0 deletions

View file

@ -4,10 +4,19 @@
#include <QCheckBox>
#include <QObject>
#include <QString>
#include <QWidget>
#include "common/settings.h"
#include "yuzu/configuration/configuration_shared.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,
const QCheckBox* checkbox,
const CheckState& tracker) {

View file

@ -5,10 +5,23 @@
#include <QCheckBox>
#include <QComboBox>
#include <QWidget>
#include <qobjectdefs.h>
#include "common/settings.h"
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_SEPARATOR_INDEX = 1;
constexpr int USE_GLOBAL_OFFSET = 2;