From 666893b1facfbc748de760e6aeb6bc26bd3797f3 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Tue, 5 Nov 2013 18:03:05 +0100 Subject: qt: keep a list of requested payments Keep a list of requested payments in the Receive tab so that a user can recall previously created requests after closing their windows. Currently this list is not stored between bitcoin-qt sessions. This can be implemented later, but it is not clear where it should be stored as I don't think it belongs in the wallet (maybe in QSettings?) --- src/qt/forms/receivecoinsdialog.ui | 214 +++++++++++++++++++++++++---------- src/qt/forms/receiverequestdialog.ui | 7 -- 2 files changed, 152 insertions(+), 69 deletions(-) (limited to 'src/qt/forms') diff --git a/src/qt/forms/receivecoinsdialog.ui b/src/qt/forms/receivecoinsdialog.ui index 6d1a72ecd2..e7138f5371 100644 --- a/src/qt/forms/receivecoinsdialog.ui +++ b/src/qt/forms/receivecoinsdialog.ui @@ -7,35 +7,60 @@ 0 0 776 - 343 + 364 - - + + + + Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before. + - &Amount: + R&euse an existing receiving address (not recommended) + + + + + + + + + + + + + + &Message: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - reqAmount + reqMessage - - - - - 80 - 0 - + + + + The label to associate with the new receiving address + + + + - The amount to request + The message to attach to payment request + + + + + + + Use this form to request payments. All fields are optional. @@ -52,72 +77,34 @@ - - - - The label to associate with the receiving address - - - - + - &Message: + &Amount: Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - reqMessage - - - - - - - The message to attach to payment request + reqAmount - - - - + + + + + 80 + 0 + - - - - - Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before. - - - R&euse an existing receiving address (not recommended) - - - - - - - Use this form to request payments. All fields are optional. + The amount to request - - - - Qt::Vertical - - - - 20 - 40 - - - - @@ -178,6 +165,98 @@ + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 0 + 0 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + 75 + true + + + + Previously requested payments + + + + + + + + + + + + Show the selected request (does the same as double clicking an entry) + + + Show + + + + :/icons/edit:/icons/edit + + + + + + + Remove the selected entries from the list + + + Remove + + + + :/icons/remove:/icons/remove + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + @@ -187,6 +266,17 @@
bitcoinamountfield.h
+ + reqLabel + reqAmount + reqMessage + reuseAddress + clearButton + receiveButton + recentRequestsView + showRequestButton + removeRequestButton + diff --git a/src/qt/forms/receiverequestdialog.ui b/src/qt/forms/receiverequestdialog.ui index c9cb3de69f..85928c9be5 100644 --- a/src/qt/forms/receiverequestdialog.ui +++ b/src/qt/forms/receiverequestdialog.ui @@ -83,13 +83,6 @@ - - - - &Copy Image - - - -- cgit v1.2.3