| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <array> |
| 7 |
|
| 8 |
#include <QDialog> |
| 9 |
#include <QWidget> |
| 10 |
|
| 11 |
#include "Common/CommonTypes.h" |
| 12 |
|
| 13 |
class QCheckBox; |
| 14 |
class QGroupBox; |
| 15 |
class QLineEdit; |
| 16 |
class QVBoxLayout; |
| 17 |
|
| 18 |
namespace Core |
| 19 |
{ |
| 20 |
enum class State; |
| 21 |
} |
| 22 |
|
| 23 |
namespace IOS::HLE::USB |
| 24 |
{ |
| 25 |
enum class FigureUIPosition : u8; |
| 26 |
} |
| 27 |
|
| 28 |
class InfinityBaseWindow : public QWidget |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
public: |
| 32 |
explicit InfinityBaseWindow(QWidget* parent = nullptr); |
| 33 |
~InfinityBaseWindow() override; |
| 34 |
|
| 35 |
protected: |
| 36 |
std::array<QLineEdit*, 9> m_edit_figures; |
| 37 |
|
| 38 |
private: |
| 39 |
void CreateMainWindow(); |
| 40 |
void AddFigureSlot(QVBoxLayout* vbox_group, const QString& name, |
| 41 |
IOS::HLE::USB::FigureUIPosition slot); |
| 42 |
void OnEmulationStateChanged(Core::State state); |
| 43 |
void EmulateBase(bool emulate); |
| 44 |
void ClearFigure(IOS::HLE::USB::FigureUIPosition slot); |
| 45 |
void LoadFigure(IOS::HLE::USB::FigureUIPosition slot); |
| 46 |
void CreateFigure(IOS::HLE::USB::FigureUIPosition slot); |
| 47 |
void LoadFigurePath(IOS::HLE::USB::FigureUIPosition slot, const QString& path); |
| 48 |
|
| 49 |
QCheckBox* m_checkbox; |
| 50 |
QGroupBox* m_group_figures; |
| 51 |
}; |
| 52 |
|
| 53 |
class CreateFigureDialog : public QDialog |
| 54 |
{ |
| 55 |
Q_OBJECT |
| 56 |
|
| 57 |
public: |
| 58 |
explicit CreateFigureDialog(QWidget* parent, IOS::HLE::USB::FigureUIPosition slot); |
| 59 |
QString GetFilePath() const; |
| 60 |
|
| 61 |
protected: |
| 62 |
QString m_file_path; |
| 63 |
}; |