mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-01-14 23:34:07 +00:00
a007ac6b9c
We can iterate through the AdvancedGraphics settings and generate the UI during runtime. This doesn't help runtime efficiency, but it helps a ton in reducing the amount of work a developer needs in order to add a new setting.
18 lines
456 B
C++
18 lines
456 B
C++
#include <forward_list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <string>
|
|
#include <typeindex>
|
|
#include <utility>
|
|
#include <QString>
|
|
|
|
class QWidget;
|
|
|
|
namespace ConfigurationShared {
|
|
using TranslationMap = std::map<std::string, std::pair<QString, QString>>;
|
|
|
|
std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
|
|
|
|
std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent);
|
|
|
|
} // namespace ConfigurationShared
|