1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-22 12:14:00 +01:00

Wizard refactoring

This commit is contained in:
Ilya Kitaev 2016-07-21 13:56:17 +03:00
parent ecf844120b
commit e5d5a6082f
11 changed files with 179 additions and 141 deletions

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -542,12 +542,12 @@
<context> <context>
<name>WizardCreateWallet</name> <name>WizardCreateWallet</name>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="81"/> <location filename="../wizard/WizardCreateWallet.qml" line="90"/>
<source>A new wallet has been created for you</source> <source>A new wallet has been created for you</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardCreateWallet.qml" line="82"/> <location filename="../wizard/WizardCreateWallet.qml" line="91"/>
<source>This is the 25 word mnemonic for your wallet</source> <source>This is the 25 word mnemonic for your wallet</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -628,7 +628,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardFinish.qml" line="103"/> <location filename="../wizard/WizardFinish.qml" line="107"/>
<source>Youre all setup!</source> <source>Youre all setup!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -636,17 +636,7 @@
<context> <context>
<name>WizardMain</name> <name>WizardMain</name>
<message> <message>
<location filename="../wizard/WizardMain.qml" line="85"/> <location filename="../wizard/WizardMain.qml" line="308"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="87"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardMain.qml" line="309"/>
<source>USE MONERO</source> <source>USE MONERO</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -708,7 +698,17 @@
<context> <context>
<name>WizardPassword</name> <name>WizardPassword</name>
<message> <message>
<location filename="../wizard/WizardPassword.qml" line="121"/> <location filename="../wizard/WizardPassword.qml" line="51"/>
<source>Now that your wallet has been created, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="53"/>
<source>Now that your wallet has been restored, please set a password for the wallet</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../wizard/WizardPassword.qml" line="135"/>
<source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt; <source>Note that this password cannot be recovered, and if forgotten you will need to restore your wallet from the mnemonic seed you were just given&lt;br/&gt;&lt;br/&gt;
Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source> Your password will be used to protect your wallet and to confirm actions, so make sure that your password is sufficiently secure.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -717,17 +717,17 @@
<context> <context>
<name>WizardRecoveryWallet</name> <name>WizardRecoveryWallet</name>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="69"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="78"/>
<source>My account name</source> <source>My account name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="70"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="79"/>
<source>We&apos;re ready to recover your account</source> <source>We&apos;re ready to recover your account</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../wizard/WizardRecoveryWallet.qml" line="71"/> <location filename="../wizard/WizardRecoveryWallet.qml" line="80"/>
<source>Please enter your 25 word private key</source> <source>Please enter your 25 word private key</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -42,6 +42,10 @@ Item {
//! function called each time we display this page //! function called each time we display this page
function onPageOpened(settingsOblect) {
checkNextButton()
}
function onPageClosed(settingsObject) { function onPageClosed(settingsObject) {
settingsObject['account_name'] = uiItem.accountNameText settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = uiItem.wordsTexttext settingsObject['words'] = uiItem.wordsTexttext
@ -49,6 +53,11 @@ Item {
return true; return true;
} }
function checkNextButton() {
var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" ");
wizard.nextButton.enabled = wordsArray.length === 25;
}
//! function called each time we hide this page //! function called each time we hide this page
// //

View File

@ -54,6 +54,10 @@ Item {
+ buildSettingsString(); + buildSettingsString();
} }
function onPageOpened(settings) {
updateSettingsSummary();
wizard.nextButton.visible = false;
}
Row { Row {

View File

@ -58,7 +58,7 @@ Rectangle {
}; };
} }
print ("switchpage: start: currentPage: ", currentPage); print ("switchpage: currentPage: ", currentPage);
if (currentPage > 0 || currentPage < pages.length - 1) { if (currentPage > 0 || currentPage < pages.length - 1) {
pages[currentPage].opacity = 0 pages[currentPage].opacity = 0
@ -66,40 +66,35 @@ Rectangle {
currentPage += step_value currentPage += step_value
pages[currentPage].opacity = 1; pages[currentPage].opacity = 1;
var nextButtonVisible = pages[currentPage] !== optionsPage;
nextButton.visible = nextButtonVisible;
if (next && typeof pages[currentPage].onPageOpened !== 'undefined') { if (next && typeof pages[currentPage].onPageOpened !== 'undefined') {
pages[currentPage].onPageOpened(settings) pages[currentPage].onPageOpened(settings)
} }
handlePageChanged();
} }
} }
// TODO: remove it
function handlePageChanged() { function handlePageChanged() {
var nextButtonVisible = pages[currentPage] !== optionsPage;
nextButton.visible = nextButtonVisible;
print ("next button visible: " + nextButtonVisible);
switch (pages[currentPage]) {
case passwordPage:
// disable "next" button until passwords match
nextButton.enabled = passwordPage.passwordValid;
if (currentPath === "create_wallet") {
passwordPage.titleText = qsTr("Now that your wallet has been created, please set a password for the wallet") + translationManager.emptyString
} else {
passwordPage.titleText = qsTr("Now that your wallet has been restored, please set a password for the wallet") + translationManager.emptyString
}
break;
case finishPage:
// display settings summary
finishPage.updateSettingsSummary();
nextButton.visible = false;
break;
case recoveryWalletPage:
// TODO: disable "next button" until 25 words private key entered
nextButton.enabled = false
break
default:
nextButton.enabled = true
} // switch (pages[currentPage]) {
//// case finishPage:
//// // display settings summary
//// finishPage.updateSettingsSummary();
//// nextButton.visible = false;
//// break;
// case recoveryWalletPage:
// // disable "next button" until 25 words private key entered
// nextButton.enabled = false
// break
// default:
// nextButton.enabled = true
// }
} }
@ -111,7 +106,9 @@ Rectangle {
pages = paths[currentPath] pages = paths[currentPath]
currentPage = pages.indexOf(createWalletPage) currentPage = pages.indexOf(createWalletPage)
createWalletPage.createWallet(settings) createWalletPage.createWallet(settings)
handlePageChanged() wizard.nextButton.visible = true
createWalletPage.onPageOpened(settings);
} }
@ -122,7 +119,9 @@ Rectangle {
currentPath = "recovery_wallet" currentPath = "recovery_wallet"
pages = paths[currentPath] pages = paths[currentPath]
currentPage = pages.indexOf(recoveryWalletPage) currentPage = pages.indexOf(recoveryWalletPage)
handlePageChanged() wizard.nextButton.visible = true
recoveryWalletPage.onPageOpened(settings);
} }
//! actually writes the wallet //! actually writes the wallet

