dash/src/qt
2023-04-15 12:12:30 -05:00
..
android
forms Merge #14879: qt: Add warning messages to the debug window 2023-04-06 20:14:58 +03:00
locale chore: Translations 2023-02 (#5208) 2023-04-09 21:45:33 -05:00
res Merge #14879: qt: Add warning messages to the debug window 2023-04-06 20:14:58 +03:00
test merge bitcoin#17905: Avoid redundant tx status updates 2023-04-15 12:12:30 -05:00
addressbookpage.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
addressbookpage.h
addresstablemodel.cpp merge bitcoin#20480: Replace boost::variant with std::variant 2022-10-20 16:08:45 -05:00
addresstablemodel.h
appearancewidget.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
appearancewidget.h chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
askpassphrasedialog.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
askpassphrasedialog.h merge bitcoin#15450: Create wallet menu option 2022-04-06 13:49:58 +05:30
bantablemodel.cpp Merge #18036: gui: Break trivial circular dependencies 2022-10-16 13:06:40 -05:00
bantablemodel.h Merge #18036: gui: Break trivial circular dependencies 2022-10-16 13:06:40 -05:00
bitcoin.cpp merge bitcoin#17905: Avoid redundant tx status updates 2023-04-15 12:12:30 -05:00
bitcoin.h trivial: revert dashification of header guards 2022-08-09 14:16:29 +05:30
bitcoinaddressvalidator.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
bitcoinaddressvalidator.h
bitcoinamountfield.cpp Merge #14608: qt: Remove the "Pay only required fee..." checkbox 2022-05-30 01:11:05 -04:00
bitcoinamountfield.h Merge #14608: qt: Remove the "Pay only required fee..." checkbox 2022-05-30 01:11:05 -04:00
bitcoingui.cpp fix(qt): Overview page should always be accessible (#5221) 2023-02-27 11:50:02 -06:00
bitcoingui.h revert: revert bitcoin#15454 (Remove the automatic creation and loading of the default wallet) 2022-12-04 18:02:40 -06:00
bitcoinunits.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
bitcoinunits.h chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
clientmodel.cpp merge bitcoin#19132: lock cs_main, m_cached_tip_mutex in that order 2023-04-15 12:12:30 -05:00
clientmodel.h merge bitcoin#17993: Balance/TxStatus polling update based on last block hash 2023-04-15 12:12:30 -05:00
coincontroldialog.cpp partial bitcoin#17938: Disallow automatic conversion between disparate hash types 2023-04-15 12:12:30 -05:00
coincontroldialog.h
coincontroltreewidget.cpp
coincontroltreewidget.h
createwalletdialog.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
createwalletdialog.h Merge #16822: gui: Create wallet menu option follow-ups 2022-04-11 09:40:27 -07:00
csvmodelwriter.cpp
csvmodelwriter.h
dash_locale.qrc
dash.qrc
dashstrings.cpp chore: Translations 2023-02 (#5208) 2023-04-09 21:45:33 -05:00
editaddressdialog.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
editaddressdialog.h
governancelist.cpp fix(governance): use weighted mn count (#5299) 2023-04-06 09:19:32 -05:00
governancelist.h chore: add missing copyrights via copyright_header.py insert 2023-01-13 00:49:04 +03:00
guiconstants.h chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
guiutil.cpp merge bitcoin#21016: remove boost::thread_group usage 2023-01-19 03:42:51 +00:00
guiutil.h Merge #17826: qt: Log Qt related info 2022-06-17 04:06:49 +07:00
intro.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
intro.h
macdockiconhandler.h
macdockiconhandler.mm
macnotificationhandler.h
macnotificationhandler.mm
macos_appnap.h
macos_appnap.mm
main.cpp trivial: revert dashification of source and header filenames 2022-08-09 14:16:29 +05:30
masternodelist.cpp fix(qt): should use weighted mn count when calculating payments in Masternodes tab (#5287) 2023-04-05 14:19:55 -05:00
masternodelist.h feat(qt): add MN type to MN tab (#5201) 2023-02-15 22:59:54 +02:00
modaloverlay.cpp Merge #15084: gui: don't disable the sync overlay when wallet is disabled 2022-06-18 17:19:47 +05:30
modaloverlay.h Merge #15084: gui: don't disable the sync overlay when wallet is disabled 2022-06-18 17:19:47 +05:30
networkstyle.cpp chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
networkstyle.h chore: run copyright_header.py update 2023-01-13 00:49:04 +03:00
notificator.cpp
notificator.h partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
openuridialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
openuridialog.h merge #17165: Remove BIP70 support (#4023) 2022-04-25 12:01:47 +03:00
optionsdialog.cpp refactor: implement c++23 inspired ToUnderlying (#5210) 2023-02-20 13:12:12 +03:00
optionsdialog.h merge bitcoin#21328: pass uint16 CService::port as uint16 2022-11-01 00:28:53 -05:00
optionsmodel.cpp merge bitcoin#18134: Replace std::to_string with locale-independent alternative 2023-01-02 14:19:33 -06:00
optionsmodel.h merge bitcoin#19314: Use uint16_t instead of unsigned short 2022-10-20 16:08:45 -05:00
overviewpage.cpp Merge #14879: qt: Add warning messages to the debug window 2023-04-06 20:14:58 +03:00
overviewpage.h
paymentserver.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
paymentserver.h partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
peertablemodel.cpp Merge #18060: gui: Drop PeerTableModel dependency to ClientModel 2022-10-16 13:06:40 -05:00
peertablemodel.h Merge #18060: gui: Drop PeerTableModel dependency to ClientModel 2022-10-16 13:06:40 -05:00
qrdialog.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
qrdialog.h refactor(qt): Reuse QRImageWidget in QRDialog (#4853) 2022-06-11 12:18:01 +03:00
qrimagewidget.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
qrimagewidget.h
qvalidatedlineedit.cpp
qvalidatedlineedit.h
qvaluecombobox.cpp
qvaluecombobox.h
README.md merge #17165: Remove BIP70 support (#4023) 2022-04-25 12:01:47 +03:00
receivecoinsdialog.cpp qt: adds more setPlaceholderText by form .ui instead code aproach 2022-05-30 19:09:39 +07:00
receivecoinsdialog.h
receiverequestdialog.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
receiverequestdialog.h
recentrequeststablemodel.cpp Merge #17634: qt: Fix comparison function signature 2022-06-16 01:34:38 -04:00
recentrequeststablemodel.h Merge #17634: qt: Fix comparison function signature 2022-06-16 01:34:38 -04:00
rpcconsole.cpp Merge #14879: qt: Add warning messages to the debug window 2023-04-06 20:14:58 +03:00
rpcconsole.h Merge #14879: qt: Add warning messages to the debug window 2023-04-06 20:14:58 +03:00
sendcoinsdialog.cpp Merge #18115: wallet: Pass in transactions and messages for signing instead of exporting the private keys 2023-03-19 11:08:31 -05:00
sendcoinsdialog.h Merge #16944: gui: create PSBT with watch-only wallet 2023-02-04 10:02:37 -06:00
sendcoinsentry.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
sendcoinsentry.h
signverifymessagedialog.cpp Merge #18115: wallet: Pass in transactions and messages for signing instead of exporting the private keys 2023-03-19 11:08:31 -05:00
signverifymessagedialog.h
splashscreen.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
splashscreen.h merge #19099: refactor: Move wallet methods out of chain.h and node.h 2022-06-21 19:08:57 +05:30
trafficgraphdata.cpp chore: add missing copyrights via copyright_header.py insert 2023-01-13 00:49:04 +03:00
trafficgraphdata.h chore: add missing copyrights via copyright_header.py insert 2023-01-13 00:49:04 +03:00
trafficgraphwidget.cpp
trafficgraphwidget.h
transactiondesc.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
transactiondesc.h
transactiondescdialog.cpp
transactiondescdialog.h
transactionfilterproxy.cpp
transactionfilterproxy.h
transactionrecord.cpp merge bitcoin-gui#8: Fix regression in TransactionTableModel 2023-04-15 12:12:30 -05:00
transactionrecord.h merge bitcoin#17993: Balance/TxStatus polling update based on last block hash 2023-04-15 12:12:30 -05:00
transactiontablemodel.cpp qt: source TransactionTable block height from wallet interface 2023-04-15 12:12:30 -05:00
transactiontablemodel.h
transactionview.cpp feat(qt): Let users resend stuck txes one by one via context menu (#4861) 2022-06-08 00:07:27 +03:00
transactionview.h feat(qt): Let users resend stuck txes one by one via context menu (#4861) 2022-06-08 00:07:27 +03:00
utilitydialog.cpp Merge #18036: gui: Break trivial circular dependencies 2022-10-16 13:06:40 -05:00
utilitydialog.h Merge #18036: gui: Break trivial circular dependencies 2022-10-16 13:06:40 -05:00
walletcontroller.cpp merge bitcoin#17905: Avoid redundant tx status updates 2023-04-15 12:12:30 -05:00
walletcontroller.h merge bitcoin#17905: Avoid redundant tx status updates 2023-04-15 12:12:30 -05:00
walletframe.cpp fix(qt): Overview page should always be accessible (#5221) 2023-02-27 11:50:02 -06:00
walletframe.h fix(qt): Overview page should always be accessible (#5221) 2023-02-27 11:50:02 -06:00
walletmodel.cpp merge bitcoin-gui#8: Fix regression in TransactionTableModel 2023-04-15 12:12:30 -05:00
walletmodel.h merge bitcoin-gui#8: Fix regression in TransactionTableModel 2023-04-15 12:12:30 -05:00
walletmodeltransaction.cpp fix(qt): Ignore change output in reassignAmounts (#5182) 2023-02-09 03:19:49 +03:00
walletmodeltransaction.h fix(qt): Ignore change output in reassignAmounts (#5182) 2023-02-09 03:19:49 +03:00
walletview.cpp partial bitcoin#18587: Avoid wallet tryGetBalances calls in WalletModel::pollBalanceChanged 2023-04-15 12:12:30 -05:00
walletview.h Merge #18062: gui: Fix unintialized WalletView::progressDialog 2022-10-16 13:06:40 -05:00
winshutdownmonitor.cpp
winshutdownmonitor.h

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 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)