2023-05-07 15:49:47 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-06-06 00:15:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-05-07 15:48:26 +02:00
|
|
|
#include <map>
|
|
|
|
#include <memory>
|
|
|
|
#include <typeindex>
|
|
|
|
#include <utility>
|
2023-05-19 04:17:36 +02:00
|
|
|
#include <vector>
|
2023-05-07 15:48:26 +02:00
|
|
|
#include <QString>
|
2023-06-12 23:42:21 +02:00
|
|
|
#include "common/common_types.h"
|
2023-05-07 15:48:26 +02:00
|
|
|
|
|
|
|
class QWidget;
|
|
|
|
|
|
|
|
namespace ConfigurationShared {
|
2023-05-07 19:28:52 +02:00
|
|
|
using TranslationMap = std::map<u32, std::pair<QString, QString>>;
|
2023-05-19 04:17:36 +02:00
|
|
|
using ComboboxTranslations = std::vector<std::pair<u32, QString>>;
|
|
|
|
using ComboboxTranslationMap = std::map<std::type_index, ComboboxTranslations>;
|
2023-05-07 15:48:26 +02:00
|
|
|
|
|
|
|
std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
|
|
|
|
|
2023-05-19 04:17:36 +02:00
|
|
|
std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent);
|
2023-05-07 15:48:26 +02:00
|
|
|
|
|
|
|
} // namespace ConfigurationShared
|