diff options
author | yuzubot <yuzu@yuzu-emu.org> | 2023-07-25 17:38:12 +0000 |
---|---|---|
committer | yuzubot <yuzu@yuzu-emu.org> | 2023-07-25 17:38:12 +0000 |
commit | fc1ab2564e53004ee4c35741662eec0d2149ec75 (patch) | |
tree | 7b5117d787b4bae47474296235c805665cd1ef24 /src/yuzu/configuration/shared_translation.h | |
parent | 821d5eb1176eea180d8f84fb9c6c9a58ff845f39 (diff) |
"Merge Tagged PR 10839"mainline-0-1507
Diffstat (limited to 'src/yuzu/configuration/shared_translation.h')
-rw-r--r-- | src/yuzu/configuration/shared_translation.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/yuzu/configuration/shared_translation.h b/src/yuzu/configuration/shared_translation.h new file mode 100644 index 0000000000..99a0e808ca --- /dev/null +++ b/src/yuzu/configuration/shared_translation.h @@ -0,0 +1,25 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include <map> +#include <memory> +#include <typeindex> +#include <utility> +#include <vector> +#include <QString> +#include "common/common_types.h" + +class QWidget; + +namespace ConfigurationShared { +using TranslationMap = std::map<u32, std::pair<QString, QString>>; +using ComboboxTranslations = std::vector<std::pair<u32, QString>>; +using ComboboxTranslationMap = std::map<u32, ComboboxTranslations>; + +std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent); + +std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent); + +} // namespace ConfigurationShared |