2023-05-07 09:49:47 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-05-07 09:48:26 -04:00
|
|
|
#include <map>
|
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
#include <typeindex>
|
|
|
|
#include <utility>
|
2023-05-18 22:17:36 -04:00
|
|
|
#include <vector>
|
2023-05-07 09:48:26 -04:00
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
namespace ConfigurationShared {
|
2023-05-07 13:28:52 -04:00
|
|
|
using TranslationMap = std::map<u32, std::pair<QString, QString>>;
|
2023-05-18 22:17:36 -04:00
|
|
|
using ComboboxTranslations = std::vector<std::pair<u32, QString>>;
|
|
|
|
using ComboboxTranslationMap = std::map<std::type_index, ComboboxTranslations>;
|
2023-05-07 09:48:26 -04:00
|
|
|
|
|
|
|
std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
|
|
|
|
|
2023-05-18 22:17:36 -04:00
|
|
|
std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent);
|
2023-05-07 09:48:26 -04:00
|
|
|
|
|
|
|
} // namespace ConfigurationShared
|