5 #ifndef BITCOIN_QT_BITCOINGUI_H
6 #define BITCOIN_QT_BITCOINGUI_H
8 #if defined(HAVE_CONFIG_H)
17 #include <QMainWindow>
20 #include <QSystemTrayIcon>
46 struct BlockAndHeaderTipInfo;
54 class QProgressDialog;
92 void removeAllWallets();
93 #endif // ENABLE_WALLET
109 void showEvent(QShowEvent *event)
override;
111 void dropEvent(QDropEvent *event)
override;
112 bool eventFilter(QObject *
object, QEvent *event)
override;
235 void message(
const QString& title, QString
message,
unsigned int style,
bool* ret =
nullptr,
const QString& detailed_message = QString());
239 void setCurrentWalletBySelectorIndex(
int index);
242 void updateWalletStatus();
249 void setEncryptionStatus(
int status);
255 void setHDStatus(
bool privkeyDisabled,
int hdEnabled);
261 void incomingTransaction(
const QString& date,
int unit,
const CAmount& amount,
const QString& type,
const QString& address,
const QString& label,
const QString& walletName);
262 #endif // ENABLE_WALLET
272 void gotoOverviewPage();
274 void gotoHistoryPage();
276 void gotoReceiveCoinsPage();
278 void gotoSendCoinsPage(QString addr =
"");
281 void gotoSignMessageTab(QString addr =
"");
283 void gotoVerifyMessageTab(QString addr =
"");
285 void gotoLoadPSBT(
bool from_clipboard =
false);
289 #endif // ENABLE_WALLET
305 void macosDockIconActivated();
355 #endif // BITCOIN_QT_BITCOINGUI_H
void subscribeToCoreSignals()
Connect core signals to GUI client.
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
void showEvent(QShowEvent *event) override
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
QAction * receiveCoinsAction
UnitDisplayStatusBarControl * unitDisplayControl
Local Bitcoin RPC console.
QAction * m_mask_values_action
QAction * signMessageAction
void receivedURI(const QString &uri)
Signal raised when a URI was entered or dragged to the GUI.
Utility functions used by the Bitcoin Qt UI.
SynchronizationState
Current sync state passed to tip changed callbacks.
void updateNetworkState()
Update UI with latest network info from model.
QLabel * labelWalletHDStatusIcon
void showNormalIfMinimized()
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHid...
UnitDisplayStatusBarControl(const PlatformStyle *platformStyle)
QProgressDialog * progressDialog
void consoleShown(RPCConsole *console)
Signal raised when RPC console shown.
void createTrayIcon()
Create system tray icon and notification.
void showDebugWindow()
Show debug window.
GUIUtil::ClickableLabel * labelProxyIcon
ClientModel * clientModel
void createToolBars()
Create the toolbars.
QAction * m_load_psbt_action
ModalOverlay * modalOverlay
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
QAction * m_wallet_selector_action
QAction * verifyMessageAction
QAction * m_open_wallet_action
QAction * m_close_wallet_action
void setWalletActionsEnabled(bool enabled)
Enable or disable all wallet-related actions.
void setClientModel(ClientModel *clientModel=nullptr, interfaces::BlockAndHeaderTipInfo *tip_info=nullptr)
Set the client model.
Controller between interfaces::Node, WalletModel instances and the GUI.
QMenu * m_open_wallet_menu
HelpMessageDialog * helpMessageDialog
QLabel * progressBarLabel
QSystemTrayIcon * trayIcon
QAction * showHelpMessageAction
Modal overlay to display information about the chain-sync state.
void changeEvent(QEvent *e) override
GUIUtil::ClickableLabel * connectionsControl
QAction * backupWalletAction
QAction * m_load_psbt_clipboard_action
void setOptionsModel(OptionsModel *optionsModel)
Lets the control know about the Options Model (and its signals)
void dropEvent(QDropEvent *event) override
void openOptionsDialogWithTab(OptionsDialog::Tab tab)
Open the OptionsDialog on the specified tab index.
QAction * usedReceivingAddressesAction
int64_t CAmount
Amount in satoshis (Can be negative)
const NetworkStyle *const m_network_style
WalletController * m_wallet_controller
const PlatformStyle * platformStyle
QAction * toggleHideAction
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
QAction * m_wallet_selector_label_action
OptionsModel * optionsModel
QLabel * m_wallet_selector_label
void optionsClicked()
Show configuration dialog.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers, SynchronizationState sync_state)
Set number of blocks and last block date shown in the UI.
WalletFrame * walletFrame
void updateDisplayUnit(int newUnits)
When Display Units are changed on OptionsModel it will refresh the display text of the control on the...
QAction * usedSendingAddressesAction
BitcoinGUI(interfaces::Node &node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=nullptr)
void setTrayIconVisible(bool)
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
QAction * openRPCConsoleAction
QAction * m_close_all_wallets_action
void detectShutdown()
called by a timer to check if ShutdownRequested() has been set
Cross-platform desktop notification client.
Block and header tip information.
QLabel * labelWalletEncryptionIcon
GUIUtil::ClickableLabel * labelBlocksIcon
GUIUtil::ClickableProgressBar * progressBar
void showHelpMessageClicked()
Show help message dialog.
Notificator * notificator
Model for Bitcoin network client.
void mousePressEvent(QMouseEvent *event) override
So that it responds to left-button clicks.
QAction * receiveCoinsMenuAction
QAction * sendCoinsAction
QAction * m_create_wallet_action
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.
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
void updateProxyIcon()
Set the proxy-enabled icon as shown in the UI.
QAction * changePassphraseAction
bool hasTrayIcon() const
Get the tray icon status.
const std::unique_ptr< QMenu > trayIconMenu
void setPrivacy(bool privacy)
Interface from Qt to configuration data structure for Bitcoin client.
std::unique_ptr< interfaces::Handler > m_handler_question
Interface to Bitcoin wallet from Qt view code.
QAction * sendCoinsMenuAction
bool isPrivacyModeActivated() const
bool eventFilter(QObject *object, QEvent *event) override
int prevBlocks
Keep track of previous number of blocks, to detect progress.
void toggleHidden()
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
interfaces::Node & m_node
void setNumConnections(int count)
Set number of connections shown in the UI.
"Help message" dialog box
void closeEvent(QCloseEvent *event) override
QComboBox * m_wallet_selector
void createContextMenu()
Creates context menu, its actions, and wires up all the relevant signals for mouse events...
void showDebugWindowActivateConsole()
Show debug window and set focus to the console.
void createActions()
Create the main UI actions.
QAction * encryptWalletAction
void aboutClicked()
Show about dialog.
void updateHeadersSyncProgressLabel()
static const std::string DEFAULT_UIPLATFORM
Top-level interface for a bitcoin node (bitcoind process).
A container for embedding all wallet-related controls into BitcoinGUI.
void onDisplayUnitsClicked(const QPoint &point)
Shows context menu with Display Unit options by the mouse coordinates.
void createMenuBar()
Create the menu bar and sub-menus.
void onMenuSelection(QAction *action)
Tells underlying optionsModel to update its current display unit.
std::unique_ptr< interfaces::Handler > m_handler_message_box
void dragEnterEvent(QDragEnterEvent *event) override