dash/src/qt
Dzutte 4b603e64e4
Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343)
* Merge #13743: refactor: Replace boost::bind with std::bind

cb53b825c2 scripted-diff: Replace boost::bind with std::bind (Chun Kuan Lee)
2196c51821 refactor: Use boost::scoped_connection in signal/slot, also prefer range-based loop instead of std::transform (Chun Kuan Lee)

Pull request description:

  Replace boost::bind with std::bind

  - In `src/rpc/server.cpp`, replace `std::transform` with simple loop.
  - In `src/validation.cpp`, store the `boost::signals2::connection` object and use it to disconnect.
  - In `src/validationinterface.cpp`, use 2 map to store the `boost::signals2::scoped_connection` object.

Tree-SHA512: 6653cbe00036fecfc495340618efcba6d7be0227c752b37b81a27184433330f817e8de9257774e9b35828026cb55f11ee7f17d6c388aebe22c4a3df13b5092f0

* Replace boost::bind with std::bind and remove Boost.Bind includes

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
2021-08-17 23:31:09 +03:00
..
android Merge bitcoin/bitcoin#22078: Add src/qt/android/.gitignore 2021-07-15 16:01:43 -05:00
forms qt: Add chainlock info (#4252) 2021-08-10 22:41:00 +03:00
locale 80%+: ar, bg, de, es, fr, it, ja, ko, nl, pl, pt, ro, sk, th, tr, vi, zh_CN, zh_TW (#4169) 2021-05-25 00:45:15 +02:00
res Partial Merge #14831: Scripts and tools: Use #!/usr/bin/env bash instead of #!/bin/bash. 2021-08-15 11:08:08 -04:00
test Merge #13954: Warn (don't fail!) on spelling errors. Fix typos reported by codespell. 2021-07-19 12:51:24 -05:00
addressbookpage.cpp bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
addressbookpage.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
addresstablemodel.cpp Merge #13769: Mark single-argument constructors "explicit" 2021-08-03 13:34:34 -03:00
addresstablemodel.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
appearancewidget.cpp merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
appearancewidget.h qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
askpassphrasedialog.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
askpassphrasedialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bantablemodel.cpp Merge #15109: refactor: Use C++11 default member initializers 2021-08-10 22:20:30 -03:00
bantablemodel.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bitcoinaddressvalidator.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
bitcoinaddressvalidator.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bitcoinamountfield.cpp bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bitcoinamountfield.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bitcoingui.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
bitcoingui.h Merge #14784: qt: Use WalletModel* instead of the wallet name as map key 2021-07-30 11:17:14 -04:00
bitcoinunits.cpp Merge #13264: [qt] Satoshi unit 2021-07-06 19:50:27 +03:00
bitcoinunits.h Merge #17869: refactor: Remove unused defines in qt/bitcoinunits.h 2021-07-15 11:07:35 -05:00
callback.h
clientmodel.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
clientmodel.h Merge #14208: [build] Actually remove ENABLE_WALLET 2021-08-12 12:17:26 -06:00
coincontroldialog.cpp Merge pull request #4203 from UdjinM6/pr4196 2021-07-17 02:37:07 +03:00
coincontroldialog.h Merge #18578: gui: Fix leak in CoinControlDialog::updateView 2021-07-15 13:26:07 -05:00
coincontroltreewidget.cpp
coincontroltreewidget.h
csvmodelwriter.cpp
csvmodelwriter.h
dash_locale.qrc
dash.cpp Merge #14783: gui: Fix boost::signals2::no_slots_error in early calls to InitWarning 2021-08-03 10:36:15 -04:00
dash.qrc Merge #11491: [gui] Add proxy icon in statusbar 2021-07-06 19:50:27 +03:00
dashstrings.cpp qt: Transaltions202105 (#4137) 2021-05-12 00:56:24 +02:00
editaddressdialog.cpp Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
editaddressdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
guiconstants.h Fix more spelling errors 2021-07-19 12:52:03 -05:00
guiutil.cpp Fix more spelling errors 2021-07-19 12:52:03 -05:00
guiutil.h Fix more spelling errors 2021-07-19 12:52:03 -05:00
intro.cpp Merge #16971: qt: Change default size of intro frame 2021-07-13 13:14:02 -05:00
intro.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
macdockiconhandler.h
macdockiconhandler.mm Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
macnotificationhandler.h Merge #14214: convert C-style (void) parameter lists to C++ style () 2021-07-12 11:50:33 -04:00
macnotificationhandler.mm Merge #14975: qt: Refactoring with QString::toNSString() 2021-07-08 11:57:14 -05:00
macos_appnap.h
macos_appnap.mm
masternodelist.cpp qt: Masternode Tab should work with nowallet (#4318) 2021-08-10 22:37:06 +03:00
masternodelist.h merge bitcoin#14555: Move util files to directory 2021-06-27 12:03:13 +05:30
modaloverlay.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
modaloverlay.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
networkstyle.cpp Remove/fix unused variables 2021-07-13 19:43:30 +03:00
networkstyle.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
notificator.cpp Merge #20496: build: Drop unneeded macOS framework dependencies 2021-07-16 10:04:09 -05:00
notificator.h Merge #15007: qt: Notificator class refactoring 2021-06-28 13:40:51 -05:00
openuridialog.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
openuridialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
optionsdialog.cpp Merge #14228: Qt: Enable system tray icon by default if available 2021-08-10 20:24:28 -04:00
optionsdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
optionsmodel.cpp qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
optionsmodel.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
overviewpage.cpp Use one global string for "CoinJoin" in gui related stuff (#4117) 2021-07-11 12:28:50 +03:00
overviewpage.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
paymentrequest.proto
paymentrequestplus.cpp Merge #14207: doc: -help-debug implies -help 2021-07-12 11:50:33 -04:00
paymentrequestplus.h Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
paymentserver.cpp Merge #17031: gui: Prevent processing duplicate payment requests 2021-07-13 13:14:04 -05:00
paymentserver.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
peertablemodel.cpp Merge #15109: refactor: Use C++11 default member initializers 2021-08-10 22:20:30 -03:00
peertablemodel.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
qrdialog.cpp Remove direct bitcoin calls from qt/optionsmodel.cpp 2020-10-03 21:36:27 +02:00
qrdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
qvalidatedlineedit.cpp
qvalidatedlineedit.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
qvaluecombobox.cpp
qvaluecombobox.h
README.md Merge #14428: docs: Fix macOS files description in qt/README.md 2021-07-22 16:03:06 -04:00
receivecoinsdialog.cpp Merge bitcoin-core/gui#39: Add visual accenting for the 'Create new receiving address' button 2021-07-15 19:30:07 -05:00
receivecoinsdialog.h Merge bitcoin-core/gui#39: Add visual accenting for the 'Create new receiving address' button 2021-07-15 19:30:07 -05:00
receiverequestdialog.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
receiverequestdialog.h Merge #12610: Multiwallet for the GUI 2020-07-20 10:09:19 -05:00
recentrequeststablemodel.cpp Merge #15109: refactor: Use C++11 default member initializers 2021-08-10 22:20:30 -03:00
recentrequeststablemodel.h Merge #15109: refactor: Use C++11 default member initializers 2021-08-10 22:20:30 -03:00
rpcconsole.cpp qt: Add chainlock info (#4252) 2021-08-10 22:41:00 +03:00
rpcconsole.h qt: Add chainlock info (#4252) 2021-08-10 22:41:00 +03:00
sendcoinsdialog.cpp Merge #13249: Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2021-07-19 17:11:18 -05:00
sendcoinsdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
sendcoinsentry.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
sendcoinsentry.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
signverifymessagedialog.cpp Merge #13235: Break circular dependency: init -> * -> init by extracting shutdown.h 2021-07-02 00:42:18 +03:00
signverifymessagedialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
splashscreen.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
splashscreen.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
trafficgraphdata.cpp qt: Lower the number of data samples in TrafficGraphData to make it move much smoother (#3841) 2020-12-05 21:01:22 +00:00
trafficgraphdata.h qt: Finetune RPCConsole (#3720) 2020-09-21 14:22:04 +03:00
trafficgraphwidget.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
trafficgraphwidget.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
transactiondesc.cpp Merge #14554: qt: Remove unused adjustedTime parameter 2021-07-28 12:08:07 -04:00
transactiondesc.h Merge #14554: qt: Remove unused adjustedTime parameter 2021-07-28 12:08:07 -04:00
transactiondescdialog.cpp qt: Make sure font size in TransactionDescDialog is adjusted properly (#3707) 2020-09-16 12:14:09 +03:00
transactiondescdialog.h
transactionfilterproxy.cpp qt: Finetune OverviewPage (#3715) 2020-09-25 19:04:53 +03:00
transactionfilterproxy.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
transactionrecord.cpp Merge #14554: qt: Remove unused adjustedTime parameter 2021-07-28 12:08:07 -04:00
transactionrecord.h Merge #14554: qt: Remove unused adjustedTime parameter 2021-07-28 12:08:07 -04:00
transactiontablemodel.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
transactiontablemodel.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
transactionview.cpp Merge #14177: qt: Set C locale for amountWidget 2021-07-17 14:20:19 -05:00
transactionview.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
utilitydialog.cpp Merge #14521: qt, docs: Fix bitcoin-qt -version output formatting 2021-07-30 11:17:14 -04:00
utilitydialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
walletframe.cpp qt: Masternode Tab should work with nowallet (#4318) 2021-08-10 22:37:06 +03:00
walletframe.h qt: Masternode Tab should work with nowallet (#4318) 2021-08-10 22:37:06 +03:00
walletmodel.cpp Backports v0.18: PR 13743: refactor: Replace boost::bind with std::bind (#4343) 2021-08-17 23:31:09 +03:00
walletmodel.h Merge #15109: refactor: Use C++11 default member initializers 2021-08-10 22:20:30 -03:00
walletmodeltransaction.cpp Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
walletmodeltransaction.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
walletview.cpp Merge #16135: gui: Set progressDialog to nullptr 2021-07-12 17:11:12 -05:00
walletview.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
winshutdownmonitor.cpp Merge #13235: Break circular dependency: init -> * -> init by extracting shutdown.h 2021-07-02 00:42:18 +03:00
winshutdownmonitor.h Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00

This directory contains the DashQT graphical user interface (GUI). It uses the cross-platform framework Qt.

The current precise version for Qt 5 is specified in qt.mk. Qt 4 is not supported.

Compile and run

See build instructions (macOS, Windows, Unix, etc).

To run:

./src/qt/dash-qt

Files and directories

forms

Contains Designer UI files. They are created with Qt Creator, but can be edited using any text editor.

locale

Contains translations. They are periodically updated. The process is described here.

res

Resources such as the icon.

test

Tests.

bitcoingui.(h/cpp)

Represents the main window of the Dash UI.

*model.(h/cpp)

The model. When it has a corresponding controller, it generally inherits from QAbstractTableModel. Models that are used by controllers as helpers inherit from other Qt classes like QValidator.

ClientModel is used by the main application bitcoingui and several models like peertablemodel.

*page.(h/cpp)

A controller. :NAMEpage.cpp generally includes :NAMEmodel.h and forms/:NAME.page.ui with a similar :NAME.

*dialog.(h/cpp)

Various dialogs, e.g. to open a URL. Inherit from QDialog.

paymentserver.(h/cpp)

Used to process BIP21 and BIP70 (see https://github.com/bitcoin/bitcoin/pull/11622) payment URI / requests. Also handles URI based application switching (e.g. when following a dash:... link from a browser).

walletview.(h/cpp)

Represents the view to a single wallet.

Other .h/cpp files

  • UI elements like BitcoinAmountField, which inherit from QWidget.
  • bitcoinstrings.cpp: automatically generated
  • bitcoinunits.(h/cpp): BTC / mBTC / etc handling
  • callback.h
  • guiconstants.h: UI colors, app name, etc
  • guiutil.h: several helper functions
  • macdockiconhandler.(h/mm): macOS dock icon handler
  • macnotificationhandler.(h/mm): display notifications in macOS

Contribute

See CONTRIBUTING.md for general guidelines. Specifically for Qt:

Using Qt Creator as IDE

You can use Qt Creator as an IDE. This is especially useful if you want to change the UI layout.

Download and install the community edition of Qt Creator. Uncheck everything except Qt Creator during the installation process.

Instructions for macOS:

  1. Make sure you installed everything through Homebrew mentioned in the macOS build instructions
  2. Use ./configure with the --enable-debug flag
  3. In Qt Creator do "New Project" -> Import Project -> Import Existing Project
  4. Enter "dash-qt" as project name, enter src/qt as location
  5. Leave the file selection as it is
  6. Confirm the "summary page"
  7. In the "Projects" tab select "Manage Kits..."
  8. Select the default "Desktop" kit and select "Clang (x86 64bit in /usr/bin)" as compiler
  9. Select LLDB as debugger (you might need to set the path to your installation)
  10. Start debugging with Qt Creator (you might need to the executable to "dash-qt" under "Run", which is where you can also add command line arguments)