2017-06-15 23:42:12 +00:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QRadioButton>
|
|
|
|
|
|
|
|
namespace Config
|
|
|
|
{
|
|
|
|
template <typename T>
|
2020-05-02 12:39:40 +00:00
|
|
|
struct Info;
|
2017-07-30 19:56:12 +00:00
|
|
|
}
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
class GraphicsBool : public QCheckBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-05-02 12:39:40 +00:00
|
|
|
GraphicsBool(const QString& label, const Config::Info<bool>& setting, bool reverse = false);
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Update();
|
|
|
|
|
2020-05-02 12:39:40 +00:00
|
|
|
const Config::Info<bool>& m_setting;
|
2017-06-15 23:42:12 +00:00
|
|
|
bool m_reverse;
|
|
|
|
};
|
|
|
|
|
|
|
|
class GraphicsBoolEx : public QRadioButton
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-05-02 12:39:40 +00:00
|
|
|
GraphicsBoolEx(const QString& label, const Config::Info<bool>& setting, bool reverse = false);
|
2017-06-15 23:42:12 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void Update();
|
|
|
|
|
2020-05-02 12:39:40 +00:00
|
|
|
const Config::Info<bool>& m_setting;
|
2017-06-15 23:42:12 +00:00
|
|
|
bool m_reverse;
|
|
|
|
};
|