wowlet/src/wizard/createwalletseed.h

49 lines
915 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_CREATEWALLETSEED_H
#define FEATHER_CREATEWALLETSEED_H
#include <QLabel>
#include <QWizardPage>
#include <QWidget>
#include "utils/utils.h"
#include "appcontext.h"
namespace Ui {
class CreateWalletSeedPage;
}
class CreateWalletSeedPage : public QWizardPage
{
Q_OBJECT
public:
explicit CreateWalletSeedPage(AppContext *ctx, QWidget *parent = nullptr);
bool validatePage() override;
int nextId() const override;
public slots:
void displaySeed(const QString &seed);
private:
void seedRoulette(int count);
signals:
void createWallet();
private:
AppContext *m_ctx;
QLabel *topLabel;
Ui::CreateWalletSeedPage *ui;
QString m_mnemonic;
2020-12-24 13:34:37 +00:00
int m_restoreHeight;
bool m_roulette = false;
int m_rouletteSpin = 15;
};
#endif //FEATHER_CREATEWALLETSEED_H