mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-28 00:25:41 +00:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#pragma once
|
|
#include "core/types.h"
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
#include <QtWidgets/QWidget>
|
|
#include <array>
|
|
#include <vector>
|
|
|
|
class QtHostInterface;
|
|
class SettingsDialog;
|
|
|
|
class MemoryCardSettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MemoryCardSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
|
~MemoryCardSettingsWidget();
|
|
|
|
private:
|
|
QtHostInterface* m_host_interface;
|
|
|
|
struct PortSettingsUI
|
|
{
|
|
QGroupBox* container;
|
|
QVBoxLayout* layout;
|
|
QComboBox* memory_card_type;
|
|
QLineEdit* memory_card_path;
|
|
};
|
|
|
|
void createUi(SettingsDialog* dialog);
|
|
void createPortSettingsUi(SettingsDialog* dialog, int index, PortSettingsUI* ui);
|
|
void onBrowseMemoryCardPathClicked(int index);
|
|
void onResetMemoryCardPathClicked(int index);
|
|
void onOpenMemCardsDirectoryClicked();
|
|
void onBrowseMemCardsDirectoryClicked();
|
|
void onResetMemCardsDirectoryClicked();
|
|
|
|
std::array<PortSettingsUI, 2> m_port_ui = {};
|
|
QLineEdit* m_memory_card_directory = nullptr;
|
|
};
|