2020-10-07 11:36:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 11:36:04 +01:00
|
|
|
|
|
|
|
#ifndef RESTOREDIALOG_H
|
|
|
|
#define RESTOREDIALOG_H
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
#include <QDialog>
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include <QAbstractButton>
|
|
|
|
|
2021-01-20 21:13:51 +00:00
|
|
|
#include "utils/RestoreHeightLookup.h"
|
2020-10-07 11:36:04 +01:00
|
|
|
#include "appcontext.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class RestoreDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class RestoreDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RestoreDialog(AppContext *ctx, QWidget *parent = nullptr);
|
|
|
|
void initRestoreHeights(RestoreHeightLookup *lookup);
|
2020-12-24 13:34:37 +00:00
|
|
|
int getHeight();
|
2020-10-07 11:36:04 +01:00
|
|
|
~RestoreDialog() override;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void accepted();
|
|
|
|
void rejected();
|
|
|
|
|
|
|
|
private:
|
|
|
|
AppContext *m_ctx;
|
|
|
|
Ui::RestoreDialog *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RESTOREDIALOG_H
|