aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsdialog.cpp
AgeCommit message (Collapse)Author
2014-02-09Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron
in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
2014-01-29qt: Fix tab order in send and receive tabWladimir J. van der Laan
2014-01-29[Qt] extend validate line edit and btc address validatorPhilip Kaufmann
- remove btc address length from address validator - add an optional btc address check in validated line edit that defaults to off and is used in GUIUtil::setupAddressWidget() - an isAcceptable() check is added to validated line edit on focus out which only kicks in, when a validator is used with that widget - remove an isAcceptable() check from sendcoinsentry.cpp - remove obsolete attributes from ui files, which are set by calling GUIUtil::setupAddressWidget() - move some more things to GUIUtil::setupAddressWidget() and remove them from normal code e.g. placeholder text
2014-01-27[Qt] Fix coin control labels updateCozz Lovan
2013-12-20[Qt] coin control change address handling updatePhilip Kaufmann
- re-work change address handling so that default is CNoDestination(), until a verified and known change address was entered (easier code flow) - add a missing NULL pointer check for adresstablemodel - add a missing text when opening coin control address selection for priority and ensure the label is black - add a missing . at the end of a sentence
2013-12-16qt: status WalletModel::Aborted is no longer usedWladimir J. van der Laan
Aborting transactions happens in the GUI now as it should, not the backend.
2013-12-11[Qt] fix possibilty to delete last sendcoins entryPhilip Kaufmann
- hide the entry about to be deleted, and if it is the last entry add a new one, so that we always have one entry in our list
2013-12-04qt: use deleteLater to remove send entriesWladimir J. van der Laan
Use deleteLater() instead of delete, as it is not allowed to delete widgets directly in an event handler. Should solve the MacOSX random crashes on send with coincontrol.
2013-12-02[Qt] coin-control features GUI cleanup 2Philip Kaufmann
- remove monospace labels from sendcoinsdialog also - use a validated line edit for the change address - add a tooltip to change address switch - ensure we have a valid change address in CoinControlDialog::coinControl->destChange or just CNoDestination() - some small ui file changes
2013-11-24[Qt] allow deletion of payment-requests in sendcoinsPhilip Kaufmann
- this adds a delete button for insecure and secure payment requests in the sendcoins dialog - it also enables the delete button even for single and empty entries, as this is much easier to handle and doesn't need to special case single entries - big parts of the ui file were changed, because I copied the delete button and had to delete the layout too and created it from scratch (which seems to cleanup the rows and colums in the layout also, which is nice IMHO)
2013-11-22Merge pull request #3273Wladimir J. van der Laan
fb0507f qt: show all units in send confirmation (Wladimir J. van der Laan)
2013-11-18Coincontrol cleanup (e.g. add missing license)Philip Kaufmann
- add missing license headers - make compatible with Qt5 - enforce header cleanup style - small code style cleanups - rename Coin Control dialog into Coin Control Address Selection - use default font for the windows labels (no monospace)
2013-11-17qt: show all units in send confirmationWladimir J. van der Laan
Make users accustomed to the other subdivision units (mBTC, muBTC) by showing the total amount in all units in the confirmation dialog. This was recently raised on the mailing list and could be a preparation for switching over the default unit eventually.
2013-11-14Coin Control FeaturesCozz Lovan
2013-11-10Cleanup code using forward declarations.Brandon Dahler
Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
2013-11-06Merge pull request #3145Wladimir J. van der Laan
395d0d5 rework an ugly hack in processPaymentRequest() (Philip Kaufmann) 952d2cd make processPaymentRequest() use a single SendCoinsRecipient (Philip Kaufmann) 983cef4 payment-request UI: use SendCoinsRecipient.message for memo (Philip Kaufmann) c6c97e0 [Qt] Rework of payment request UI (mainly for insecure pr) (Philip Kaufmann)
2013-11-04qt: add license header to source filesWladimir J. van der Laan
Closes #839
2013-10-31[Qt] Rework of payment request UI (mainly for insecure pr)Philip Kaufmann
- this shows insecure (unsecured) payment requests in a new yellowish colored UI (based on the secure payment request UI) instead of our normal payment UI - allows us to receive paymentACK messages for insecure payment requests - allows us to handle expirations for insecure payment request - changed walletmodel, so that all types of payment requests don't touch the addressbook
2013-10-30[Qt] sendcoinsdialog: convert QMessageBox usage to message()Philip Kaufmann
- add new processSendCoinsReturn() function, which parses the status of WalletModel::SendCoinsReturn and generates a pair consisting of a message and message flags - result is we only need one emit message() call - this change ensures that the GUI is shown for warnings/errors in sendcoinsdialog, because of message() taking care of that for modal messages - changes 2 warning message into error messages and removed "Error:" in front of the actual error message string
2013-10-26[Qt] additional small fixes for #3099 (new receive flow)Philip Kaufmann
- remove 2 unneeded windowTitle attributes, which bloat our translations - cleanup some unneeded .cpp/.h includes and class usages - use a more generic string for clearing sendcoinsdialog and requestpaymentdialog - edit 2 strings in BitcoinGUI and replace "edit" with "show" as this seems more clear in the context where it is used
2013-10-11sendcoinsdialog: display real failed address stringPhilip Kaufmann
- display the real string (faulty address), which causes the valid address check to fail, instead of a stringified "nonsense" CBitcoinAddress
2013-10-01Bitcoin-Qt: translation fixes in sendcoinsPhilip Kaufmann
- remove some unneeded translatable strings from sendcoinsentry.ui file and rename some elements for better readability - optimize string prorcessing in SendCoinsDialog::on_sendButton_clicked() - make all UI labels for secure payments plain text and move the settings to sendcoinsentry.ui file - remove unneeded button and default button definiton from warning message boxes - remove fixed font-size when sending coins to an address with label and use monospace font for addresses
2013-08-31qt: Display txfee in first sendCoinsDialog message boxJonas Schnelli
Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
2013-08-30qt: Use GUIUtil::HtmlEscape to escape HTMLWladimir J. van der Laan
This is why we created this function. Avoids some #ifdef.
2013-08-29Bitcoin-Qt: fixes for using display unit from optionsPhilip Kaufmann
- extend PaymentServer with setOptionsModel() and rework initNetManager() to make use of that - fix all other places in the code to use display unit from options and no hard-coded unit
2013-08-23Bitcoin-Qt: extend some checks for valid model pointersPhilip Kaufmann
2013-08-22Payment Protocol: X509-validated payment requestsGavin Andresen
Add support for a Payment Protocol to Bitcoin-Qt. Payment messages are protocol-buffer encoded and communicated over http(s), so this adds a dependency on the Google protocol buffer library, and requires Qt with OpenSSL support.
2013-06-01Qt5 compatibilityWladimir J. van der Laan
This commit squashes all the changes in the Qt5 branch relative to master. Backward compatibility with Qt4 is retained. Original authors: - Philip Kaufmann <phil.kaufmann@t-online.de> - Jonas Schnelli <jonas.schnelli@include7.ch>
2013-04-02Bitcoin-Qt: only use qApp for Q(Core)Application::instance()Philip Kaufmann
2013-03-18Bitcoin-Qt: add "send coins" to context menu in addressbookPhilip Kaufmann
- allows to directly select an address from the addressbook, chose "send coins" from the context menu, which sends you to sendcoins tab and fills in the selected address
2013-03-17Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann
- try to enforce the same style to all Qt related files - remove unneeded includes from the files - add missing Q_OBJECT, QT_BEGIN_NAMESPACE / QT_END_NAMESPACE - prepares for a pull-req to include Qt5 compatibility
2012-10-25fix some double-spaces in stringsPhilip Kaufmann
- remove some unneeded stuff in sendcoinsentry.ui - harmonize some "Error:"-messages
2012-09-21enhance Qt5 compatibilityPhilip Kaufmann
- replace Q_WS_MAC (not supported anymore in Qt5) with Q_OS_MAC (supported in Qt4/5)
2012-08-07Fix Qt test cases by moving address checks to parseBitcoinURIMatt Corallo
Makes sense in case bitcoin URIs eventually allow invalid addresses as a part of some larger future payment scheme.
2012-07-26TypoMichael Ford
2012-06-17add the slot updateDisplayUnit() to overviewpage, sendcoinsdialog, ↵Philip Kaufmann
sendcoinsentry and connect it to displayUnitChanged() - this ensures all fields in the GUI, who use a display unit are imediately updated, when the user changes this setting in the optionsdialog / ensure used fields init with the current set display unit
2012-06-14URI-handling code update: added safety checks and tray-notificationsPhilip Kaufmann
2012-05-25Added 'immature balance' for miners. Only displayed if the balance is ↵sje397
greater than zero. This adds a field labelled 'Immature' in the overview section under the 'unconfirmed' field, which shows mined income that has not yet matured (which is currently not displayed anywhere, even though the transactions exist in the transaction list). To do that I added a 'GetImmatureBalance' method to the wallet, and connected that through to the GUI as per the 'GetBalance' and 'GetUnconfirmedBalance' methods. I did a small 'no-op' change to make the code in adjacent functions a little more readable (imo); it was a change I had made in my repo earlier...but I thought it wouldn't hurt so left it in. Immature balance comes from mined income that is at least two blocks deep in the chain (same logic as displayed transactions). My reasoning is: - as a miner, it's a critical stat I want to see - as a miner, and taking into account the label 'immature', the uncertainty is pretty clearly implied - those numbers are already displayed in the transaction list - this makes the overview numbers add up to what's in the transaction list - it's not displayed if the immature balance is 0, so won't bother non-miners I also 'cleaned' the overview UI a little, moving code to the XML and removing HTML.
2012-05-13update some strings used as warning messages in sendcoinsdialog.cppPhilip Kaufmann
2012-04-15fix warnings: enumeration values 'XX' not handled in switch [-Wswitch-enum]Wladimir J. van der Laan
2012-04-06Bugfix: Replace "URL" with "URI" where we aren't actually working with URLsLuke Dashjr
2012-02-17Restructure IPC URL handling (fixes #851)Wladimir J. van der Laan
2012-01-05Add support for opening bitcoin: URIs directly.Matt Corallo
2012-01-05Automatically refocus on new SendCoinsEntrys and scroll to them.Matt Corallo
2011-12-21Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan
This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
2011-12-20Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr
2011-11-08Add robustness against null modelsWladimir J. van der Laan
2011-10-09Improved Mac experience; QDoubleSpinBox for BitcoinAmountFieldp2k
Now it can't be told if this is was a Windows App before. All Mac design principles are fulfilled and some cosmetics have been applied to suit the native look and feel. The biggest change there is the proper use of the Dock icon which takes the role of the Tray icon on Mac. The QDoubleSpinBox improves entering of Bitcoin amounts, no two separate fields are required anymore. All functionality and validation effects have been retained; pressing the comma key will be internally translated to a period to keep it consistent throughout the application and eases entering in countries which use the comma as decimal separator. Additionally, Notificator now supports Growl, Mac's native notification system. This is provided via Apple Script in order to avoid linking to Growl on compile time. Other changes involve encapsulation of Toolbar and Menubar creation, loading of Qt's own translation and some clean up.
2011-09-27Send Coins page not cleared when changing tabs. Clear all button for ↵Janne Pulkkinen
clearing the entries
2011-09-22show balance in sendcoins screen (issue #24)Wladimir J. van der Laan