Wizard: rework

This commit is contained in:
tobtoht
2021-03-12 20:01:53 +01:00
parent cc5b3c3c27
commit 6741e684f5
63 changed files with 2781 additions and 1783 deletions
+41
View File
@@ -0,0 +1,41 @@
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_OPENWALLET_H
#define FEATHER_OPENWALLET_H
#include <QLabel>
#include <QWizardPage>
#include <QWidget>
#include "appcontext.h"
#include "utils/keysfiles.h"
namespace Ui {
class PageOpenWallet;
}
class PageOpenWallet : public QWizardPage
{
Q_OBJECT
public:
explicit PageOpenWallet(AppContext *ctx, WalletKeysFilesModel *wallets, QWidget *parent = nullptr);
void initializePage() override;
bool validatePage() override;
int nextId() const override;
signals:
void openWallet(QString path);
private:
void updatePath();
AppContext *m_ctx;
WalletKeysFilesModel *m_walletKeysFilesModel;
WalletKeysFilesProxyModel *m_keysProxy;
Ui::PageOpenWallet *ui;
QStandardItemModel *m_model;
};
#endif //FEATHER_OPENWALLET_H