2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Copyright (c) 2020, The Monero Project.
|
|
|
|
|
|
|
|
#ifndef WALLETWIZARD_H
|
|
|
|
#define WALLETWIZARD_H
|
|
|
|
|
|
|
|
#include <QWizard>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QRadioButton>
|
|
|
|
|
|
|
|
#include "appcontext.h"
|
|
|
|
#include "utils/seeds.h"
|
|
|
|
#include "utils/config.h"
|
|
|
|
|
|
|
|
class WalletWizard : public QWizard
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-10-12 22:01:06 +00:00
|
|
|
enum Page { Page_Menu, Page_CreateWallet, Page_CreateWalletSeed, Page_OpenWallet, Page_Network, Page_Restore, Page_ViewOnly };
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
explicit WalletWizard(AppContext *ctx, WalletWizard::Page startPage = WalletWizard::Page::Page_Menu, QWidget *parent = nullptr);
|
2020-12-25 21:07:48 +00:00
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
signals:
|
|
|
|
void openWallet(QString path, QString password);
|
2020-12-25 21:07:48 +00:00
|
|
|
void defaultWalletDirChanged(QString walletDir);
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
AppContext *m_ctx;
|
2020-12-23 02:57:01 +00:00
|
|
|
WalletKeysFilesModel *m_walletKeysFilesModel;
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
void createWallet();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // WALLETWIZARD_H
|