2019-02-09 17:00:57 +01:00
|
|
|
// Copyright 2018 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <QDialog>
|
|
|
|
#include "core/frontend/applets/mii_selector.h"
|
|
|
|
|
|
|
|
class QComboBox;
|
2019-02-15 19:20:06 +01:00
|
|
|
class QDialogButtonBox;
|
2019-02-09 17:00:57 +01:00
|
|
|
class QVBoxLayout;
|
|
|
|
class QtMiiSelector;
|
|
|
|
|
|
|
|
class QtMiiSelectorDialog final : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_selector_);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QDialogButtonBox* buttons;
|
|
|
|
QComboBox* combobox;
|
|
|
|
QVBoxLayout* layout;
|
|
|
|
QtMiiSelector* mii_selector;
|
|
|
|
u32 return_code = 0;
|
2019-02-15 19:20:06 +01:00
|
|
|
std::vector<HLE::Applets::MiiData> miis;
|
2019-02-09 17:00:57 +01:00
|
|
|
|
|
|
|
friend class QtMiiSelector;
|
|
|
|
};
|
|
|
|
|
|
|
|
class QtMiiSelector final : public QObject, public Frontend::MiiSelector {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit QtMiiSelector(QWidget& parent);
|
2019-02-15 19:20:06 +01:00
|
|
|
void Setup(const Frontend::MiiSelectorConfig& config) override;
|
2019-02-09 17:00:57 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Q_INVOKABLE void OpenDialog();
|
|
|
|
|
|
|
|
QWidget& parent;
|
|
|
|
|
|
|
|
friend class QtMiiSelectorDialog;
|
|
|
|
};
|