mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-05 14:33:59 +01:00
defeather
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_CREATEWALLET_H
|
||||
#define FEATHER_CREATEWALLET_H
|
||||
#ifndef WOWLET_CREATEWALLET_H
|
||||
#define WOWLET_CREATEWALLET_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
@@ -35,4 +35,4 @@ private:
|
||||
bool validateWidgets();
|
||||
};
|
||||
|
||||
#endif //FEATHER_CREATEWALLET_H
|
||||
#endif //WOWLET_CREATEWALLET_H
|
||||
|
||||
@@ -51,7 +51,7 @@ void CreateWalletSeedPage::seedRoulette(int count) {
|
||||
}
|
||||
|
||||
void CreateWalletSeedPage::generateSeed() {
|
||||
FeatherSeed seed = FeatherSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage);
|
||||
WowletSeed seed = WowletSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage);
|
||||
m_mnemonic = seed.mnemonic.join(" ");
|
||||
m_restoreHeight = seed.restoreHeight;
|
||||
this->displaySeed(m_mnemonic);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_CREATEWALLETSEED_H
|
||||
#define FEATHER_CREATEWALLETSEED_H
|
||||
#ifndef WOWLET_CREATEWALLETSEED_H
|
||||
#define WOWLET_CREATEWALLETSEED_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
@@ -47,4 +47,4 @@ private:
|
||||
int m_rouletteSpin = 15;
|
||||
};
|
||||
|
||||
#endif //FEATHER_CREATEWALLETSEED_H
|
||||
#endif //WOWLET_CREATEWALLETSEED_H
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_WIZARDMENU_H
|
||||
#define FEATHER_WIZARDMENU_H
|
||||
#ifndef WOWLET_WIZARDMENU_H
|
||||
#define WOWLET_WIZARDMENU_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
@@ -30,4 +30,4 @@ private:
|
||||
Ui::MenuPage *ui;
|
||||
};
|
||||
|
||||
#endif //FEATHER_WIZARDMENU_H
|
||||
#endif //WOWLET_WIZARDMENU_H
|
||||
|
||||
@@ -16,8 +16,8 @@ NetworkPage::NetworkPage(AppContext *ctx, QWidget *parent) :
|
||||
ui->customFrame->hide();
|
||||
|
||||
QPixmap p(":assets/images/wowlet.png");
|
||||
ui->featherImage->setText("");
|
||||
ui->featherImage->setPixmap(p.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
ui->wowletImage->setText("");
|
||||
ui->wowletImage->setPixmap(p.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
ui->label_eg->setText("Examples:\n- http://127.0.0.1:34568\n- my.node.com\n- my.node.com:34568\n- user:pass@my.node.com:34568");
|
||||
|
||||
auto nodeSourceUInt = config()->get(Config::nodeSource).toUInt();
|
||||
@@ -59,7 +59,7 @@ bool NetworkPage::validatePage() {
|
||||
auto nodeText = ui->lineEdit_customNode->text().trimmed();
|
||||
if(!nodeText.isEmpty()) {
|
||||
auto customNodes = m_ctx->nodes->customNodes();
|
||||
auto node = FeatherNode(nodeText);
|
||||
auto node = WowletNode(nodeText);
|
||||
customNodes.append(node);
|
||||
m_ctx->setCustomNodes(customNodes);
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_WIZARDNETWORK_H
|
||||
#define FEATHER_WIZARDNETWORK_H
|
||||
#ifndef WOWLET_WIZARDNETWORK_H
|
||||
#define WOWLET_WIZARDNETWORK_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
@@ -30,4 +30,4 @@ private:
|
||||
Ui::NetworkPage *ui;
|
||||
};
|
||||
|
||||
#endif //FEATHER_WIZARDNETWORK_H
|
||||
#endif //WOWLET_WIZARDNETWORK_H
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="featherImage">
|
||||
<widget class="QLabel" name="wowletImage">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>128</width>
|
||||
@@ -204,7 +204,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Automatically connect to a remote node, hosted by the feather team and various trusted Wownero community members. These nodes are provided as "best effort".</string>
|
||||
<string>Automatically connect to a remote node, hosted by the wowlet team and various trusted Wownero community members. These nodes are provided as "best effort".</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_OPENWALLET_H
|
||||
#define FEATHER_OPENWALLET_H
|
||||
#ifndef WOWLET_OPENWALLET_H
|
||||
#define WOWLET_OPENWALLET_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
@@ -38,4 +38,4 @@ private:
|
||||
QStandardItemModel *m_model;
|
||||
};
|
||||
|
||||
#endif //FEATHER_OPENWALLET_H
|
||||
#endif //WOWLET_OPENWALLET_H
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <monero_seed/wordlist.hpp> // tevador 14 word
|
||||
#include "utils/FeatherSeed.h"
|
||||
#include "utils/WowletSeed.h"
|
||||
|
||||
RestorePage::RestorePage(AppContext *ctx, QWidget *parent) :
|
||||
QWizardPage(parent),
|
||||
@@ -21,7 +21,7 @@ RestorePage::RestorePage(AppContext *ctx, QWidget *parent) :
|
||||
ui->restoreFrame->hide();
|
||||
ui->label_errorString->hide();
|
||||
|
||||
QFont f("feather");
|
||||
QFont f("wowlet");
|
||||
f.setStyleHint(QFont::Monospace);
|
||||
|
||||
auto data = Utils::fileOpen(":/assets/mnemonic_25_english.txt");
|
||||
@@ -150,7 +150,7 @@ bool RestorePage::validatePage() {
|
||||
}
|
||||
}
|
||||
|
||||
auto _seed = FeatherSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage, seedSplit);
|
||||
auto _seed = WowletSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage, seedSplit);
|
||||
if (!_seed.errorString.isEmpty()) {
|
||||
QMessageBox::warning(this, "Invalid seed", QString("Invalid seed:\n\n%1").arg(_seed.errorString));
|
||||
ui->seedEdit->setStyleSheet(errStyle);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_WIZARDRESTORE_H
|
||||
#define FEATHER_WIZARDRESTORE_H
|
||||
#ifndef WOWLET_WIZARDRESTORE_H
|
||||
#define WOWLET_WIZARDRESTORE_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
|
||||
@@ -15,7 +15,7 @@ ViewOnlyPage::ViewOnlyPage(AppContext *ctx, QWidget *parent) :
|
||||
this->setTitle("Import view only wallet");
|
||||
ui->label_errorString->hide();
|
||||
|
||||
QFont f("feather");
|
||||
QFont f("wowlet");
|
||||
f.setStyleHint(QFont::Monospace);
|
||||
|
||||
auto *viewOnlyViewKeyDummy = new QLineEdit(this);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
// Copyright (c) 2020-2021, The Monero Project.
|
||||
|
||||
#ifndef FEATHER_WIZARDVIEWONLY_H
|
||||
#define FEATHER_WIZARDVIEWONLY_H
|
||||
#ifndef WOWLET_WIZARDVIEWONLY_H
|
||||
#define WOWLET_WIZARDVIEWONLY_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QWizardPage>
|
||||
|
||||
@@ -81,7 +81,7 @@ void WalletWizard::createWallet() {
|
||||
return;
|
||||
}
|
||||
|
||||
auto seed = FeatherSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage, mnemonicSeed.split(" "));
|
||||
auto seed = WowletSeed(m_ctx->restoreHeights[m_ctx->networkType], m_ctx->coinName, m_ctx->seedLanguage, mnemonicSeed.split(" "));
|
||||
|
||||
if(restoreHeight > 0)
|
||||
seed.setRestoreHeight(restoreHeight);
|
||||
|
||||
Reference in New Issue
Block a user