File size: 980 Bytes
034d0a2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | // Copyright 2018 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <QDialog>
#include "core/frontend/applets/mii_selector.h"
class QComboBox;
class QDialogButtonBox;
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;
std::vector<Mii::MiiData> miis;
friend class QtMiiSelector;
};
class QtMiiSelector final : public QObject, public Frontend::MiiSelector {
Q_OBJECT
public:
explicit QtMiiSelector(QWidget& parent);
void Setup(const Frontend::MiiSelectorConfig& config) override;
private:
Q_INVOKABLE void OpenDialog();
QWidget& parent;
friend class QtMiiSelectorDialog;
};
|