![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
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 networkActive) |
Set network state shown in the UI. More... | |
void | setNumBlocks (int count, const QDateTime &blockDate, double nVerificationProgress, bool headers) |
Set number of blocks and last block date shown in the UI. More... | |
void | message (const QString &title, const QString &message, unsigned int style, bool *ret=nullptr) |
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 | trayIconActivated (QSystemTrayIcon::ActivationReason reason) |
Handle tray icon clicked. 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) for use in SLOT() macro. More... | |
void | detectShutdown () |
called by a timer to check if ShutdownRequested() has been set More... | |
void | showProgress (const QString &title, int nProgress) |
Show progress dialog e.g. More... | |
void | setTrayIconVisible (bool) |
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly. More... | |
void | showModalOverlay () |
Signals | |
void | receivedURI (const QString &uri) |
Signal raised when a URI was entered or dragged to the GUI. More... | |
Public Member Functions | |
BitcoinGUI (interfaces::Node &node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0) | |
~BitcoinGUI () | |
void | setClientModel (ClientModel *clientModel) |
Set the client model. More... | |
Public Attributes | |
bool | enableWallet = false |
Static Public Attributes | |
static const std::string | DEFAULT_UIPLATFORM |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
void | closeEvent (QCloseEvent *event) |
void | showEvent (QShowEvent *event) |
void | dragEnterEvent (QDragEnterEvent *event) |
void | dropEvent (QDropEvent *event) |
bool | eventFilter (QObject *object, QEvent *event) |
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 (const NetworkStyle *networkStyle) |
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 | unsubscribeFromCoreSignals () |
Disconnect core signals from GUI client. More... | |
void | updateNetworkState () |
Update UI with latest network info from model. More... | |
void | updateHeadersSyncProgressLabel () |
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... | |
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 59 of file bitcoingui.h.
|
explicit |
BitcoinGUI::~BitcoinGUI | ( | ) |
|
slot |
Show about dialog.
Definition at line 655 of file bitcoingui.cpp.
|
protected |
|
protected |
|
private |
Create the main UI actions.
Definition at line 233 of file bitcoingui.cpp.
|
private |
Create the menu bar and sub-menus.
Definition at line 365 of file bitcoingui.cpp.
|
private |
Create the toolbars.
Definition at line 410 of file bitcoingui.cpp.
|
private |
Create system tray icon and notification.
Definition at line 586 of file bitcoingui.cpp.
|
private |
Create system tray menu (or setup the dock menu)
Definition at line 599 of file bitcoingui.cpp.
|
slot |
called by a timer to check if ShutdownRequested() has been set
Definition at line 1176 of file bitcoingui.cpp.
|
protected |
Definition at line 1031 of file bitcoingui.cpp.
|
protected |
Definition at line 1038 of file bitcoingui.cpp.
|
protected |
Definition at line 1050 of file bitcoingui.cpp.
|
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) |
Definition at line 897 of file bitcoingui.cpp.
|
private |
Open the OptionsDialog on the specified tab index.
Definition at line 776 of file bitcoingui.cpp.
|
slot |
Show configuration dialog.
Definition at line 650 of file bitcoingui.cpp.
|
signal |
Signal raised when a URI was entered or dragged to the GUI.
void BitcoinGUI::setClientModel | ( | ClientModel * | clientModel | ) |
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 446 of file bitcoingui.cpp.
|
slot |
Set network state shown in the UI.
Definition at line 762 of file bitcoingui.cpp.
|
slot |
Set number of blocks and last block date shown in the UI.
Definition at line 787 of file bitcoingui.cpp.
|
slot |
Set number of connections shown in the UI.
Definition at line 757 of file bitcoingui.cpp.
|
slot |
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
Definition at line 1209 of file bitcoingui.cpp.
|
private |
Enable or disable all wallet-related actions.
Definition at line 568 of file bitcoingui.cpp.
|
slot |
Show debug window.
Definition at line 664 of file bitcoingui.cpp.
|
slot |
Show debug window and set focus to the console.
Definition at line 672 of file bitcoingui.cpp.
|
protected |
Definition at line 1004 of file bitcoingui.cpp.
|
slot |
Show help message dialog.
Definition at line 678 of file bitcoingui.cpp.
|
slot |
Definition at line 1217 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 266 of file bitcoingui.h.
|
slot |
|
slot |
Show progress dialog e.g.
for verifychain
Definition at line 1186 of file bitcoingui.cpp.
|
private |
Connect core signals to GUI client.
Definition at line 1243 of file bitcoingui.cpp.
|
slot |
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
Definition at line 1171 of file bitcoingui.cpp.
|
slot |
Handle tray icon clicked.
Definition at line 640 of file bitcoingui.cpp.
|
private |
Disconnect core signals from GUI client.
Definition at line 1250 of file bitcoingui.cpp.
|
private |
|
private |
Update UI with latest network info from model.
Definition at line 728 of file bitcoingui.cpp.
|
private |
Set the proxy-enabled icon as shown in the UI.
Definition at line 1128 of file bitcoingui.cpp.
|
private |
Definition at line 121 of file bitcoingui.h.
|
private |
Definition at line 129 of file bitcoingui.h.
|
private |
Definition at line 110 of file bitcoingui.h.
|
private |
Definition at line 111 of file bitcoingui.h.
|
private |
Definition at line 127 of file bitcoingui.h.
|
private |
Definition at line 128 of file bitcoingui.h.
|
private |
Definition at line 97 of file bitcoingui.h.
|
private |
Definition at line 104 of file bitcoingui.h.
|
static |
Definition at line 64 of file bitcoingui.h.
bool BitcoinGUI::enableWallet = false |
Definition at line 83 of file bitcoingui.h.
|
private |
Definition at line 126 of file bitcoingui.h.
|
private |
Definition at line 143 of file bitcoingui.h.
|
private |
Definition at line 113 of file bitcoingui.h.
|
private |
Definition at line 105 of file bitcoingui.h.
|
private |
Definition at line 103 of file bitcoingui.h.
|
private |
Definition at line 101 of file bitcoingui.h.
|
private |
Definition at line 102 of file bitcoingui.h.
|
private |
Definition at line 95 of file bitcoingui.h.
|
private |
Definition at line 96 of file bitcoingui.h.
|
private |
Definition at line 94 of file bitcoingui.h.
|
private |
Definition at line 137 of file bitcoingui.h.
|
private |
Definition at line 134 of file bitcoingui.h.
|
private |
Definition at line 136 of file bitcoingui.h.
|
private |
Definition at line 133 of file bitcoingui.h.
|
private |
Definition at line 144 of file bitcoingui.h.
|
private |
Definition at line 141 of file bitcoingui.h.
|
private |
Definition at line 131 of file bitcoingui.h.
|
private |
Definition at line 130 of file bitcoingui.h.
|
private |
Definition at line 124 of file bitcoingui.h.
|
private |
Definition at line 112 of file bitcoingui.h.
|
private |
Definition at line 150 of file bitcoingui.h.
|
private |
Keep track of previous number of blocks, to detect progress.
Definition at line 147 of file bitcoingui.h.
|
private |
Definition at line 107 of file bitcoingui.h.
|
private |
Definition at line 106 of file bitcoingui.h.
|
private |
Definition at line 108 of file bitcoingui.h.
|
private |
Definition at line 114 of file bitcoingui.h.
|
private |
Definition at line 122 of file bitcoingui.h.
|
private |
Definition at line 123 of file bitcoingui.h.
|
private |
Definition at line 142 of file bitcoingui.h.
|
private |
Definition at line 115 of file bitcoingui.h.
|
private |
Definition at line 116 of file bitcoingui.h.
|
private |
Definition at line 132 of file bitcoingui.h.
|
private |
Definition at line 119 of file bitcoingui.h.
|
private |
Definition at line 148 of file bitcoingui.h.
|
private |
Definition at line 125 of file bitcoingui.h.
|
private |
Definition at line 139 of file bitcoingui.h.
|
private |
Definition at line 140 of file bitcoingui.h.
|
private |
Definition at line 100 of file bitcoingui.h.
|
private |
Definition at line 118 of file bitcoingui.h.
|
private |
Definition at line 117 of file bitcoingui.h.
|
private |
Definition at line 120 of file bitcoingui.h.
|
private |
Definition at line 98 of file bitcoingui.h.