• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

forms/H29-Apr-2020-8,4378,418

locale/H29-Apr-2020-207,565207,503

res/H29-Apr-2020-5442

test/H29-Apr-2020-1,7961,300

MakefileH A D29-Apr-2020244 109

README.mdH A D29-Apr-20203.5 KiB9658

addressbookpage.cppH A D29-Apr-202010.4 KiB335266

addressbookpage.hH A D29-Apr-20202.4 KiB8756

addresstablemodel.cppH A D29-Apr-202014.3 KiB455384

addresstablemodel.hH A D29-Apr-20203.6 KiB10659

askpassphrasedialog.cppH A D29-Apr-202010.6 KiB286248

askpassphrasedialog.hH A D29-Apr-20201.3 KiB5435

bantablemodel.cppH A D29-Apr-20204.4 KiB182138

bantablemodel.hH A D29-Apr-20201.9 KiB8154

bitcoin.cppH A D29-Apr-202022.2 KiB604432

bitcoin.hH A D29-Apr-20203.1 KiB12582

bitcoin.qrcH A D29-Apr-20205.9 KiB9897

bitcoin_locale.qrcH A D29-Apr-20206.6 KiB124123

bitcoinaddressvalidator.cppH A D29-Apr-20202.6 KiB9860

bitcoinaddressvalidator.hH A D29-Apr-2020925 3618

bitcoinamountfield.cppH A D29-Apr-20208.9 KiB342267

bitcoinamountfield.hH A D29-Apr-20202.3 KiB8538

bitcoingui.cppH A D29-Apr-202054.1 KiB1,4741,212

bitcoingui.hH A D29-Apr-202011.3 KiB342207

bitcoinstrings.cppH A D29-Apr-202011.8 KiB196191

bitcoinunits.cppH A D29-Apr-20206 KiB235190

bitcoinunits.hH A D29-Apr-20204 KiB13271

clientmodel.cppH A D29-Apr-20209.2 KiB291230

clientmodel.hH A D29-Apr-20203.6 KiB12185

coincontroldialog.cppH A D29-Apr-202029.2 KiB733545

coincontroldialog.hH A D29-Apr-20202.8 KiB11889

coincontroltreewidget.cppH A D29-Apr-20201.1 KiB3527

coincontroltreewidget.hH A D29-Apr-2020574 2313

csvmodelwriter.cppH A D29-Apr-20201.8 KiB9271

csvmodelwriter.hH A D29-Apr-20201.1 KiB4727

editaddressdialog.cppH A D29-Apr-20204.6 KiB165137

editaddressdialog.hH A D29-Apr-20201.3 KiB6037

guiconstants.hH A D29-Apr-20202 KiB5924

guiutil.cppH A D29-Apr-202029.2 KiB954775

guiutil.hH A D29-Apr-20208.9 KiB258129

intro.cppH A D29-Apr-202010.7 KiB340261

intro.hH A D29-Apr-20202 KiB8547

macdockiconhandler.hH A D29-Apr-2020596 2815

macdockiconhandler.mmH A D29-Apr-20201.4 KiB5442

macnotificationhandler.hH A D29-Apr-2020806 2812

macnotificationhandler.mmH A D29-Apr-20202.1 KiB6353

macos_appnap.hH A D29-Apr-2020544 2515

macos_appnap.mmH A D29-Apr-20201.9 KiB7259

main.cppH A D29-Apr-2020576 188

modaloverlay.cppH A D29-Apr-20206 KiB181136

modaloverlay.hH A D29-Apr-20201.5 KiB5234

networkstyle.cppH A D29-Apr-20203 KiB9866

networkstyle.hH A D29-Apr-20201.1 KiB3421

notificator.cppH A D29-Apr-20207.2 KiB258195

notificator.hH A D29-Apr-20202.5 KiB7849

openuridialog.cppH A D29-Apr-20201.2 KiB5138

openuridialog.hH A D29-Apr-2020655 3521

optionsdialog.cppH A D29-Apr-202014.7 KiB387289

optionsdialog.hH A D29-Apr-20201.8 KiB7952

optionsmodel.cppH A D29-Apr-202018.5 KiB535416

