lbrycrd/src/qt
MarcoFalke a140953907
Merge #13753: scripted-diff: Remove trailing whitespaces
12dd101345 scripted-diff: Remove trailing whitespaces (João Barbosa)

Pull request description:

  The script test/lint/lint-whitespace.sh should prevent new cases.

  This happens in some pulls where the code editor and the author 'git add's them, so this would fix it all.

Tree-SHA512: bcdd3472fcd01a2754e52212c7db1de2fdc422728b06785481954a27162fb72001cb73708329cc56e95bcc5e45c1348ebc4eacc2ccfa6aa12413c7ec450b6a33
2018-07-25 07:09:33 -04:00
..
forms Merge #13043: [qt] OptionsDialog: add prune setting 2018-06-11 14:21:24 +02:00
locale qt: Update translation source messages 2018-07-23 17:23:20 +02:00
res Add "export LC_ALL=C" to all shell scripts 2018-06-14 15:27:52 +02:00
test gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
addressbookpage.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
addressbookpage.h [tests] [qt] Add tests for address book manipulation via EditAddressDialog 2018-04-25 13:13:24 -04:00
addresstablemodel.cpp Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2018-05-02 16:49:59 +02:00
addresstablemodel.h Merge #12928: qt: Initialize non-static class members that were previously neither initialized where defined nor in constructor 2018-05-02 16:49:59 +02:00
askpassphrasedialog.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
askpassphrasedialog.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
bantablemodel.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
bantablemodel.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
bitcoin.cpp gui: remove SubstituteFonts 2018-07-25 07:30:28 +08:00
bitcoin.qrc [gui] Add proxy icon in statusbar 2018-05-15 23:23:56 +03:00
bitcoin_locale.qrc qt: periodic translations update 2017-01-10 12:52:02 +01:00
bitcoinaddressvalidator.cpp Split key_io (address/key encodings) off from base58 2018-02-19 18:55:21 -08:00
bitcoinaddressvalidator.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
bitcoinamountfield.cpp Increased max width of amount field to prevent number overflow bug. 2018-05-20 01:09:16 -04:00
bitcoinamountfield.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
bitcoingui.cpp scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
bitcoingui.h scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
bitcoinstrings.cpp qt: Update translation source messages 2018-07-23 17:23:20 +02:00
bitcoinunits.cpp [qt] Added satoshi unit 2018-05-17 16:14:49 +02:00
bitcoinunits.h [qt] Added satoshi unit 2018-05-17 16:14:49 +02:00
callback.h Declare single-argument (non-converting) constructors "explicit" 2017-08-16 16:33:25 +02:00
clientmodel.cpp Remove redundant forward declaration 2018-07-18 09:39:31 +02:00
clientmodel.h [gui] Add proxy icon in statusbar 2018-05-15 23:23:56 +03:00
coincontroldialog.cpp [qt] coincontrol: Remove unused qt4 workaround 2018-06-25 09:32:01 -04:00
coincontroldialog.h [gui] Defer coin control instancing 2018-02-01 19:40:20 +00:00
coincontroltreewidget.cpp Merge #10498: Use static_cast instead of C-style casts for non-fundamental types 2018-02-07 16:15:28 -05:00
coincontroltreewidget.h Bump copyright headers to 2014 2016-01-05 21:01:39 +01:00
csvmodelwriter.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
csvmodelwriter.h Bump copyright headers to 2014 2016-01-05 21:01:39 +01:00
editaddressdialog.cpp [qt] Display more helpful message when adding a send address has failed 2018-04-25 13:08:53 -04:00
editaddressdialog.h [tests] [qt] Add tests for address book manipulation via EditAddressDialog 2018-04-25 13:13:24 -04:00
guiconstants.h Remove useless mapRequest tracking that just effects Qt display. 2018-07-09 20:06:39 -04:00
guiutil.cpp Merge #13753: scripted-diff: Remove trailing whitespaces 2018-07-25 07:09:33 -04:00
guiutil.h Merge #13753: scripted-diff: Remove trailing whitespaces 2018-07-25 07:09:33 -04:00
intro.cpp scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
intro.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
macdockiconhandler.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
macdockiconhandler.mm scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
macnotificationhandler.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
macnotificationhandler.mm scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
Makefile
modaloverlay.cpp scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
modaloverlay.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
networkstyle.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
networkstyle.h Added "Core" to copyright headers 2014-12-19 19:55:32 +01:00
notificator.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
notificator.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
openuridialog.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
openuridialog.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
optionsdialog.cpp scripted-diff: Replace NET_TOR with NET_ONION 2018-07-02 16:41:13 +02:00
optionsdialog.h scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
optionsmodel.cpp scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
optionsmodel.h [qt] OptionsDialog: add prune setting 2018-05-15 12:46:19 +02:00
overviewpage.cpp scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
overviewpage.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
paymentrequest.proto Specify Protobuf version 2 in paymentrequest.proto 2016-09-16 11:45:08 +08:00
paymentrequestplus.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
paymentrequestplus.h Split key_io (address/key encodings) off from base58 2018-02-19 18:55:21 -08:00
paymentserver.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
paymentserver.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
peertablemodel.cpp Merge #13537: GUI: Peer table: Visualize inbound/outbound state for every row 2018-07-01 10:27:43 +02:00
peertablemodel.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
platformstyle.cpp cleanup: avoid hidden copies in range-for loops 2018-06-15 13:40:00 -04:00
platformstyle.h qt: Introduce PlatformStyle 2015-07-31 09:35:18 +02:00
qvalidatedlineedit.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
qvalidatedlineedit.h scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
qvaluecombobox.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
qvaluecombobox.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
README.md doc: Remove mention of Qt4 from build docs 2018-06-18 12:22:14 +02:00
receivecoinsdialog.cpp [Qt] Disable creating receive addresses when private keys are disabled 2018-07-12 20:32:07 +01:00
receivecoinsdialog.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
receiverequestdialog.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
receiverequestdialog.h Qt: show wallet name in request dlg in case of multiwallet 2018-03-26 18:40:27 +07:00
recentrequeststablemodel.cpp Remove direct bitcoin calls from qt transaction table files 2018-04-04 16:52:40 -04:00
recentrequeststablemodel.h Remove direct bitcoin calls from qt transaction table files 2018-04-04 16:52:40 -04:00
rpcconsole.cpp Merge #13458: gui: Drop qt4 support 2018-06-24 16:02:37 +02:00
rpcconsole.h ui: Support wallets unloaded dynamically 2018-06-18 16:35:29 +01:00
sendcoinsdialog.cpp [qt]: changes sendcoinsdialog's box layout for improved readability. 2018-05-08 21:19:12 +01:00
sendcoinsdialog.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
sendcoinsentry.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
sendcoinsentry.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
signverifymessagedialog.cpp Drop unused init.h includes 2018-06-25 00:08:00 -04:00
signverifymessagedialog.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
splashscreen.cpp Drop unused init.h includes 2018-06-25 00:08:00 -04:00
splashscreen.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
trafficgraphwidget.cpp scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
trafficgraphwidget.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
transactiondesc.cpp Remove useless mapRequest tracking that just effects Qt display. 2018-07-09 20:06:39 -04:00
transactiondesc.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
transactiondescdialog.cpp qt: Remove TransactionTableModel::TxIDRole 2018-03-07 13:08:20 +00:00
transactiondescdialog.h Bump copyright headers to 2014 2016-01-05 21:01:39 +01:00
transactionfilterproxy.cpp qt: Avoid querying unnecessary model data when filtering transactions 2018-03-11 22:21:51 +00:00
transactionfilterproxy.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
transactionrecord.cpp Remove useless mapRequest tracking that just effects Qt display. 2018-07-09 20:06:39 -04:00
transactionrecord.h Remove useless mapRequest tracking that just effects Qt display. 2018-07-09 20:06:39 -04:00
transactiontablemodel.cpp Remove useless mapRequest tracking that just effects Qt display. 2018-07-09 20:06:39 -04:00
transactiontablemodel.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
transactionview.cpp gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00
transactionview.h [qt] navigate to transaction history page after send 2018-03-01 10:40:36 +01:00
utilitydialog.cpp Stop translating command line options 2018-05-30 14:23:35 +02:00
utilitydialog.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
walletframe.cpp bugfix: Delete walletView in WalletFrame::removeWallet 2018-06-20 14:15:12 +01:00
walletframe.h Qt: Get wallet name from WalletModel rather than passing it around 2018-03-26 18:40:26 +07:00
walletmodel.cpp [Qt] Disable creating receive addresses when private keys are disabled 2018-07-12 20:32:07 +01:00
walletmodel.h [Qt] Disable creating receive addresses when private keys are disabled 2018-07-12 20:32:07 +01:00
walletmodeltransaction.cpp scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
walletmodeltransaction.h scripted-diff: Avoid interface keyword to fix windows gitian build 2018-04-07 03:42:02 -04:00
walletview.cpp scripted-diff: Remove trailing whitespaces 2018-07-24 20:46:23 +01:00
walletview.h Qt: When multiple wallets are used, include in notifications the name 2018-03-26 18:40:26 +07:00
winshutdownmonitor.cpp Break circular dependency: init -> * -> init by extracting shutdown.h 2018-06-25 00:08:49 -04:00
winshutdownmonitor.h gui: Remove QT_VERSION fallbacks for Qt < 5 2018-06-18 12:22:11 +02:00

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

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

Compile and run

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

To run:

./src/qt/bitcoin-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 Bitcoin 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 bitcoin:... 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 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 "bitcoin-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 "bitcoin-qt" under "Run", which is where you can also add command line arguments)