dash/src/qt
xdustinface cee8c151fa scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build
17780d6f35 scripted-diff: Avoid `interface` keyword to fix windows gitian build (Russell Yanofsky)

Pull request description:

  Rename `interface` to `interfaces`

  Build failure reported by ken2812221 in https://github.com/bitcoin/bitcoin/pull/10244#issuecomment-379434756

Tree-SHA512: e02c97c728540f344202c13b036f9f63af23bd25e25ed7a5cfe9e2c2f201a12ff232cc94a93fbe37ef6fb6bf9e036fe62210ba798ecd30de191d09338754a8d0

-BEGIN VERIFY SCRIPT-
git mv src/interface src/interfaces
ren() { git grep -l "$1" | xargs sed -i "s,$1,$2,g"; }
ren interface/            interfaces/
ren interface::           interfaces::
ren BITCOIN_INTERFACE_    BITCOIN_INTERFACES_
ren "namespace interface" "namespace interfaces"
-END VERIFY SCRIPT-
2020-10-14 12:10:12 +01:00
..
forms qt: More asset cleanup (#3735) 2020-09-30 16:08:11 +03:00
locale Translations 2020-09 (#3736) 2020-09-28 21:53:37 +03:00
res qt: More asset cleanup (#3735) 2020-09-30 16:08:11 +03:00
test scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
addressbookpage.cpp Remove direct bitcoin calls from qt/optionsmodel.cpp 2020-10-03 21:36:27 +02:00
addressbookpage.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
addresstablemodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
addresstablemodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
appearancewidget.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
appearancewidget.h qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
askpassphrasedialog.cpp Remove most direct bitcoin calls from qt/walletmodel.cpp 2020-10-05 15:13:31 +02:00
askpassphrasedialog.h
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
bitcoinaddressvalidator.h
bitcoinamountfield.cpp qt: Tweak few strings (#3706) 2020-09-16 12:13:42 +03:00
bitcoinamountfield.h
bitcoingui.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
bitcoingui.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
bitcoinunits.cpp
bitcoinunits.h
callback.h
clientmodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
clientmodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
coincontroldialog.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
coincontroldialog.h qt: Finetune CoinControlDialog + bitcoin#14828 (#3701) 2020-09-23 10:31:50 +03:00
coincontroltreewidget.cpp
coincontroltreewidget.h
csvmodelwriter.cpp
csvmodelwriter.h
dash_locale.qrc
dash.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
dash.qrc qt: More asset cleanup (#3735) 2020-09-30 16:08:11 +03:00
dashstrings.cpp Translations 2020-09 (#3736) 2020-09-28 21:53:37 +03:00
editaddressdialog.cpp Merge #13791: gui: Reject dialogs if key escape is pressed 2020-07-28 21:35:31 -05:00
editaddressdialog.h
guiconstants.h qt: Make sure the statusbar reflects internal states correct (#3698) 2020-09-13 01:48:10 +03:00
guiutil.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
guiutil.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
intro.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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
macnotificationhandler.h
macnotificationhandler.mm scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
macos_appnap.h
macos_appnap.mm
masternodelist.cpp interface/qt: Remove direct src/masterode calls 2020-10-05 15:41:38 +02:00
masternodelist.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
modaloverlay.cpp qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
modaloverlay.h
networkstyle.cpp qt: More asset cleanup (#3735) 2020-09-30 16:08:11 +03:00
networkstyle.h qt: Splashscreen redesign (#3613) 2020-07-28 23:49:17 +03:00
notificator.cpp
notificator.h
openuridialog.cpp
openuridialog.h
optionsdialog.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
optionsdialog.h qt: Fix font size and scaling issues (#3734) 2020-09-29 02:15:20 +03:00
optionsmodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
optionsmodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
overviewpage.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
overviewpage.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
paymentrequest.proto
paymentrequestplus.cpp
paymentrequestplus.h
paymentserver.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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
qvalidatedlineedit.h scripted-diff: Merge #13753: Remove trailing whitespaces 2020-07-28 20:23:12 -05:00
qvaluecombobox.cpp
qvaluecombobox.h
README.md
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
recentrequeststablemodel.cpp Remove direct bitcoin calls from qt transaction table files 2020-10-05 15:13:34 +02:00
recentrequeststablemodel.h Remove direct bitcoin calls from qt transaction table files 2020-10-05 15:13:34 +02:00
rpcconsole.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
rpcconsole.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
sendcoinsdialog.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
sendcoinsdialog.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
sendcoinsentry.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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 qt|privatesend: Remove unused wallet inlcudes 2020-10-05 15:13:34 +02:00
signverifymessagedialog.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
splashscreen.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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
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
transactiondesc.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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 scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
transactionrecord.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
transactiontablemodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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 scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
transactionview.h qt: Finetune TransactionsView (#3710) 2020-09-23 09:33:46 +03:00
utilitydialog.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
utilitydialog.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
walletframe.cpp qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
walletframe.h qt: Drop PlatformStyle (#3573) 2020-07-26 14:20:19 +03:00
walletmodel.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
walletmodel.h scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
walletmodeltransaction.cpp scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01: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 scripted-diff: Merge #12906: Avoid interface keyword to fix windows gitian build 2020-10-14 12:10:12 +01:00
walletview.h qt: Give PrivateSend separate instances of SendCoinsDialog + CCoinControl (#3625) 2020-08-04 14:34:51 +03: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 (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)