2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Copyright (c) 2020, The Monero Project.
|
|
|
|
|
|
|
|
#ifndef FEATHER_WIZARDRESTORE_H
|
|
|
|
#define FEATHER_WIZARDRESTORE_H
|
|
|
|
|
|
|
|
#include <QtCore>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QWizardPage>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QTextEdit>
|
|
|
|
#include <QCompleter>
|
|
|
|
|
|
|
|
#include "utils/textedit.h"
|
|
|
|
#include "appcontext.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class RestorePage;
|
|
|
|
}
|
|
|
|
|
|
|
|
class RestorePage : public QWizardPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit RestorePage(AppContext *ctx, QWidget *parent = nullptr);
|
|
|
|
bool validatePage() override;
|
2020-12-25 15:28:50 +00:00
|
|
|
void initializePage() override;
|
2020-10-07 10:36:04 +00:00
|
|
|
int nextId() const override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
AppContext *m_ctx;
|
|
|
|
Ui::RestorePage *ui;
|
|
|
|
|
2020-12-24 13:34:37 +00:00
|
|
|
int m_mode = 14;
|
2020-10-07 10:36:04 +00:00
|
|
|
QStringList m_words14;
|
|
|
|
QStringList m_words25;
|
|
|
|
QStringListModel *m_completer14Model = nullptr;
|
|
|
|
QStringListModel *m_completer25Model = nullptr;
|
|
|
|
QCompleter *m_completer14 = nullptr;
|
|
|
|
QCompleter *m_completer25 = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|