optionsmodel.hH A D29-Apr-20203.7 KiB11176

overviewpage.cppH A D29-Apr-202011.5 KiB276217

overviewpage.hH A D29-Apr-20201.6 KiB6545

paymentrequest.protoH A D29-Apr-20202.3 KiB4945

paymentrequestplus.cppH A D29-Apr-20207.7 KiB214168

paymentrequestplus.hH A D29-Apr-20201.4 KiB5328

paymentserver.cppH A D29-Apr-202028.7 KiB836616

paymentserver.hH A D29-Apr-20205.2 KiB16173

peertablemodel.cppH A D29-Apr-20206.6 KiB243189

peertablemodel.hH A D29-Apr-20202.3 KiB9365

platformstyle.cppH A D29-Apr-20204.2 KiB145115

platformstyle.hH A D29-Apr-20201.7 KiB5629

qvalidatedlineedit.cppH A D29-Apr-20202.5 KiB12495

qvalidatedlineedit.hH A D29-Apr-20201.1 KiB4427

qvaluecombobox.cppH A D29-Apr-2020808 3222

qvaluecombobox.hH A D29-Apr-2020957 3821

receivecoinsdialog.cppH A D29-Apr-202010.4 KiB301235

receivecoinsdialog.hH A D29-Apr-20202 KiB8160

receiverequestdialog.cppH A D29-Apr-20206.3 KiB213177

receiverequestdialog.hH A D29-Apr-20201.4 KiB7046

recentrequeststablemodel.cppH A D29-Apr-20207.1 KiB235185

recentrequeststablemodel.hH A D29-Apr-20203.2 KiB10674

rpcconsole.cppH A D29-Apr-202048.7 KiB1,285997

rpcconsole.hH A D29-Apr-20205.7 KiB174119

sendcoinsdialog.cppH A D29-Apr-202034.1 KiB930729

sendcoinsdialog.hH A D29-Apr-20203.6 KiB12589

sendcoinsentry.cppH A D29-Apr-20208.7 KiB290224

sendcoinsentry.hH A D29-Apr-20202 KiB7847

signverifymessagedialog.cppH A D29-Apr-20209.2 KiB276225

signverifymessagedialog.hH A D29-Apr-20201.4 KiB5436

splashscreen.cppH A D29-Apr-20207.7 KiB226169

splashscreen.hH A D29-Apr-20202.1 KiB7040

trafficgraphwidget.cppH A D29-Apr-20204.8 KiB178145

trafficgraphwidget.hH A D03-May-20221.1 KiB5035

transactiondesc.cppH A D29-Apr-202013.1 KiB336259

transactiondesc.hH A D29-Apr-2020899 3621

transactiondescdialog.cppH A D29-Apr-2020807 2617

transactiondescdialog.hH A D29-Apr-2020732 3219

transactionfilterproxy.cppH A D29-Apr-20203.6 KiB12295

transactionfilterproxy.hH A D29-Apr-20202 KiB6941

transactionrecord.cppH A D29-Apr-20207.7 KiB248192

transactionrecord.hH A D29-Apr-20204.3 KiB14986

transactiontablemodel.cppH A D29-Apr-202026 KiB763650

transactiontablemodel.hH A D29-Apr-20204.3 KiB12480

transactionview.cppH A D29-Apr-202025.3 KiB661537

transactionview.hH A D29-Apr-20203 KiB12793

utilitydialog.cppH A D29-Apr-20205.9 KiB183138

utilitydialog.hH A D29-Apr-20201.1 KiB5635

walletcontroller.cppH A D29-Apr-20205.8 KiB171127

walletcontroller.hH A D29-Apr-20202.3 KiB9161

walletframe.cppH A D29-Apr-20205.9 KiB226181

walletframe.hH A D29-Apr-20202.8 KiB9954

walletmodel.cppH A D29-Apr-202020 KiB608489

walletmodel.hH A D29-Apr-202010.1 KiB305202

walletmodeltransaction.cppH A D29-Apr-20202.3 KiB8973

walletmodeltransaction.hH A D29-Apr-20201.2 KiB4728

