summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/shared_translation.h
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-07 09:48:26 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 10:56:07 -0400
commita007ac6b9ccc23861f5a5c6967d535220ed794b0 (patch)
tree934c66c124dd77a17fae07ae919335efb1107255 /src/yuzu/configuration/shared_translation.h
parentb11b4be7cb764bc0c1aa6c563ccf41a3d1b335dd (diff)
configure_graphics_advance: Generate UI at runtime
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.
Diffstat (limited to 'src/yuzu/configuration/shared_translation.h')
-rw-r--r--src/yuzu/configuration/shared_translation.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/yuzu/configuration/shared_translation.h b/src/yuzu/configuration/shared_translation.h
new file mode 100644
index 000000000..a81ae9c87
--- /dev/null
+++ b/src/yuzu/configuration/shared_translation.h
@@ -0,0 +1,18 @@
+#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