yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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 <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) {

View File

@ -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;