applets: implement HLE mii selector applet
This commit is contained in:
parent
f903d3161d
commit
041638ea4d
12 changed files with 350 additions and 18 deletions
48
src/citra_qt/applets/mii_selector.h
Normal file
48
src/citra_qt/applets/mii_selector.h
Normal file
|
@ -0,0 +1,48 @@
|
|||
// 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 QDialogButtonBox;
|
||||
class QComboBox;
|
||||
class QVBoxLayout;
|
||||
class QtMiiSelector;
|
||||
|
||||
class QtMiiSelectorDialog final : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QtMiiSelectorDialog(QWidget* parent, QtMiiSelector* mii_selector_);
|
||||
|
||||
private:
|
||||
void ShowNoMiis();
|
||||
|
||||
QDialogButtonBox* buttons;
|
||||
QComboBox* combobox;
|
||||
QVBoxLayout* layout;
|
||||
QtMiiSelector* mii_selector;
|
||||
u32 return_code = 0;
|
||||
std::unordered_map<int, HLE::Applets::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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue