Bitcoin Core 28.99.0
P2P Digital Currency
|
Bitcoin GUI main class. More...
#include <bitcoingui.h>
Public Slots | |
void | setNumConnections (int count) |
Set number of connections shown in the UI. More... | |
void | setNetworkActive (bool network_active) |
Set network state shown in the UI. More... | |
void | setNumBlocks (int count, const QDateTime &blockDate, double nVerificationProgress, SyncType synctype, SynchronizationState sync_state) |
Set number of blocks and last block date shown in the UI. More... | |
void | createWallet () |
Launch the wallet creation modal (no-op if wallet is not compiled) More... | |
void | message (const QString &title, QString message, unsigned int style, bool *ret=nullptr, const QString &detailed_message=QString()) |
Notify the user of an event from the core network or transaction handling code. More... | |
void | optionsClicked () |
Show configuration dialog. More... | |
void | aboutClicked () |
Show about dialog. More... | |
void | showDebugWindow () |
Show debug window. More... | |
void | showDebugWindowActivateConsole () |
Show debug window and set focus to the console. More... | |
void | showHelpMessageClicked () |
Show help message dialog. More... | |
void | showNormalIfMinimized () |
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true. More... | |
void | showNormalIfMinimized (bool fToggleHidden) |
void | toggleHidden () |
Simply calls showNormalIfMinimized(true) More... | |
void | detectShutdown () |
called by a timer to check if shutdown has been requested More... | |
void | showProgress (const QString &title, int nProgress) |
Show progress dialog e.g. More... | |
void | showModalOverlay () |
Signals | |
void | quitRequested () |
void | receivedURI (const QString &uri) |
Signal raised when a URI was entered or dragged to the GUI. More... | |
void | consoleShown (RPCConsole *console) |
Signal raised when RPC console shown. More... | |
void | setPrivacy (bool privacy) |
Public Member Functions | |
BitcoinGUI (interfaces::Node &node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=nullptr) | |
~BitcoinGUI () | |
void | setClientModel (ClientModel *clientModel=nullptr, interfaces::BlockAndHeaderTipInfo *tip_info=nullptr) |
Set the client model. More... | |
bool | hasTrayIcon () const |
Get the tray icon status. More... | |
void | unsubscribeFromCoreSignals () |
Disconnect core signals from GUI client. More... | |
bool | isPrivacyModeActivated () const |
Public Attributes | |
bool | enableWallet = false |
Static Public Attributes | |
static const std::string | DEFAULT_UIPLATFORM |
Protected Member Functions | |
void | changeEvent (QEvent *e) override |
void | closeEvent (QCloseEvent *event) override |
void | showEvent (QShowEvent *event) override |
void | dragEnterEvent (QDragEnterEvent *event) override |
void | dropEvent (QDropEvent *event) override |
bool | eventFilter (QObject *object, QEvent *event) override |
Private Member Functions | |
void | createActions () |
Create the main UI actions. More... | |
void | createMenuBar () |
Create the menu bar and sub-menus. More... | |
void | createToolBars () |
Create the toolbars. More... | |
void | createTrayIcon () |
Create system tray icon and notification. More... | |
void | createTrayIconMenu () |
Create system tray menu (or setup the dock menu) More... | |
void | setWalletActionsEnabled (bool enabled) |
Enable or disable all wallet-related actions. More... | |
void | subscribeToCoreSignals () |
Connect core signals to GUI client. More... | |
void | updateNetworkState () |
Update UI with latest network info from model. More... | |
void | updateHeadersSyncProgressLabel () |
void | updateHeadersPresyncProgressLabel (int64_t height, const QDateTime &blockDate) |
void | openOptionsDialogWithTab (OptionsDialog::Tab tab) |
Open the OptionsDialog on the specified tab index. More... | |
void | updateProxyIcon () |
Set the proxy-enabled icon as shown in the UI. More... | |
void | updateWindowTitle () |
Bitcoin GUI main class.
This class represents the main window of the Bitcoin UI. It communicates with both the client and wallet models to give the user an up-to-date view of the current core state.
Definition at line 67 of file bitcoingui.h.
|
explicit |
BitcoinGUI::~BitcoinGUI | ( | ) |
|
slot |
Show about dialog.
Definition at line 934 of file bitcoingui.cpp.
|
overrideprotected |
|
overrideprotected |
|
signal |
Signal raised when RPC console shown.
|
private |
Create the main UI actions.
Definition at line 247 of file bitcoingui.cpp.
|
private |
Create the menu bar and sub-menus.
Definition at line 494 of file bitcoingui.cpp.
|
private |
Create the toolbars.
Definition at line 588 of file bitcoingui.cpp.
|
private |
Create system tray icon and notification.
Definition at line 833 of file bitcoingui.cpp.
|
private |
Create system tray menu (or setup the dock menu)
Definition at line 846 of file bitcoingui.cpp.
|
slot |
Launch the wallet creation modal (no-op if wallet is not compiled)
Definition at line 1215 of file bitcoingui.cpp.
|
slot |
called by a timer to check if shutdown has been requested
Definition at line 1524 of file bitcoingui.cpp.
|
overrideprotected |
Definition at line 1372 of file bitcoingui.cpp.
|
overrideprotected |
Definition at line 1379 of file bitcoingui.cpp.
|
overrideprotected |
Definition at line 1391 of file bitcoingui.cpp.
|
inline |
Get the tray icon status.
Some systems have not "system tray" or "notification area" available.
Definition at line 100 of file bitcoingui.h.
bool BitcoinGUI::isPrivacyModeActivated | ( | ) | const |
|
slot |
Notify the user of an event from the core network or transaction handling code.
[in] | title | the message box / notification title |
[in] | message | the displayed text |
[in] | style | modality and style definitions (icon and used buttons - buttons only for message boxes) |
[in] | ret | pointer to a bool that will be modified to whether Ok was clicked (modal only) |
[in] | detailed_message | the text to be displayed in the details area |
Definition at line 1230 of file bitcoingui.cpp.
|
private |
Open the OptionsDialog on the specified tab index.
Definition at line 1084 of file bitcoingui.cpp.
|
slot |
Show configuration dialog.
Definition at line 929 of file bitcoingui.cpp.
|
signal |
|
signal |
Signal raised when a URI was entered or dragged to the GUI.
void BitcoinGUI::setClientModel | ( | ClientModel * | clientModel = nullptr , |
interfaces::BlockAndHeaderTipInfo * | tip_info = nullptr |
||
) |
Set the client model.
The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic.
Definition at line 624 of file bitcoingui.cpp.
|
slot |
Set network state shown in the UI.
Definition at line 1048 of file bitcoingui.cpp.
|
slot |
Set number of blocks and last block date shown in the UI.
Definition at line 1097 of file bitcoingui.cpp.
|
slot |
Set number of connections shown in the UI.
Definition at line 1043 of file bitcoingui.cpp.
|
signal |
|
private |
Enable or disable all wallet-related actions.
Definition at line 815 of file bitcoingui.cpp.
|
slot |
Show debug window.
Definition at line 943 of file bitcoingui.cpp.
|
slot |
Show debug window and set focus to the console.
Definition at line 949 of file bitcoingui.cpp.
|
overrideprotected |
Definition at line 1345 of file bitcoingui.cpp.
|
slot |
Show help message dialog.
Definition at line 955 of file bitcoingui.cpp.
|
slot |
Definition at line 1553 of file bitcoingui.cpp.
|
inlineslot |
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true.
Definition at line 311 of file bitcoingui.h.
|
slot |
|
slot |
Show progress dialog e.g.
for verifychain
Definition at line 1534 of file bitcoingui.cpp.
|
private |
Connect core signals to GUI client.
Definition at line 1584 of file bitcoingui.cpp.
|
slot |
Simply calls showNormalIfMinimized(true)
Definition at line 1519 of file bitcoingui.cpp.
void BitcoinGUI::unsubscribeFromCoreSignals | ( | ) |
Disconnect core signals from GUI client.
Definition at line 1591 of file bitcoingui.cpp.
|
private |
Definition at line 1077 of file bitcoingui.cpp.
|
private |
Definition at line 1068 of file bitcoingui.cpp.
|
private |
Update UI with latest network info from model.
Definition at line 1009 of file bitcoingui.cpp.
|
private |
Set the proxy-enabled icon as shown in the UI.
Definition at line 1472 of file bitcoingui.cpp.
|
private |
Definition at line 1490 of file bitcoingui.cpp.
|
private |
Definition at line 145 of file bitcoingui.h.
|
private |
Definition at line 151 of file bitcoingui.h.
|
private |
Definition at line 133 of file bitcoingui.h.
|
private |
Definition at line 134 of file bitcoingui.h.
|
private |
Definition at line 149 of file bitcoingui.h.
|
private |
Definition at line 150 of file bitcoingui.h.
|
private |
Definition at line 120 of file bitcoingui.h.
|
private |
Definition at line 127 of file bitcoingui.h.
|
static |
Definition at line 72 of file bitcoingui.h.
bool BitcoinGUI::enableWallet = false |
Definition at line 95 of file bitcoingui.h.
|
private |
Definition at line 148 of file bitcoingui.h.
|
private |
Definition at line 174 of file bitcoingui.h.
|
private |
Definition at line 136 of file bitcoingui.h.
|
private |
Definition at line 128 of file bitcoingui.h.
|
private |
Definition at line 126 of file bitcoingui.h.
|
private |
Definition at line 124 of file bitcoingui.h.
|
private |
Definition at line 125 of file bitcoingui.h.
|
private |
Definition at line 160 of file bitcoingui.h.
|
private |
Definition at line 159 of file bitcoingui.h.
|
private |
Definition at line 155 of file bitcoingui.h.
|
private |
Definition at line 118 of file bitcoingui.h.
|
private |
Definition at line 119 of file bitcoingui.h.
|
private |
Definition at line 143 of file bitcoingui.h.
|
private |
Definition at line 144 of file bitcoingui.h.
|
private |
Definition at line 163 of file bitcoingui.h.
|
private |
Definition at line 164 of file bitcoingui.h.
|
private |
Definition at line 165 of file bitcoingui.h.
|
private |
Definition at line 177 of file bitcoingui.h.
|
private |
Definition at line 188 of file bitcoingui.h.
|
private |
Definition at line 116 of file bitcoingui.h.
|
private |
Definition at line 156 of file bitcoingui.h.
|
private |
Definition at line 157 of file bitcoingui.h.
|
private |
Definition at line 158 of file bitcoingui.h.
|
private |
Definition at line 117 of file bitcoingui.h.
|
private |
Definition at line 168 of file bitcoingui.h.
|
private |
Definition at line 162 of file bitcoingui.h.
|
private |
Definition at line 167 of file bitcoingui.h.
|
private |
Definition at line 161 of file bitcoingui.h.
|
private |
Definition at line 175 of file bitcoingui.h.
|
private |
Definition at line 172 of file bitcoingui.h.
|
private |
Definition at line 153 of file bitcoingui.h.
|
private |
Definition at line 152 of file bitcoingui.h.
|
private |
Definition at line 147 of file bitcoingui.h.
|
private |
Definition at line 135 of file bitcoingui.h.
|
private |
Definition at line 187 of file bitcoingui.h.
|
private |
Keep track of previous number of blocks, to detect progress.
Definition at line 184 of file bitcoingui.h.
|
private |
Definition at line 130 of file bitcoingui.h.
|
private |
Definition at line 129 of file bitcoingui.h.
|
private |
Definition at line 131 of file bitcoingui.h.
|
private |
Definition at line 137 of file bitcoingui.h.
|
private |
Definition at line 146 of file bitcoingui.h.
|
private |
Definition at line 173 of file bitcoingui.h.
|
private |
Definition at line 138 of file bitcoingui.h.
|
private |
Definition at line 154 of file bitcoingui.h.
|
private |
Definition at line 141 of file bitcoingui.h.
|
private |
Definition at line 185 of file bitcoingui.h.
|
private |
Definition at line 170 of file bitcoingui.h.
|
private |
Definition at line 171 of file bitcoingui.h.
|
private |
Definition at line 123 of file bitcoingui.h.
|
private |
Definition at line 140 of file bitcoingui.h.
|
private |
Definition at line 139 of file bitcoingui.h.
|
private |
Definition at line 142 of file bitcoingui.h.
|
private |
Definition at line 121 of file bitcoingui.h.