mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-22 09:38:48 +02:00
41 lines
909 B
C++
41 lines
909 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
|
|
|
#ifndef FEATHER_PAGESETRESTOREHEIGHT_H
|
|
#define FEATHER_PAGESETRESTOREHEIGHT_H
|
|
|
|
#include <QWizardPage>
|
|
#include <QWidget>
|
|
|
|
#include "appcontext.h"
|
|
#include "WalletWizard.h"
|
|
|
|
namespace Ui {
|
|
class PageSetRestoreHeight;
|
|
}
|
|
|
|
class PageSetRestoreHeight : public QWizardPage
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PageSetRestoreHeight(WizardFields *fields, QWidget *parent = nullptr);
|
|
void initializePage() override;
|
|
bool validatePage() override;
|
|
int nextId() const override;
|
|
bool isComplete() const override;
|
|
|
|
private slots:
|
|
void onCreationDateEdited();
|
|
void onRestoreHeightEdited();
|
|
|
|
private:
|
|
void showScanWarning(const QDateTime &date);
|
|
void showWalletAgeWarning(const QDateTime &date);
|
|
|
|
Ui::PageSetRestoreHeight *ui;
|
|
WizardFields *m_fields;
|
|
};
|
|
|
|
#endif //FEATHER_PAGESETRESTOREHEIGHT_H
|