Commit Graph

2265 Commits

Author SHA1 Message Date
tomFlowee 88955b7f7b Split Payment.{cpp|h} into different files. 2021-11-23 22:46:28 +01:00
tomFlowee 5758d67e54 Merge branch 'master' into SendPanel 2021-11-23 17:17:43 +01:00
tomFlowee e8c96d7c23 Add selection of inputs and make the UI pretty. 2021-11-23 17:17:40 +01:00
tomFlowee 95d2b7eedc Fix off-by-one 2021-11-23 17:17:36 +01:00
tomFlowee 4c27e134d3 Include fiat-price in the --offline flag 2021-11-23 17:16:45 +01:00
tomFlowee 0b3e8bcd69 Fix sizing 2021-11-23 17:16:20 +01:00
tomFlowee a8034161bd Group outputs together in the payment. 2021-11-23 11:22:04 +01:00
tomFlowee 9a2fe0444c Add most of WalletCoinsModel content. 2021-11-23 11:22:01 +01:00
tomFlowee ad0d675be1 Fix typo 2021-11-23 11:18:47 +01:00
tomFlowee adcded6f47 Download translations from crowdin 2021-11-21 13:23:31 +01:00
tomFlowee 3d722a00b5 Display "Moved" items differently.
Instead of showing the fees only, make the overview show the fees
in the comment and the amount moved in the right column
2021-11-21 13:23:31 +01:00
tomFlowee a5bb96dd74 Be more finegrained in timing
Seems the label "Now" is not accurate enough for most when its almost
half an hour. Have a more reasoable labeling.
2021-11-21 13:23:31 +01:00
tomFlowee fed2479a8a Avoid duplication. 2021-11-21 11:27:26 +01:00
tomFlowee e23f47108d Add comments 2021-11-21 11:16:07 +01:00
tomFlowee f98c9fb4af Image fixes 2021-11-21 10:59:29 +01:00
tomFlowee b69b388d9c Split translations and add proof-of-concept mobile
This alters the build setup to create two executables based on
practically the same CPP static lib but with different QML
dirs and translations.
This also adds a cmake option
    -Dlocal_qml=ON
when passed it will create an executable that will load the QML
from local disk instead of using the compiled-in version.
The main advantage of that is that there is no need to recompile
after each QML change.
2021-11-21 00:35:55 +01:00
tomFlowee 738e0aec97 Simplify and make available --offline
This promotes the `--offline` command line option from being a
debug-build only option to being always compiled in.
This should make it easier to develop in QML.
2021-11-20 22:24:19 +01:00
tomFlowee 4a184fc5c2 Make a static lib pay_lib
To avoid recompiles and such generally to simplify stuff, this
moves all the code into a static lib that is then linked with
by the various apps (including tests).
2021-11-20 22:20:08 +01:00
tomFlowee 45879381fc Avoid locking special case that is Ok. 2021-11-20 18:53:26 +01:00
tomFlowee bb62385c10 When price fetch fails, refetch more agressive. 2021-11-20 18:53:04 +01:00
tomFlowee eb3c3f63db Increase version number 2021.06.1 2021-11-19 14:20:52 +01:00
tomFlowee ddbd66765f Import all official wordlists 2021-11-19 13:45:57 +01:00
tomFlowee d350395898 Fix finding wordlists
Also added other wordlists to the search.
2021-11-19 13:44:54 +01:00
tomFlowee 3ec6467ac5 Fix directory we look for the wordlists. 2021-11-19 13:20:08 +01:00
tomFlowee 8ee147b33f Wallet details; show "change #n" instead of address 2021-11-19 11:54:07 +01:00
tomFlowee 5e2983a584 Update number 2021-11-19 11:23:02 +01:00
tomFlowee 381c475bb4 Start with coin-selector 2021-11-19 11:20:01 +01:00
tomFlowee c6ffb9bd6d Show summary text on the 'destination' groupbox 2021-11-18 17:41:05 +01:00
tomFlowee b7dc14358d [UX] fix focus on groupbox that can't collapse
The only reason we get focus on a groupbox is to allow it to take
'enter' to toggle collapsing, so when we turn this off then we
should not allow the groupbox to get focus.
2021-11-18 14:26:29 +01:00
tomFlowee 2a2954c57b Move most of the payment complexity into cpp
This moves all the checks and UI interactions into the model, making the
QML much lighter and less error-probe.

At the same time this allows us to add new UX features like when a 'max'
button is pressed it live-updates the amounts in the fiat and bch fields
as the user changes any spending in other outputs.
2021-11-18 14:25:47 +01:00
tomFlowee 36b898a40f Fix unsetting max button not updating screen. 2021-11-17 14:24:32 +01:00
tomFlowee 4bac1d7e10 Allow adding/deletion of payment details 2021-11-17 14:24:19 +01:00
tomFlowee 4b9901b64d Merge branch 'master' into SendPanel 2021-11-16 19:15:08 +01:00
tomFlowee 3ca6b667f8 Make the SendTransactionPane mostly functional again.
This is against the new Payment object design.
2021-11-16 19:14:45 +01:00
tomFlowee 157031c535 Work around weird QML behavior 2021-11-16 19:13:54 +01:00
tomFlowee 8d8acf75e5 Fix comment position
When opening the details the comment should not move.
2021-11-16 15:19:25 +01:00
tomFlowee e6ec3e3a33 Show "Moved" when a tx doesn't change the balance 2021-11-16 15:11:47 +01:00
tomFlowee ee50b65e66 Detect CashFusion transactions 2021-11-16 15:08:22 +01:00
tomFlowee 17b9eeac5c Move Wallet::fetchTransactionInfo() to _support
To populate the GUI data-model feels less than core part of the wallet,
so move it out of the wallet.cpp file.
2021-11-16 12:15:07 +01:00
tomFlowee 71229f8f86 Re-imagine the payment workflow
This changes the way the UI is going to have to use the payment object
and therefore this breaks the send transaction GUI.
2021-11-16 11:47:33 +01:00
tomFlowee 818ddbe6c6 Start payment details model
To allow the UI to modify the payment we split it into details. A detail
is, for instance, an output. This allows the user to add multiple
outputs in one payment, and thus one transaction.

Further payment details can be an input selection (to select exactly
which coins need to be spent) and others may be added later.
2021-11-15 16:08:48 +01:00
tomFlowee 256bd2151f Fix install dir 2021-11-10 23:17:32 +01:00
tomFlowee 535240dc40 Fix not showing 'unconfirmed 2021-11-10 23:13:31 +01:00
tomFlowee b36fc3f754 Import crowdin translations. 2021.06.0 2021-11-10 13:05:39 +01:00
tomFlowee 4fbdf6ab4a Fixes in alignment and spacing. 2021-11-10 13:05:07 +01:00
tomFlowee 2533d30dec Fix encoding issues. 2021-11-10 12:45:48 +01:00
tomFlowee 4c34da63b0 Fix spacing issues. 2021-11-10 12:36:12 +01:00
tomFlowee 37dbee130a Follow translations with UI changes 2021-11-10 11:50:03 +01:00
tomFlowee b51d830df0 Don't show scrollbar when there isn't enough content 2021-11-10 11:08:05 +01:00
tomFlowee d7c2a42daf Peer review of GUI texts. 2021-11-10 11:07:00 +01:00