mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-18 05:23:06 +00: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 <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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue