dash/src/qt
Wladimir J. van der Laan dc1830a2f0
Merge #10267: New -includeconf argument for including external configuration files
25b7ab9 doc: Add release notes for -includeconf (Karl-Johan Alm)
0f0badd test: Test includeconf parameter. (Karl-Johan Alm)
629ff8c -includeconf=<path> support in config handler, for including external configuration files (Karl-Johan Alm)

Pull request description:

  Fixes: #10071.

  Done:
  - adds `-includeconf=<path>`, where `<path>` is relative to `datadir` or to the path of the file being read, if in a file
  - protects against circular includes
  - updates help docs

  ~~~Thoughts:~~~
  - ~~~I am not sure how to test this in a neat manner. Feedback on this would be nice. Will dig/think though.~~~

Tree-SHA512: cb31f1b2f69fbc0890d264948eb2e501ac05cf12f5e06a5942f9c1539eb15ea8dc3cae817f4073aecb2fcc21d0386747f14f89d990772003a76e2a6d25642553
2021-05-25 14:09:36 +03:00
..
forms qt: Move prune settings and its warning down 2021-04-14 00:56:04 -04: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 qt: Do not use border-image (#4093) 2021-04-11 15:02:10 -04:00
test Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
addressbookpage.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
addressbookpage.h Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
addresstablemodel.cpp Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2021-05-25 14:09:35 +03:00
addresstablemodel.h Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2021-05-25 14:09:35 +03:00
appearancewidget.cpp qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
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 Merge #11480: [ui] Add toggle for unblinding password fields 2020-01-16 09:22:46 -06:00
bantablemodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
bantablemodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
bitcoinaddressvalidator.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
bitcoinaddressvalidator.h qt: Allow and process URIs pasted to the payTo field of SendCoinsEntry (#3475) 2020-05-12 02:33:21 +03:00
bitcoinamountfield.cpp qt: Tweak few strings (#3706) 2020-09-16 12:13:42 +03:00
bitcoinamountfield.h qt: Redesign BitcoinAmountField (#3569) 2020-07-19 19:32:20 +03:00
bitcoingui.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
bitcoingui.h qt: Apply themes globally (#4086) 2021-04-10 16:31:58 -04:00
bitcoinunits.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
bitcoinunits.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
callback.h Merge #10969: Declare single-argument (non-converting) constructors "explicit" 2020-01-10 10:33:57 -06:00
clientmodel.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
clientmodel.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
coincontroldialog.cpp Merge #12909: wallet: Make fee settings to be non-static members 2021-05-23 01:19:33 +03:00
coincontroldialog.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
coincontroltreewidget.cpp Merge #10498: Use static_cast instead of C-style casts for non-fundamental types 2020-06-10 18:32:43 -05:00
coincontroltreewidget.h
csvmodelwriter.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
csvmodelwriter.h
dash_locale.qrc Translations 2020-01 (#3192) 2020-01-17 16:00:53 +01:00
dash.cpp Merge #10267: New -includeconf argument for including external configuration files 2021-05-25 14:09:36 +03:00
dash.qrc qt: More asset cleanup (#3735) 2020-09-30 16:08:11 +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 Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
guiconstants.h qt: Make sure the statusbar reflects internal states correct (#3698) 2020-09-13 01:48:10 +03:00
guiutil.cpp qt: Add QFont::Normal as a supported font weight when no other font weights were found (#4175) 2021-05-24 19:15:20 +03:00
guiutil.h qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
intro.cpp increase BLOCK_CHAIN_SIZE marginally (#4150) 2021-05-12 11:49:12 -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 Backport bitcoin#14123 and bitcoin#16720 (#3463) 2020-04-30 13:28:44 +03:00
macdockiconhandler.mm Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
macnotificationhandler.h Merge #11268: [macOS] remove Growl support, remove unused code 2020-01-10 10:33:55 -06:00
macnotificationhandler.mm scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
macos_appnap.h Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
macos_appnap.mm Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
masternodelist.cpp Extensive include refactoring (#4095) 2021-04-15 23:41:16 -04:00
masternodelist.h Extensive include refactoring (#4095) 2021-04-15 23:41:16 -04:00
modaloverlay.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
modaloverlay.h Merge #9964: Add const to methods that do not modify the object for which it is called 2020-01-02 16:16:55 -06:00
networkstyle.cpp qt: Drop custom migration logic (#4135) 2021-05-05 23:26:02 -04:00
networkstyle.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
notificator.cpp Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included 2020-04-01 12:43:18 -05:00
notificator.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
openuridialog.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
openuridialog.h
optionsdialog.cpp qt: Use themed red for the prune settings warning 2021-04-14 00:56:15 -04:00
optionsdialog.h Merge #13043: [qt] OptionsDialog: add prune setting 2021-04-13 16:11:22 -04:00
optionsmodel.cpp qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
optionsmodel.h Merge #13043: [qt] OptionsDialog: add prune setting 2021-04-13 16:11:22 -04:00
overviewpage.cpp qt: Fix recent txes list not shoing up initially when CJ is disabled (#4136) 2021-05-07 18:41:32 +02:00
overviewpage.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
paymentrequest.proto
paymentrequestplus.cpp Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
paymentrequestplus.h Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
paymentserver.cpp Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
paymentserver.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
peertablemodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
peertablemodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
qrdialog.cpp Remove direct bitcoin calls from qt/optionsmodel.cpp 2020-10-03 21:36:27 +02:00
qrdialog.h Remove direct bitcoin calls from qt/optionsmodel.cpp 2020-10-03 21:36:27 +02:00
qvalidatedlineedit.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvalidatedlineedit.h scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
qvaluecombobox.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvaluecombobox.h
README.md Merge #13141: [doc] qt: fixes broken link on readme 2020-07-21 11:54:50 -05:00
receivecoinsdialog.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
receivecoinsdialog.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03: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 #12780: Reduce variable scopes 2020-10-26 20:35:28 -04:00
recentrequeststablemodel.h Remove direct bitcoin calls from qt transaction table files 2020-10-05 15:13:34 +02:00
rpcconsole.cpp Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2021-05-25 14:09:35 +03:00
rpcconsole.h Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2021-05-25 14:09:35 +03:00
sendcoinsdialog.cpp Merge #12909: wallet: Make fee settings to be non-static members 2021-05-23 01:19:33 +03:00
sendcoinsdialog.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
sendcoinsentry.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
sendcoinsentry.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
signverifymessagedialog.cpp Merge #19687: make EncodeBase{32,64} consume Spans 2021-05-23 10:38:05 +05:30
signverifymessagedialog.h qt: add shortcuts for tabs in more dialogs (#3764) 2020-11-17 22:45:22 +03:00
splashscreen.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
splashscreen.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
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 scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
trafficgraphwidget.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
transactiondesc.cpp Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
transactiondesc.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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 qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
transactionrecord.cpp Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
transactionrecord.h Add/fix/tweak translated strings (#4052) 2021-03-24 13:13:25 +03:00
transactiontablemodel.cpp Add/fix/tweak translated strings (#4052) 2021-03-24 13:13:25 +03:00
transactiontablemodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
transactionview.cpp Add/fix/tweak translated strings (#4052) 2021-03-24 13:13:25 +03:00
transactionview.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
utilitydialog.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
utilitydialog.h Avoid accessing ShutdownRequested directly from qt, use Node interface 2021-03-23 04:37:16 +03:00
walletframe.cpp Merge #13111: Add unloadwallet RPC 2021-04-05 03:31:50 +02:00
walletframe.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
walletmodel.cpp Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +03:00
walletmodel.h Merge #12830: [qt] [tests] Clarify address book error messages, add tests 2021-05-23 01:24:26 +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 Add/fix/tweak translated strings (#4052) 2021-03-24 13:13:25 +03:00
walletview.h refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
winshutdownmonitor.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -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 (OSX, 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/cpp)
  • macdockiconhandler.(h/cpp): display notifications in OSX

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 OSX:

  1. Make sure you installed everything through Homebrew mentioned in the OSX 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)