mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
ac825855f7
Stops them breaking in Qt 6.6.
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
#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 SettingsWindow;
|
|
|
|
class MemoryCardSettingsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MemoryCardSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
|
~MemoryCardSettingsWidget();
|
|
|
|
private:
|
|
SettingsWindow* m_dialog;
|
|
|
|
struct PortSettingsUI
|
|
{
|
|
QGroupBox* container;
|
|
QVBoxLayout* layout;
|
|
QComboBox* memory_card_type;
|
|
QLineEdit* memory_card_path;
|
|
};
|
|
|
|
void createUi(SettingsWindow* dialog);
|
|
void createPortSettingsUi(SettingsWindow* dialog, int index, PortSettingsUI* ui);
|
|
void onBrowseMemoryCardPathClicked(int index);
|
|
void onResetMemoryCardPathClicked(int index);
|
|
void onMemoryCardPathChanged(int index);
|
|
void updateMemoryCardPath(int index);
|
|
|
|
std::array<PortSettingsUI, 2> m_port_ui = {};
|
|
QLineEdit* m_memory_card_directory = nullptr;
|
|
};
|