aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addresstablemodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Do not shadow in src/qtPavel Janík2016-09-231-6/+6
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* [qt] Use fixed pitch font for the rpc consoleMarcoFalke2015-10-291-1/+1
| | | | | | Also: * Preserve white space * Make fixed font as large as default font
* qt: define QT_NO_KEYWORDSWladimir J. van der Laan2015-07-151-1/+1
| | | | | | | | QT_NO_KEYWORDS prevents Qt from defining the `foreach`, `signals`, `slots` and `emit` macros. Avoid overlap between Qt macros and boost - for example #undef hackiness in #6421.
* Includes: Do not include main.h from any other headerJorge Timón2015-03-241-0/+2
|
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-1/+1
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-3/+3
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* qt: Change serious messages from qDebug to qWarningWladimir J. van der Laan2014-07-011-3/+3
| | | | | By changing the logging stream for warnings from qDebug to qWarning, these will always be logged to debug.log.
* qt: change CT_NOW string to CT_NEW in log messagephilsong2014-03-151-1/+1
| | | | | | | Closes #3852. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 5f2907a, 88d3df4
* qt: add missing cs_wallet lock in AddressTableModel::setDataWladimir J. van der Laan2014-01-061-20/+17
| | | | | duplicate check in AddressTableModel::setData accesses wallet data structure as well as SetAddressBook without proper LOCK, fix this.
* qt: keep a list of requested paymentsWladimir J. van der Laan2013-11-191-1/+1
| | | | | | | | | 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?)
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-1/+1
| | | | | | | | | 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.
* qt: add license header to source filesWladimir J. van der Laan2013-11-041-0/+4
| | | | Closes #839
* Bitcoin-Qt: Use qDebug() for printing to debug.logPhilip Kaufmann2013-09-061-3/+4
| | | | | - removes all usages of PrintDebugStringF from Qt code - ensure same format for all debug.log messages "functionname : Message"
* Merge pull request #2951 from laanwj/2013_08_addressbook_purposeWladimir J. van der Laan2013-09-021-16/+24
|\ | | | | [Qt] Handle address purpose in incremental updates
| * qt: Handle address purpose in incremental updatesWladimir J. van der Laan2013-08-291-16/+24
| | | | | | | | | | | | Correctly use the purpose of addresses that are added after the start of the client. Addresses with purpose "refund" and "change" should not be visible in the GUI. This is now handled correctly.
* | qt: Add comment to sorting step in refreshAddressTableWladimir J. van der Laan2013-08-301-0/+2
|/
* Remove fAllowReuse from GetKeyFromPool.Gregory Maxwell2013-08-231-2/+2
| | | | With the GUI password fix this was always false.
* [QT] Don't ask for a passphrase to getnewaddress.Gregory Maxwell2013-08-231-10/+13
| | | | | | | | | | | | | With an encrypted wallet the GUI was prompting for a passphrase every time the user requested a new address. This is unnecessary, increases the exposure to keyboard sniffers, and discourages using fresh addresses for every transaction. Instead only prompt for a passphrase when the keypool runs out, also call the new address function with the flag that prevents reuse. Thanks to AlexNagy on IRC for pointing this out and who wouldn't take any lip from a curmudgeonly developer and insisted on what he knew to be true.
* Payment Protocol: X509-validated payment requestsGavin Andresen2013-08-221-8/+19
| | | | | | | | 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.
* Refactor: CAddressBookData for mapAddressBookGavin Andresen2013-08-221-4/+4
| | | | | | | | Straight refactor, so mapAddressBook stores a CAddressBookData (which just contains a std::string) instead of a std::string. Preparation for payment protocol work, which will add the notion of refund addresses to the address book.
* Bitcoin-Qt: massive header and cpp cleanupPhilip Kaufmann2013-03-171-1/+1
| | | | | | | - 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
* Bitcoin-Qt: fix known addressbook bugsPhilip Kaufmann2013-01-091-8/+28
| | | | | | | | | | | | | | | | | | | | | | - add qSort() for cachedAddressTable, as qLowerBound() and qUpperBound() require the list to be in ascending order (see http://harmattan-dev.nokia.com/docs/library/html/qt4/qtalgorithms.html#qLowerBound) - add a new check in AddressTableModel::setData() to just return, when no changes were made to a label or an address (prevents entry duplication issue) - remove "rec->label = value.toString();" from AddressTableModel::setData() as the label gets updated by AddressTablePriv::updateEntry() anyway (seems @sipa added this line via https://github.com/bitcoin/bitcoin/commit/1025440184ef100a22d07c7bb543ee45cf169d64#L6R225) - add another new check in AddressTableModel::setData() to just return, if a duplicate address was found (prevents address overwrite) - add a new check to EditAddressDialog::setModel() to prevent setting an invalid model - re-work the switch-case statement in AddressTableModel::accept() to always break (as return get's called anyway) and order the list to match the enum definition - make accept() in editaddressdialog.h a public slot, which it should be - misc small coding style changes
* Refactor: split CKeyID/CScriptID/CTxDestination from CBitcoinAddressPieter Wuille2012-05-241-10/+12
| | | | | | | | | | | | | | | | | This introduces internal types: * CKeyID: reference (hash160) of a key * CScriptID: reference (hash160) of a script * CTxDestination: a boost::variant of the former two CBitcoinAddress is retrofitted to be a Base58 encoding of a CTxDestination. This allows all internal code to only use the internal types, and only have RPC and GUI depend on the base58 code. Furthermore, the header dependencies are a lot saner now. base58.h is at the top (right below rpc and gui) instead of at the bottom. For the rest: wallet -> script -> keystore -> key. Only keystore still requires a forward declaration of CScript. Solving that would require splitting script into two layers.
* Encapsulate public keys in CPubKeyPieter Wuille2012-05-241-1/+1
|
* Process address book updates incrementallyWladimir J. van der Laan2012-05-201-13/+73
| | | | | - No longer invalidates selection model, thus retains selection on address book changes - Fixes selection of new address when added
* Fine-grained UI updatesWladimir J. van der Laan2012-05-201-1/+2
| | | | | | | | | | | | | | | | | | | Gets rid of `MainFrameRepaint` in favor of specific update functions that tell the UI exactly what changed. This improves the efficiency of various handlers. Also fixes problems with mined transactions not showing up until restart. The following notifications were added: - `NotifyBlocksChanged`: Block chain changed - `NotifyKeyStoreStatusChanged`: Wallet status (encrypted, locked) changed. - `NotifyAddressBookChanged`: Address book entry changed. - `NotifyTransactionChanged`: Wallet transaction added, removed or updated. - `NotifyNumConnectionsChanged`: Number of connections changed. - `NotifyAlertChanged`: New, updated or cancelled alert. As this finally makes it possible for the UI to know when a new alert arrived, it can be shown as OS notification. These notifications could also be useful for RPC clients. However, currently, they are ignored in bitcoind (in noui.cpp). Also brings back polling with timer for numBlocks in ClientModel. This value updates so frequently during initial download that the number of signals clogs the UI thread and causes heavy CPU usage. And after initial block download, the value changes so rarely that a delay of half a second until the UI updates is unnoticable.
* Remove headers.hPieter Wuille2012-04-171-1/+1
|
* fix warnings: 'XX' defined as a struct here but previously declared as a ↵Wladimir J. van der Laan2012-04-151-1/+2
| | | | class [-Wmismatched-tags]
* Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-6/+8
|
* Update UI through async calls MainFrameRepaint and AddressBookRepaint ↵Wladimir J. van der Laan2012-04-041-9/+2
| | | | | | | | instead of a timer. - Overall, this is better design - This fixes problems with the address book UI not updating when the address book is changed through RPC - Move Statusbar change detection responsibility to ClientModel
* update to work with new lock system, add protocol.* to build systemWladimir J. van der Laan2011-09-021-9/+13
|
* Wallet encryption part 2: ask passphrase when needed, add menu optionsWladimir J. van der Laan2011-08-311-0/+8
|
* QtUI code cleanup / comment improvementsWladimir J. van der Laan2011-08-081-5/+4
|
* Remove unused variableWladimir J. van der Laan2011-07-301-1/+0
|
* Merge remote branch 'upstream/master'Wladimir J. van der Laan2011-07-261-10/+10
| | | | | Conflicts: src/bitcoinrpc.cpp
* add sendmany supportWladimir J. van der Laan2011-07-161-10/+18
|
* Merge branch 'master' of https://github.com/bitcoin/bitcoinWladimir J. van der Laan2011-07-151-3/+4
|
* Add context menu on transaction list: copy label, copy address, edit label, ↵Wladimir J. van der Laan2011-07-081-0/+30
| | | | show details
* Sync to bitcoin git e94010b2395694d56dd6Wladimir J. van der Laan2011-07-071-5/+11
|
* ui improvements: allow inline editing of labels/addresses in address book ↵Wladimir J. van der Laan2011-07-021-1/+21
| | | | table, better tab order in send dialog, set focus on sending address table when coming from send coins dialog
* Check addresses in address book for validityWladimir J. van der Laan2011-07-021-0/+7
|
* Send: dialog redesign (automatically look up label for entered address)Wladimir J. van der Laan2011-07-021-48/+2
|
* Address book: show unlabeled addresses as (no label)Wladimir J. van der Laan2011-06-301-1/+8
|
* Add "receiving addresses" to toolbarWladimir J. van der Laan2011-06-301-2/+2
|
* update core to d0d80170a2ca73004e08fb85007fe055cbf4e411 (CWallet class)Wladimir J. van der Laan2011-06-261-45/+31
|
* Allow changing default address (fixes issue #6)Wladimir J. van der Laan2011-06-211-2/+44
|