mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-01 14:20:08 +01:00
50 lines
968 B
C++
50 lines
968 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
#include "util/types.hpp"
|
|
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
|
|
constexpr auto UI_SKY_NUM = 4;
|
|
|
|
class skylander_creator_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit skylander_creator_dialog(QWidget* parent);
|
|
QString get_file_path() const;
|
|
|
|
protected:
|
|
QString file_path;
|
|
};
|
|
|
|
class skylander_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit skylander_dialog(QWidget* parent);
|
|
~skylander_dialog();
|
|
static skylander_dialog* get_dlg(QWidget* parent);
|
|
|
|
skylander_dialog(skylander_dialog const&) = delete;
|
|
void operator=(skylander_dialog const&) = delete;
|
|
|
|
protected:
|
|
void clear_skylander(u8 slot);
|
|
void create_skylander(u8 slot);
|
|
void load_skylander(u8 slot);
|
|
void load_skylander_path(u8 slot, const QString& path);
|
|
|
|
void update_edits();
|
|
|
|
protected:
|
|
QLineEdit* edit_skylanders[UI_SKY_NUM]{};
|
|
static std::optional<std::tuple<u8, u16, u16>> sky_slots[UI_SKY_NUM];
|
|
|
|
private:
|
|
static skylander_dialog* inst;
|
|
};
|