2023-01-24 21:51:02 +00:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-06-08 14:49:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-01-24 21:51:02 +00:00
|
|
|
#include <array>
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QWidget>
|
|
|
|
|
2023-06-08 15:05:24 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2023-01-24 21:51:02 +00:00
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLineEdit;
|
2023-06-08 15:05:24 +00:00
|
|
|
class QVBoxLayout;
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
enum class State;
|
|
|
|
}
|
2023-01-24 21:51:02 +00:00
|
|
|
|
2024-06-26 22:04:27 +00:00
|
|
|
namespace IOS::HLE::USB
|
|
|
|
{
|
|
|
|
enum class FigureUIPosition : u8;
|
|
|
|
}
|
|
|
|
|
2023-01-24 21:51:02 +00:00
|
|
|
class InfinityBaseWindow : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit InfinityBaseWindow(QWidget* parent = nullptr);
|
|
|
|
~InfinityBaseWindow() override;
|
|
|
|
|
|
|
|
protected:
|
2024-05-11 16:10:15 +00:00
|
|
|
std::array<QLineEdit*, 9> m_edit_figures;
|
2023-01-24 21:51:02 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateMainWindow();
|
2024-06-26 22:04:27 +00:00
|
|
|
void AddFigureSlot(QVBoxLayout* vbox_group, QString name, IOS::HLE::USB::FigureUIPosition slot);
|
2023-01-24 21:51:02 +00:00
|
|
|
void OnEmulationStateChanged(Core::State state);
|
|
|
|
void EmulateBase(bool emulate);
|
2024-06-26 22:04:27 +00:00
|
|
|
void ClearFigure(IOS::HLE::USB::FigureUIPosition slot);
|
|
|
|
void LoadFigure(IOS::HLE::USB::FigureUIPosition slot);
|
|
|
|
void CreateFigure(IOS::HLE::USB::FigureUIPosition slot);
|
|
|
|
void LoadFigurePath(IOS::HLE::USB::FigureUIPosition slot, const QString& path);
|
2023-01-24 21:51:02 +00:00
|
|
|
|
|
|
|
QCheckBox* m_checkbox;
|
|
|
|
QGroupBox* m_group_figures;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CreateFigureDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-06-26 22:04:27 +00:00
|
|
|
explicit CreateFigureDialog(QWidget* parent, IOS::HLE::USB::FigureUIPosition slot);
|
2023-01-24 21:51:02 +00:00
|
|
|
QString GetFilePath() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
QString m_file_path;
|
|
|
|
};
|