diff --git a/src/wizard/createwalletseed.cpp b/src/wizard/createwalletseed.cpp index 05bc9b4..1375529 100644 --- a/src/wizard/createwalletseed.cpp +++ b/src/wizard/createwalletseed.cpp @@ -6,6 +6,7 @@ #include "ui_createwalletseed.h" #include +#include CreateWalletSeedPage::CreateWalletSeedPage(AppContext *ctx, QWidget *parent) : QWizardPage(parent), @@ -19,7 +20,9 @@ CreateWalletSeedPage::CreateWalletSeedPage(AppContext *ctx, QWidget *parent) : this->registerField("mnemonicSeed", ui->hiddenMnemonicSeed); ui->hiddenMnemonicSeed->hide(); - ui->seed->setFont(Utils::relativeFont(1)); + ui->seedWord2->setHelpText("In addition to the private spend key, Tevador's 14 word seed scheme also encodes the " + "restore date, cryptocurrency type, and reserves a few bits for future use. " + "The second word is static because the reserved bits remain the same for each seed generation."); connect(ui->btnRoulette, &QPushButton::clicked, [=]{ this->seedRoulette(0); @@ -45,7 +48,22 @@ void CreateWalletSeedPage::seedRoulette(int count) { } void CreateWalletSeedPage::displaySeed(const QString &seed){ - ui->seed->setPlainText(seed); + QStringList seedSplit = seed.split(" "); + + ui->seedWord1->setText(seedSplit[0]); + ui->seedWord2->setText(seedSplit[1]); + ui->seedWord3->setText(seedSplit[2]); + ui->seedWord4->setText(seedSplit[3]); + ui->seedWord5->setText(seedSplit[4]); + ui->seedWord6->setText(seedSplit[5]); + ui->seedWord7->setText(seedSplit[6]); + ui->seedWord8->setText(seedSplit[7]); + ui->seedWord9->setText(seedSplit[8]); + ui->seedWord10->setText(seedSplit[9]); + ui->seedWord11->setText(seedSplit[10]); + ui->seedWord12->setText(seedSplit[11]); + ui->seedWord13->setText(seedSplit[12]); + ui->seedWord14->setText(seedSplit[13]); } int CreateWalletSeedPage::nextId() const { @@ -55,6 +73,16 @@ int CreateWalletSeedPage::nextId() const { bool CreateWalletSeedPage::validatePage() { if(m_mnemonic.isEmpty()) return false; if(!m_restoreHeight) return false; + + QMessageBox seedWarning(this); + seedWarning.setWindowTitle("Warning!"); + seedWarning.setText("• Never disclose your seed\n" + "• Never type it on a website\n" + "• Store it safely (offline)\n" + "• Do not lose your seed!"); + seedWarning.addButton("I understand", QMessageBox::AcceptRole); + seedWarning.exec(); + this->setField("mnemonicSeed", m_mnemonic); this->setField("restoreHeight", m_restoreHeight); emit createWallet(); diff --git a/src/wizard/createwalletseed.ui b/src/wizard/createwalletseed.ui index b5a7453..ec98325 100644 --- a/src/wizard/createwalletseed.ui +++ b/src/wizard/createwalletseed.ui @@ -6,8 +6,8 @@ 0 0 - 438 - 444 + 775 + 571 @@ -15,26 +15,457 @@ - - - - 16777215 - 90 - - - - Qt::NoFocus - - - QFrame::Box - - - QFrame::Plain - - - true - - + + + + + 1 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 2 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 3 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 4 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + + + + + 5 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 6 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 7 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 8 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + + + + + 9 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 10 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 11 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 12 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + + + + + + + 13 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + 14 + + + + 5 + + + 6 + + + 5 + + + 5 + + + + + TextLabel + + + + + + + + + + + + + + + + + + + + + + + Qt::Vertical + + + QSizePolicy::Expanding + + + + 20 + 0 + + + + + + + + Qt::NoFocus + + + Generate + + + + + + + + @@ -58,16 +489,6 @@ - - - - Qt::NoFocus - - - Generate - - - @@ -86,29 +507,6 @@ - - - - - 75 - true - - - - WARNING: - - - - - - - <html><head/><body><style>p{margin:0}</style><p>• Never disclose your seed.</p><p>• Never type it on a website.</p><p>• Store it safely (offline).</p><p>• <b>Do not lose your seed!</b></p></body></html> - - - true - - - @@ -124,6 +522,13 @@ + + + HelpLabel + QLabel +
components.h
+
+