View File

@ -31,10 +31,10 @@ import "../components"
import "utils.js" as Utils import "utils.js" as Utils
Item { Item {
id: passwordPage
opacity: 0 opacity: 0
visible: false visible: false
property bool passwordValid : passwordItem.password != ''
&& passwordItem.password === retypePasswordItem.password
property alias titleText: titleText.text property alias titleText: titleText.text
Behavior on opacity { Behavior on opacity {
@ -43,6 +43,17 @@ Item {
onOpacityChanged: visible = opacity !== 0 onOpacityChanged: visible = opacity !== 0
function onPageOpened(settingsObject) {
wizard.nextButton.enabled = true
if (wizard.currentPath === "create_wallet") {
passwordPage.titleText = qsTr("Now that your wallet has been created, please set a password for the wallet") + translationManager.emptyString
} else {
passwordPage.titleText = qsTr("Now that your wallet has been restored, please set a password for the wallet") + translationManager.emptyString
}
}
function onPageClosed(settingsObject) { function onPageClosed(settingsObject) {
// TODO: set password on the final page // TODO: set password on the final page
// settingsObject.wallet.setPassword(passwordItem.password) // settingsObject.wallet.setPassword(passwordItem.password)
@ -52,11 +63,14 @@ Item {
function handlePassword() { function handlePassword() {
// allow to forward step only if passwords match // allow to forward step only if passwords match
wizard.nextButton.enabled = passwordItem.password === retypePasswordItem.password wizard.nextButton.enabled = passwordItem.password === retypePasswordItem.password
// scorePassword returns value from 1..100 // scorePassword returns value from 1..100
var strength = Utils.scorePassword(passwordItem.password) var strength = Utils.scorePassword(passwordItem.password)
// privacyLevel component uses 1..13 scale // privacyLevel component uses 1..13 scale
privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength) privacyLevel.fillLevel = Utils.mapScope(1, 100, 1, 13, strength)
} }
@ -155,4 +169,8 @@ Item {
height: 62 height: 62
onChanged: handlePassword() onChanged: handlePassword()
} }
Component.onCompleted: {
console.log
}
} }

View File

@ -41,6 +41,15 @@ Item {
onOpacityChanged: visible = opacity !== 0 onOpacityChanged: visible = opacity !== 0
function onPageOpened(settingsObject) {
checkNextButton();
}
function checkNextButton() {
var wordsArray = cleanWordsInput(uiItem.wordsTextItem.memoText).split(" ");
wizard.nextButton.enabled = wordsArray.length === 25;
}
function onPageClosed(settingsObject) { function onPageClosed(settingsObject) {
settingsObject['account_name'] = uiItem.accountNameText settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = cleanWordsInput(uiItem.wordsTextItem.memoText) settingsObject['words'] = cleanWordsInput(uiItem.wordsTextItem.memoText)
@ -74,8 +83,7 @@ Item {
wordsTextItem.memoTextReadOnly: false wordsTextItem.memoTextReadOnly: false
wordsTextItem.memoText: "" wordsTextItem.memoText: ""
wordsTextItem.onMemoTextChanged: { wordsTextItem.onMemoTextChanged: {
var wordsArray = cleanWordsInput(wordsTextItem.memoText).split(" "); checkNextButton();
wizard.nextButton.enabled = wordsArray.length === 25
} }
} }
} }