mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-21 01:55:40 -04:00
Qt: Turn tweaks/hacks into a table
Also move PGXP CPU mode/vertex cache to advanced options
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QVector>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include "ui_advancedsettingswidget.h"
|
||||
@ -16,9 +16,40 @@ public:
|
||||
~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;
|
||||
};
|
||||
};
|
||||
|
||||
Ui::AdvancedSettingsWidget m_ui;
|
||||
|
||||
void onResetToDefaultClicked();
|
||||
|
||||
QtHostInterface* m_host_interface;
|
||||
|
||||
QVector<TweakOption> m_tweak_options;
|
||||
};
|
||||
|
Reference in New Issue
Block a user