5 #ifndef PIVX_QT_PIVXGUI_H
6 #define PIVX_QT_PIVXGUI_H
8 #if defined(HAVE_CONFIG_H)
12 #include <QMainWindow>
13 #include <QStackedWidget>
14 #include <QSystemTrayIcon>
92 void message(
const QString& title,
const QString&
message,
unsigned int style,
bool* ret =
nullptr);
94 bool execDialog(QDialog *dialog,
int xDiv = 3,
int yDiv = 5);
108 bool setCurrentWallet(
const QString&
name);
109 void removeAllWallets();
158 QLabel *
op =
nullptr;
169 bool openStandardDialog(QString title =
"", QString body =
"", QString okBtn =
"OK", QString cancelBtn =
"CANCEL");
192 void macosDockIconActivated();
int64_t CAmount
Amount in PIV (Can be negative)
Model for PIVX network client.
Cross-platform desktop notification client.
MasterNodesWidget * masterNodesWidget
void createTrayIcon(const NetworkStyle *networkStyle)
Create system tray icon and notification.
QAction * toggleHideAction
bool execDialog(QDialog *dialog, int xDiv=3, int yDiv=5)
AddressesWidget * addressesWidget
std::unique_ptr< interfaces::Handler > m_handler_message_box
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
void showNormalIfMinimized(bool fToggleHidden=false)
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHid...
void themeChanged(bool isLightTheme, QString &theme)
QSystemTrayIcon * trayIcon
void requestedRestart(QStringList args)
Restart handling.
void closeEvent(QCloseEvent *event) override
bool openStandardDialog(QString title="", QString body="", QString okBtn="OK", QString cancelBtn="CANCEL")
void detectShutdown()
called by a timer to check if ShutdownRequested()
void incomingTransaction(const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address)
Show incoming transaction notification for new transactions.
void createActions(const NetworkStyle *networkStyle)
Create the main UI actions.
void changeEvent(QEvent *e) override
void receivedURI(const QString &uri)
Signal raised when a URI was entered or dragged to the GUI.
void messageInfo(const QString &message)
ClientModel * clientModel
void resizeEvent(QResizeEvent *event) override
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
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.
static const QString DEFAULT_WALLET
GovernanceWidget * governancewidget
void subscribeToCoreSignals()
Connect core signals to GUI client.
QStackedWidget * stackedContainer
ColdStakingWidget * coldStakingWidget
ReceiveWidget * receiveWidget
SettingsWidget * settingsWidget
PIVXGUI(const NetworkStyle *networkStyle, QWidget *parent=0)
void changeTheme(bool isLightTheme)
DashboardWidget * dashboard
void connectActions()
Here add every event connection.
void openNetworkMonitor()
void windowResizeEvent(QResizeEvent *event)
Notificator * notificator
void showTop(QWidget *view)
void setClientModel(ClientModel *clientModel)
Set the client model.
void openFAQ(SettingsFaqWidget::Section section=SettingsFaqWidget::Section::INTRO)
Open FAQ dialog.
void handleRestart(QStringList args)
Get restart command-line parameters and request restart.
void toggleHidden()
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
Local Bitcoin RPC console.
Interface to PIVX wallet from Qt view code.