walletview.cppH A D29-Apr-202011.2 KiB334247

walletview.hH A D29-Apr-20204.4 KiB13368

winshutdownmonitor.cppH A D29-Apr-20202.4 KiB7148

winshutdownmonitor.hH A D29-Apr-2020893 2815

README.md

1This directory contains the LitecoinQT graphical user interface (GUI). It uses the cross-platform framework [Qt](https://www1.qt.io/developers/).
2
3The current precise version for Qt 5 is specified in [qt.mk](/depends/packages/qt.mk).
4
5## Compile and run
6
7See build instructions ([macOS](/doc/build-osx.md), [Windows](/doc/build-windows.md), [Unix](/doc/build-unix.md), etc).
8
9To run:
10
11```sh
12./src/qt/litecoin-qt
13```
14
15## Files and directories
16
17### forms
18
19Contains [Designer UI](https://doc.qt.io/qt-5.9/designer-using-a-ui-file.html) files. They are created with [Qt Creator](#using-qt-creator-as-ide), but can be edited using any text editor.
20
21### locale
22
23Contains translations. They are periodically updated. The process is described [here](/doc/translation_process.md).
24
25### res
26
27Resources such as the icon.
28
29### test
30
31Tests.
32
33### bitcoingui.(h/cpp)
34
35Represents the main window of the Litecoin UI.
36
37### \*model.(h/cpp)
38
39The model. When it has a corresponding controller, it generally inherits from  [QAbstractTableModel](https://doc.qt.io/qt-5/qabstracttablemodel.html). Models that are used by controllers as helpers inherit from other Qt classes like [QValidator](https://doc.qt.io/qt-5/qvalidator.html).
40
41ClientModel is used by the main application `bitcoingui` and several models like `peertablemodel`.
42
43### \*page.(h/cpp)
44
45A controller. `:NAMEpage.cpp` generally includes `:NAMEmodel.h` and `forms/:NAME.page.ui` with a similar `:NAME`.
46
47### \*dialog.(h/cpp)
48
49Various dialogs, e.g. to open a URL. Inherit from [QDialog](https://doc.qt.io/qt-5/qdialog.html).
50
51### paymentserver.(h/cpp)
52
53Used 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 litecoin:... link from a browser).
54
55### walletview.(h/cpp)
56
57Represents the view to a single wallet.
58
59### Other .h/cpp files
60
61* UI elements like BitcoinAmountField, which inherit from QWidget.
62* `bitcoinstrings.cpp`: automatically generated
63* `bitcoinunits.(h/cpp)`: BTC / mBTC / etc handling
64* `callback.h`
65* `guiconstants.h`: UI colors, app name, etc
66* `guiutil.h`: several helper functions
67* `macdockiconhandler.(h/mm)`: macOS dock icon handler
68* `macnotificationhandler.(h/mm)`: display notifications in macOS
69
70## Contribute
71
72See [CONTRIBUTING.md](/CONTRIBUTING.md) for general guidelines. Specifically for Qt:
73
74* don't change `local/bitcoin_en.ts`; this happens [automatically](/doc/translation_process.md#writing-code-with-translations)
75
76## Using Qt Creator as IDE
77
78You can use Qt Creator as an IDE. This is especially useful if you want to change
79the UI layout.
80
81Download and install the community edition of [Qt Creator](https://www.qt.io/download/).
82Uncheck everything except Qt Creator during the installation process.
83
84Instructions for macOS:
85
861. Make sure you installed everything through Homebrew mentioned in the [macOS build instructions](/doc/build-osx.md)
872. Use `./configure` with the `--enable-debug` flag
883. In Qt Creator do "New Project" -> Import Project -> Import Existing Project
894. Enter "litecoin-qt" as project name, enter src/qt as location
905. Leave the file selection as it is
916. Confirm the "summary page"
927. In the "Projects" tab select "Manage Kits..."
938. Select the default "Desktop" kit and select "Clang (x86 64bit in /usr/bin)" as compiler
949. Select LLDB as debugger (you might need to set the path to your installation)
9510. Start debugging with Qt Creator (you might need to the executable to "litecoin-qt" under "Run", which is where you can also add command line arguments)
96