2026-03-10 06:51:08 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2026-06-04 05:49:07 +02:00
|
|
|
#pragma once
|
2025-05-10 15:40:15 +00:00
|
|
|
|
|
|
|
|
#include <QHBoxLayout>
|
2026-03-10 06:51:08 +01:00
|
|
|
#include <QMessageBox>
|
2025-05-10 15:40:15 +00:00
|
|
|
#include <QVBoxLayout>
|
2026-03-10 06:51:08 +01:00
|
|
|
#include <QWidget>
|
2025-05-10 15:40:15 +00:00
|
|
|
|
|
|
|
|
class MigrationDialog : public QDialog {
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2026-03-10 06:51:08 +01:00
|
|
|
MigrationDialog(QWidget* parent = nullptr);
|
2025-05-10 15:40:15 +00:00
|
|
|
|
|
|
|
|
virtual ~MigrationDialog();
|
|
|
|
|
|
2026-03-10 06:51:08 +01:00
|
|
|
void setText(const QString& text);
|
|
|
|
|
void addBox(QWidget* box);
|
|
|
|
|
QAbstractButton* addButton(const QString& text, const bool reject = false);
|
2025-05-10 15:40:15 +00:00
|
|
|
|
2026-03-10 06:51:08 +01:00
|
|
|
QAbstractButton* clickedButton() const;
|
2025-05-10 15:40:15 +00:00
|
|
|
|
|
|
|
|
private:
|
2026-03-10 06:51:08 +01:00
|
|
|
QLabel* m_text;
|
|
|
|
|
QVBoxLayout* m_boxes;
|
|
|
|
|
QHBoxLayout* m_buttons;
|
2025-05-10 15:40:15 +00:00
|
|
|
|
2026-03-10 06:51:08 +01:00
|
|
|
QAbstractButton* m_clickedButton;
|
2025-05-10 15:40:15 +00:00
|
|
|
};
|