dash/src/qt
2023-01-02 14:19:33 -06:00
..
android
forms feat(qt): Make wallet repair options only available when there is a single loaded wallet only 2022-07-03 11:01:19 +03:00
locale Merge pull request #4478 from kittywhiskers/undashify 2022-08-11 12:34:55 -04:00
res Merge #20223: build: Drop the leading 0 from the version number 2022-04-28 13:47:53 +03:00
test refactor: create context for LLMQ subsystem within NodeContext, alias entangled globals (#5030) 2022-11-07 21:09:44 +03: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 partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
appearancewidget.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
askpassphrasedialog.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
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 trivial: revert dashification of source and header filenames 2022-08-09 14:16:29 +05:30
bitcoin.h trivial: revert dashification of header guards 2022-08-09 14:16:29 +05:30
bitcoinaddressvalidator.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +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 revert: revert bitcoin#15454 (Remove the automatic creation and loading of the default wallet) 2022-12-04 18:02:40 -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: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
clientmodel.cpp refactor: migrate globals to managed pointers in preparation for deglobalization (#4930) 2022-08-26 16:52:53 -05:00
clientmodel.h refactor: migrate globals to managed pointers in preparation for deglobalization (#4930) 2022-08-26 16:52:53 -05:00
coincontroldialog.cpp merge bitcoin#20480: Replace boost::variant with std::variant 2022-10-20 16:08:45 -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 merge bitcoin#21694: Use XLIFF file to provide more context to Transifex translators 2022-06-11 21:03:04 +05:30
editaddressdialog.cpp chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
editaddressdialog.h
governancelist.cpp refactor: migrate globals to managed pointers in preparation for deglobalization (#4930) 2022-08-26 16:52:53 -05:00
governancelist.h refactor: resolve cppcheck warnings (#4799) 2022-04-25 12:34:05 +03:00
guiconstants.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +03:00
guiutil.cpp revert: revert bitcoin#15454 (Remove the automatic creation and loading of the default wallet) 2022-12-04 18:02:40 -06: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 qt: adds more setPlaceholderText by form .ui instead code aproach 2022-05-30 19:09:39 +07:00
masternodelist.h
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 merge bitcoin#20429: replace (sizeof(a)/sizeof(a[0])) with C++17 std::size 2022-11-01 00:28:53 -05:00
networkstyle.h chore: bump copyrights (#4873) 2022-06-08 02:36:46 +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 Merge #17754: net: Don't allow resolving of std::string with embedded NUL characters. Add tests. 2022-10-03 16:08:31 -04: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 #13966: gui: When private key is disabled, only show watch-only balance 2022-05-23 02:15:51 -04: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 bitcoin#20452: Replace use of locale dependent atoi(…) with locale-independent std::from_chars(…) 2023-01-02 14:19:33 -06:00
rpcconsole.h chore(qt): 19671 follow-up: drop zapwallettxes from gui (#4841) 2022-05-18 23:28:49 +03:00
sendcoinsdialog.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
sendcoinsdialog.h Merge #15886: qt, wallet: Revamp SendConfirmationDialog 2022-06-17 04:06:49 +07: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 bitcoin#20480: Replace boost::variant with std::variant 2022-10-20 16:08:45 -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
trafficgraphdata.h
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#20480: Replace boost::variant with std::variant 2022-10-20 16:08:45 -05:00
transactionrecord.h
transactiontablemodel.cpp Merge #15098: qt: Show addresses for "SendToSelf" transactions 2022-06-18 17:19:46 +05:30
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#19619: Remove wallet.dat path handling from wallet.cpp, rpcwallet.cpp 2022-10-17 08:03:10 +05:30
walletcontroller.h merge bitcoin#16923: Handle duplicate fileid exception 2022-05-13 18:04:31 +05:30
walletframe.cpp revert: revert bitcoin#15454 (Remove the automatic creation and loading of the default wallet) 2022-12-04 18:02:40 -06:00
walletframe.h merge bitcoin#16963: Fix unique_ptr usage in boost::signals2 2022-05-13 18:06:06 +05:30
walletmodel.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
walletmodel.h partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
walletmodeltransaction.cpp partial revert dash#2911: s/dash-config/bitcoin-config/g 2022-08-09 14:16:28 +05:30
walletmodeltransaction.h
walletview.cpp Merge #17937: gui: Remove WalletView and BitcoinGUI circular dependency 2022-10-16 13:06:40 -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)