![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
PIVX GUI main class. More...
#include <pivxgui.h>
Public Slots | |
| void | changeTheme (bool isLightTheme) |
| void | goToDashboard () |
| void | goToSend () |
| void | goToReceive () |
| void | goToAddresses () |
| void | goToMasterNodes () |
| void | goToGovernance () |
| void | goToColdStaking () |
| void | goToSettings () |
| void | goToSettingsInfo () |
| void | openNetworkMonitor () |
| void | connectActions () |
| Here add every event connection. More... | |
| void | handleRestart (QStringList args) |
| Get restart command-line parameters and request restart. 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 | messageInfo (const QString &message) |
| bool | execDialog (QDialog *dialog, int xDiv=3, int yDiv=5) |
| void | openFAQ (SettingsFaqWidget::Section section=SettingsFaqWidget::Section::INTRO) |
| Open FAQ dialog. More... | |
| void | incomingTransaction (const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address) |
| Show incoming transaction notification for new transactions. More... | |
| void | detectShutdown () |
| called by a timer to check if ShutdownRequested() More... | |
Signals | |
| void | themeChanged (bool isLightTheme, QString &theme) |
| void | windowResizeEvent (QResizeEvent *event) |
| 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 | |
| PIVXGUI (const NetworkStyle *networkStyle, QWidget *parent=0) | |
| ~PIVXGUI () | |
| void | setClientModel (ClientModel *clientModel) |
| Set the client model. More... | |
| void | resizeEvent (QResizeEvent *event) override |
| void | showHide (bool show) |
| int | getNavWidth () |
Static Public Attributes | |
| static const QString | DEFAULT_WALLET = "~Default" |
Protected Member Functions | |
| void | changeEvent (QEvent *e) override |
| void | closeEvent (QCloseEvent *event) override |
Private Slots | |
| 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 | trayIconActivated (QSystemTrayIcon::ActivationReason reason) |
| Handle tray icon clicked. More... | |
Private Member Functions | |
| void | createActions (const NetworkStyle *networkStyle) |
| Create the main UI actions. 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 | showTop (QWidget *view) |
| bool | openStandardDialog (QString title="", QString body="", QString okBtn="OK", QString cancelBtn="CANCEL") |
| void | subscribeToCoreSignals () |
| Connect core signals to GUI client. More... | |
| void | unsubscribeFromCoreSignals () |
| Disconnect core signals from GUI client. More... | |
Private Attributes | |
| std::unique_ptr< interfaces::Handler > | m_handler_message_box |
| bool | enableWallet |
| ClientModel * | clientModel = nullptr |
| MNModel * | mnModel = nullptr |
| QAction * | quitAction = nullptr |
| QAction * | toggleHideAction = nullptr |
| NavMenuWidget * | navMenu = nullptr |
| TopBar * | topBar = nullptr |
| QStackedWidget * | stackedContainer = nullptr |
| DashboardWidget * | dashboard = nullptr |
| SendWidget * | sendWidget = nullptr |
| ReceiveWidget * | receiveWidget = nullptr |
| AddressesWidget * | addressesWidget = nullptr |
| MasterNodesWidget * | masterNodesWidget = nullptr |
| ColdStakingWidget * | coldStakingWidget = nullptr |
| GovernanceWidget * | governancewidget {nullptr} |
| SettingsWidget * | settingsWidget = nullptr |
| SnackBar * | snackBar = nullptr |
| RPCConsole * | rpcConsole = nullptr |
| QSystemTrayIcon * | trayIcon = nullptr |
| QMenu * | trayIconMenu = nullptr |
| Notificator * | notificator = nullptr |
| QLabel * | op = nullptr |
| bool | opEnabled = false |
PIVX GUI main class.
This class represents the main window of the PIVX UI. It communicates with both the client and wallet models to give the user an up-to-date view of the current core state.
|
explicit |
Definition at line 40 of file pivxgui.cpp.
| PIVXGUI::~PIVXGUI | ( | ) |
|
overrideprotected |
|
slot |
Definition at line 551 of file pivxgui.cpp.
|
overrideprotected |
|
slot |
Here add every event connection.
Definition at line 186 of file pivxgui.cpp.
|
private |
Create the main UI actions.
Definition at line 169 of file pivxgui.cpp.
|
private |
Create system tray icon and notification.
Definition at line 212 of file pivxgui.cpp.
|
private |
Create system tray menu (or setup the dock menu)
Definition at line 290 of file pivxgui.cpp.
|
slot |
called by a timer to check if ShutdownRequested()
Definition at line 479 of file pivxgui.cpp.
|
slot |
Definition at line 574 of file pivxgui.cpp.
| int PIVXGUI::getNavWidth | ( | ) |
|
slot |
Definition at line 501 of file pivxgui.cpp.
|
slot |
Definition at line 512 of file pivxgui.cpp.
|
slot |
Definition at line 488 of file pivxgui.cpp.
|
slot |
Definition at line 517 of file pivxgui.cpp.
|
slot |
Definition at line 506 of file pivxgui.cpp.
|
slot |
Definition at line 533 of file pivxgui.cpp.
|
slot |
Definition at line 496 of file pivxgui.cpp.
|
slot |
Definition at line 522 of file pivxgui.cpp.
|
slot |
|
slot |
Get restart command-line parameters and request restart.
Definition at line 239 of file pivxgui.cpp.
|
slot |
Show incoming transaction notification for new transactions.
|
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 381 of file pivxgui.cpp.
|
slot |
Definition at line 372 of file pivxgui.cpp.
|
slot |
Open FAQ dialog.
Definition at line 612 of file pivxgui.cpp.
|
slot |
|
private |
Definition at line 440 of file pivxgui.cpp.
|
signal |
Signal raised when a URI was entered or dragged to the GUI.
|
signal |
Restart handling.
|
override |
| void PIVXGUI::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 246 of file pivxgui.cpp.
| void PIVXGUI::showHide | ( | bool | show | ) |
Definition at line 579 of file pivxgui.cpp.
|
privateslot |
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true.
Definition at line 463 of file pivxgui.cpp.
|
private |
Definition at line 543 of file pivxgui.cpp.
|
private |
Connect core signals to GUI client.
Definition at line 723 of file pivxgui.cpp.
|
signal |
|
privateslot |
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
Definition at line 474 of file pivxgui.cpp.
|
privateslot |
Handle tray icon clicked.
Definition at line 321 of file pivxgui.cpp.
|
private |
Disconnect core signals from GUI client.
Definition at line 729 of file pivxgui.cpp.
|
signal |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |