Duckstation/src/duckstation-qt/advancedsettingswidget.h

56 lines
908 B
C
Raw Normal View History

2020-04-30 14:59:31 +00:00
#pragma once
#include <QtCore/QVector>
2020-04-30 14:59:31 +00:00
#include <QtWidgets/QWidget>
#include "ui_advancedsettingswidget.h"
class QtHostInterface;
class SettingsDialog;
class AdvancedSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit AdvancedSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
~AdvancedSettingsWidget();
private:
struct TweakOption
{
enum class Type
{
Boolean,
IntRange
};
Type type;
QString description;
std::string key;
std::string section;
union
{
struct
{
bool default_value;
} boolean;
struct
{
int min_value;
int max_value;
int default_value;
} int_range;
};
};
2020-04-30 14:59:31 +00:00
Ui::AdvancedSettingsWidget m_ui;
void onResetToDefaultClicked();
2020-04-30 14:59:31 +00:00
QtHostInterface* m_host_interface;
QVector<TweakOption> m_tweak_options;
2020-04-30 14:59:31 +00:00
};