5 #ifndef BITCOIN_QT_BITCOINGUI_H 6 #define BITCOIN_QT_BITCOINGUI_H 8 #if defined(HAVE_CONFIG_H) 17 #include <QMainWindow> 21 #include <QSystemTrayIcon> 47 class QProgressDialog;
81 void removeAllWallets();
82 #endif // ENABLE_WALLET 189 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
198 void message(
const QString &title,
const QString &
message,
unsigned int style,
bool *
ret =
nullptr);
201 bool setCurrentWallet(
const QString&
name);
202 bool setCurrentWalletBySelectorIndex(
int index);
205 void updateWalletStatus();
212 void setEncryptionStatus(
int status);
218 void setHDStatus(
int hdEnabled);
224 void incomingTransaction(
const QString& date,
int unit,
const CAmount& amount,
const QString& type,
const QString& address,
const QString& label,
const QString& walletName);
225 #endif // ENABLE_WALLET 234 void gotoOverviewPage();
236 void gotoHistoryPage();
238 void gotoReceiveCoinsPage();
240 void gotoSendCoinsPage(QString addr =
"");
243 void gotoSignMessageTab(QString addr =
"");
245 void gotoVerifyMessageTab(QString addr =
"");
249 #endif // ENABLE_WALLET 312 #endif // BITCOIN_QT_BITCOINGUI_H void subscribeToCoreSignals()
Connect core signals to GUI client.
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
QAction * receiveCoinsAction
UnitDisplayStatusBarControl * unitDisplayControl
Local Bitcoin RPC console.
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.
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.
void updateNetworkState()
Update UI with latest network info from model.
QLabel * labelWalletHDStatusIcon
void mousePressEvent(QMouseEvent *event)
So that it responds to left-button clicks.
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 showDebugWindow()
Show debug window.
GUIUtil::ClickableLabel * labelProxyIcon
ClientModel * clientModel
void createToolBars()
Create the toolbars.
ModalOverlay * modalOverlay
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
QAction * m_wallet_selector_action
UniValue ret(UniValue::VARR)
QAction * verifyMessageAction
void dropEvent(QDropEvent *event)
void setWalletActionsEnabled(bool enabled)
Enable or disable all wallet-related actions.
HelpMessageDialog * helpMessageDialog
QLabel * progressBarLabel
QSystemTrayIcon * trayIcon
QAction * showHelpMessageAction
Modal overlay to display information about the chain-sync state.
GUIUtil::ClickableLabel * connectionsControl
QAction * backupWalletAction
void setOptionsModel(OptionsModel *optionsModel)
Lets the control know about the Options Model (and its signals)
void openOptionsDialogWithTab(OptionsDialog::Tab tab)
Open the OptionsDialog on the specified tab index.
QAction * usedReceivingAddressesAction
int64_t CAmount
Amount in satoshis (Can be negative)
BitcoinGUI(interfaces::Node &node, const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0)
void setClientModel(ClientModel *clientModel)
Set the client model.
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.
bool eventFilter(QObject *object, QEvent *event)
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
void setTrayIconVisible(bool)
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
QAction * openRPCConsoleAction
void detectShutdown()
called by a timer to check if ShutdownRequested() has been set
Cross-platform desktop notification client.
QLabel * labelWalletEncryptionIcon
GUIUtil::ClickableLabel * labelBlocksIcon
GUIUtil::ClickableProgressBar * progressBar
void showHelpMessageClicked()
Show help message dialog.
void dragEnterEvent(QDragEnterEvent *event)
Notificator * notificator
Model for Bitcoin network client.
QAction * receiveCoinsMenuAction
QAction * sendCoinsAction
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
void updateProxyIcon()
Set the proxy-enabled icon as shown in the UI.
QAction * changePassphraseAction
void closeEvent(QCloseEvent *event)
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
void changeEvent(QEvent *e)
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 showEvent(QShowEvent *event)
void setNumConnections(int count)
Set number of connections shown in the UI.
"Help message" dialog box
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 (bsha3d process).
A container for embedding all wallet-related controls into BitcoinGUI.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
void onDisplayUnitsClicked(const QPoint &point)
Shows context menu with Display Unit options by the mouse coordinates.
void createTrayIcon(const NetworkStyle *networkStyle)
Create system tray icon and notification.
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