mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
fae5ca39ad
Restricts the headers to the cpp file where they're needed and prevents the headers from "leaking" into other translation units.
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <array>
|
|
|
|
#include <QDialog>
|
|
#include <QWidget>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class QCheckBox;
|
|
class QGroupBox;
|
|
class QLineEdit;
|
|
class QVBoxLayout;
|
|
|
|
namespace Core
|
|
{
|
|
enum class State;
|
|
}
|
|
|
|
class InfinityBaseWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit InfinityBaseWindow(QWidget* parent = nullptr);
|
|
~InfinityBaseWindow() override;
|
|
|
|
protected:
|
|
std::array<QLineEdit*, 7> m_edit_figures;
|
|
|
|
private:
|
|
void CreateMainWindow();
|
|
void AddFigureSlot(QVBoxLayout* vbox_group, QString name, u8 slot);
|
|
void OnEmulationStateChanged(Core::State state);
|
|
void EmulateBase(bool emulate);
|
|
void ClearFigure(u8 slot);
|
|
void LoadFigure(u8 slot);
|
|
void CreateFigure(u8 slot);
|
|
void LoadFigurePath(u8 slot, const QString& path);
|
|
|
|
QCheckBox* m_checkbox;
|
|
QGroupBox* m_group_figures;
|
|
};
|
|
|
|
class CreateFigureDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CreateFigureDialog(QWidget* parent, u8 slot);
|
|
QString GetFilePath() const;
|
|
|
|
protected:
|
|
QString m_file_path;
|
|
};
|