![]() |
Raven Core
3.0.0
P2P Digital Currency
|
Raven GUI main class. More...
#include <ravengui.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 | handleRestart (QStringList args) |
| Get restart command-line parameters and request restart. 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 | getPriceInfo () |
Signals | |
| void | receivedURI (const QString &uri) |
| Signal raised when a URI was entered or dragged to the GUI. More... | |
| void | requestedRestart (QStringList args) |
| Restart handling. More... | |
Public Member Functions | |
| RavenGUI (const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0) | |
| ~RavenGUI () | |
| void | setClientModel (ClientModel *clientModel) |
| Set the client model. More... | |
Public Attributes | |
| bool | enableWallet |
Static Public Attributes | |
| static const QString | DEFAULT_WALLET = "~Default" |
| Display name for default wallet name. More... | |
| 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 Slots | |
| 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 | showWalletRepair () |
| Show debug window and set focus to the wallet repair tab. More... | |
| void | showHelpMessageClicked () |
| Show help message dialog. More... | |
| void | trayIconActivated (QSystemTrayIcon::ActivationReason reason) |
| Handle tray icon clicked. More... | |
| void | showNormalIfMinimized (bool fToggleHidden=false) |
| Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true. More... | |
| void | toggleHidden () |
| Simply calls showNormalIfMinimized(true) for use in SLOT() macro. More... | |
| void | detectShutdown () |
| called by a timer to check if fRequestShutdown 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 | toggleNetworkActive () |
| Toggle networking. More... | |
| void | showModalOverlay () |
Private Member Functions | |
| void | loadFonts () |
| Load the custome open sans fonts into the font database. More... | |
| 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 () |
Raven GUI main class.
This class represents the main window of the Raven 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 47 of file ravengui.h.
|
explicit |
RVN START
RVN END
Definition at line 96 of file ravengui.cpp.
| RavenGUI::~RavenGUI | ( | ) |
|
privateslot |
Show about dialog.
Definition at line 973 of file ravengui.cpp.
|
protected |
|
protected |
|
private |
Create the main UI actions.
RVN START
RVN END
Definition at line 342 of file ravengui.cpp.
|
private |
Create the menu bar and sub-menus.
Definition at line 543 of file ravengui.cpp.
|
private |
Create the toolbars.
RVN START
RVN END
RVN START
Create the shadow effects for the main wallet frame. Make it so it puts a shadow on the tool bar
RVN END
Definition at line 589 of file ravengui.cpp.
|
private |
Create system tray icon and notification.
Definition at line 903 of file ravengui.cpp.
|
private |
Create system tray menu (or setup the dock menu)
Definition at line 916 of file ravengui.cpp.
|
privateslot |
called by a timer to check if fRequestShutdown has been set
Definition at line 1493 of file ravengui.cpp.
|
protected |
Definition at line 1380 of file ravengui.cpp.
|
protected |
Definition at line 1387 of file ravengui.cpp.
|
protected |
|
slot |
|
slot |
Get restart command-line parameters and request restart.
Definition at line 1579 of file ravengui.cpp.
|
private |
Load the custome open sans fonts into the font database.
Definition at line 327 of file ravengui.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 1231 of file ravengui.cpp.
|
privateslot |
Show configuration dialog.
Definition at line 963 of file ravengui.cpp.
|
signal |
Signal raised when a URI was entered or dragged to the GUI.
|
signal |
Restart handling.
| void RavenGUI::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 790 of file ravengui.cpp.
|
slot |
Set network state shown in the UI.
Definition at line 1106 of file ravengui.cpp.
|
slot |
Set number of blocks and last block date shown in the UI.
Definition at line 1120 of file ravengui.cpp.
|
slot |
Set number of connections shown in the UI.
Definition at line 1101 of file ravengui.cpp.
|
privateslot |
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
Definition at line 1526 of file ravengui.cpp.
|
private |
Enable or disable all wallet-related actions.
RVN START
RVN END
Definition at line 877 of file ravengui.cpp.
|
privateslot |
Show debug window.
Definition at line 982 of file ravengui.cpp.
|
privateslot |
Show debug window and set focus to the console.
Definition at line 990 of file ravengui.cpp.
|
protected |
|
privateslot |
Show help message dialog.
Definition at line 1002 of file ravengui.cpp.
|
privateslot |
Definition at line 1534 of file ravengui.cpp.
|
privateslot |
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true.
Definition at line 1463 of file ravengui.cpp.
|
privateslot |
Show progress dialog e.g.
for verifychain
Definition at line 1503 of file ravengui.cpp.
|
privateslot |
Show debug window and set focus to the wallet repair tab.
Definition at line 996 of file ravengui.cpp.
|
private |
Connect core signals to GUI client.
Definition at line 1557 of file ravengui.cpp.
|
privateslot |
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
Definition at line 1488 of file ravengui.cpp.
|
privateslot |
Toggle networking.
Definition at line 1571 of file ravengui.cpp.
|
privateslot |
Handle tray icon clicked.
Definition at line 953 of file ravengui.cpp.
|
private |
Disconnect core signals from GUI client.
Definition at line 1564 of file ravengui.cpp.
|
private |
|
private |
Update UI with latest network info from model.
Definition at line 1072 of file ravengui.cpp.
|
private |
Definition at line 105 of file ravengui.h.
|
private |
Definition at line 113 of file ravengui.h.
|
private |
Definition at line 95 of file ravengui.h.
|
private |
Definition at line 111 of file ravengui.h.
|
private |
Definition at line 112 of file ravengui.h.
|
private |
Definition at line 83 of file ravengui.h.
|
private |
Definition at line 89 of file ravengui.h.
|
private |
Definition at line 121 of file ravengui.h.
|
static |
Definition at line 53 of file ravengui.h.
|
static |
Display name for default wallet name.
Uses tilde to avoid name collisions in the future with additional wallets
Definition at line 52 of file ravengui.h.
| bool RavenGUI::enableWallet |
Definition at line 72 of file ravengui.h.
|
private |
Definition at line 110 of file ravengui.h.
|
private |
Definition at line 125 of file ravengui.h.
|
private |
Definition at line 137 of file ravengui.h.
|
private |
Definition at line 97 of file ravengui.h.
|
private |
Definition at line 90 of file ravengui.h.
|
private |
Definition at line 126 of file ravengui.h.
|
private |
Definition at line 127 of file ravengui.h.
|
private |
Definition at line 87 of file ravengui.h.
|
private |
Definition at line 88 of file ravengui.h.
|
private |
Definition at line 122 of file ravengui.h.
|
private |
Definition at line 123 of file ravengui.h.
|
private |
Definition at line 138 of file ravengui.h.
|
private |
Definition at line 129 of file ravengui.h.
|
private |
Definition at line 135 of file ravengui.h.
|
private |
Definition at line 116 of file ravengui.h.
|
private |
Definition at line 114 of file ravengui.h.
|
private |
Definition at line 115 of file ravengui.h.
|
private |
Definition at line 108 of file ravengui.h.
|
private |
Definition at line 96 of file ravengui.h.
|
private |
Definition at line 144 of file ravengui.h.
|
private |
Keep track of previous number of blocks, to detect progress.
Definition at line 141 of file ravengui.h.
|
private |
Definition at line 128 of file ravengui.h.
|
private |
Definition at line 92 of file ravengui.h.
|
private |
Definition at line 91 of file ravengui.h.
|
private |
Definition at line 93 of file ravengui.h.
|
private |
Definition at line 98 of file ravengui.h.
|
private |
Definition at line 106 of file ravengui.h.
|
private |
Definition at line 107 of file ravengui.h.
|
private |
Definition at line 130 of file ravengui.h.
|
private |
Definition at line 136 of file ravengui.h.
|
private |
Definition at line 99 of file ravengui.h.
|
private |
Definition at line 100 of file ravengui.h.
|
private |
Definition at line 117 of file ravengui.h.
|
private |
Definition at line 103 of file ravengui.h.
|
private |
Definition at line 142 of file ravengui.h.
|
private |
Definition at line 109 of file ravengui.h.
|
private |
RVN START.
Definition at line 120 of file ravengui.h.
|
private |
RVN END.
Definition at line 133 of file ravengui.h.
|
private |
Definition at line 134 of file ravengui.h.
|
private |
Definition at line 86 of file ravengui.h.
|
private |
Definition at line 102 of file ravengui.h.
|
private |
Definition at line 101 of file ravengui.h.
|
private |
Definition at line 104 of file ravengui.h.
|
private |
Definition at line 124 of file ravengui.h.
|
private |
Definition at line 84 of file ravengui.h.
1.8.13