5 #ifndef BITCOIN_QT_BITCOINGUI_H
6 #define BITCOIN_QT_BITCOINGUI_H
8 #if defined(HAVE_CONFIG_H)
9 #include "config/bitcoin-config.h"
15 #include <QMainWindow>
19 #include <QSystemTrayIcon>
39 class QProgressDialog;
67 bool addWallet(
const QString& name,
WalletModel *walletModel);
68 bool setCurrentWallet(
const QString& name);
69 void removeAllWallets();
165 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
174 void message(
const QString &title,
const QString &
message,
unsigned int style,
bool *ret = NULL);
181 void setEncryptionStatus(
int status);
187 void setHDStatus(
int hdEnabled);
192 void incomingTransaction(
const QString& date,
int unit,
const CAmount& amount,
const QString& type,
const QString& address,
const QString& label);
198 void gotoOverviewPage();
200 void gotoHistoryPage();
202 void gotoReceiveCoinsPage();
204 void gotoSendCoinsPage(QString addr =
"");
207 void gotoSignMessageTab(QString addr =
"");
209 void gotoVerifyMessageTab(QString addr =
"");
215 void optionsClicked();
int64_t CAmount
Amount in satoshis (Can be negative)
QLabel * progressBarLabel
void showNormalIfMinimized(bool fToggleHidden=false)
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHid...
static const std::string DEFAULT_UIPLATFORM
void createTrayIcon(const NetworkStyle *networkStyle)
Create system tray icon and notification.
void changeEvent(QEvent *e)
void receivedURI(const QString &uri)
Signal raised when a URI was entered or dragged to the GUI.
ModalOverlay * modalOverlay
QAction * paperWalletAction
QAction * changePassphraseAction
void dropEvent(QDropEvent *event)
QAction * receiveCoinsMenuAction
int prevBlocks
Keep track of previous number of blocks, to detect progress.
QAction * openRPCConsoleAction
QAction * toggleHideAction
void toggleNetworkActive()
Toggle networking.
QProgressBar * progressBar
QProgressDialog * progressDialog
WalletFrame * walletFrame
QAction * receiveCoinsAction
QAction * usedSendingAddressesAction
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
QAction * verifyMessageAction
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
HelpMessageDialog * helpMessageDialog
BitcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0)
void aboutClicked()
Show about dialog.
void toggleHidden()
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
QAction * encryptWalletAction
void updateNetworkState()
Update UI with latest network info from model.
void createActions()
Create the main UI actions.
void showDebugWindow()
Show debug window.
void showDebugWindowActivateConsole()
Show debug window and set focus to the console.
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
void dragEnterEvent(QDragEnterEvent *event)
QAction * usedReceivingAddressesAction
void subscribeToCoreSignals()
Connect core signals to GUI client.
void createToolBars()
Create the toolbars.
QLabel * connectionsControl
void showEvent(QShowEvent *event)
UnitDisplayStatusBarControl * unitDisplayControl
void setClientModel(ClientModel *clientModel)
Set the client model.
void setWalletActionsEnabled(bool enabled)
Enable or disable all wallet-related actions.
const PlatformStyle * platformStyle
QLabel * labelWalletEncryptionIcon
void detectShutdown()
called by a timer to check if fRequestShutdown has been set
QAction * backupWalletAction
void message(const QString &title, const QString &message, unsigned int style, bool *ret=NULL)
Notify the user of an event from the core network or transaction handling code.
QAction * sendCoinsMenuAction
QAction * showHelpMessageAction
void closeEvent(QCloseEvent *event)
ClientModel * clientModel
void updateHeadersSyncProgressLabel()
void setTrayIconVisible(bool)
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
void createMenuBar()
Create the menu bar and sub-menus.
QSystemTrayIcon * trayIcon
static const QString DEFAULT_WALLET
Display name for default wallet name.
void showHelpMessageClicked()
Show help message dialog.
QAction * sendCoinsAction
QLabel * labelWalletHDStatusIcon
void setNumConnections(int count)
Set number of connections shown in the UI.
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
QAction * signMessageAction
bool eventFilter(QObject *object, QEvent *event)
Notificator * notificator
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Model for Bitcoin network client.
"Help message" dialog box
Modal overlay to display information about the chain-sync state.
Cross-platform desktop notification client.
Interface from Qt to configuration data structure for Bitcoin client.
Local Bitcoin RPC console.
void updateDisplayUnit(int newUnits)
When Display Units are changed on OptionsModel it will refresh the display text of the control on the...
void createContextMenu()
Creates context menu, its actions, and wires up all the relevant signals for mouse events.
OptionsModel * optionsModel
void mousePressEvent(QMouseEvent *event)
So that it responds to left-button clicks.
UnitDisplayStatusBarControl(const PlatformStyle *platformStyle)
void onMenuSelection(QAction *action)
Tells underlying optionsModel to update its current display unit.
void setOptionsModel(OptionsModel *optionsModel)
Lets the control know about the Options Model (and its signals)
void onDisplayUnitsClicked(const QPoint &point)
Shows context menu with Display Unit options by the mouse coordinates.
A container for embedding all wallet-related controls into BitcoinGUI.
Interface to Bitcoin wallet from Qt view code.