Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | public: | ||||
void setClientModel(ClientModel *clientModel); | void setClientModel(ClientModel *clientModel); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
/** | /** | ||||
* Set the wallet model. | * Set the wallet model. | ||||
* The wallet model represents a bitcoin wallet, and offers access to the | * The wallet model represents a bitcoin wallet, and offers access to the | ||||
* list of transactions, address book and sending functionality. | * list of transactions, address book and sending functionality. | ||||
*/ | */ | ||||
bool addWallet(WalletModel *walletModel); | void addWallet(WalletModel *walletModel); | ||||
bool removeWallet(WalletModel *walletModel); | void removeWallet(WalletModel *walletModel); | ||||
void removeAllWallets(); | void removeAllWallets(); | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
bool enableWallet = false; | bool enableWallet = false; | ||||
protected: | protected: | ||||
void changeEvent(QEvent *e) override; | void changeEvent(QEvent *e) override; | ||||
void closeEvent(QCloseEvent *event) override; | void closeEvent(QCloseEvent *event) override; | ||||
void showEvent(QShowEvent *event) override; | void showEvent(QShowEvent *event) override; | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | private: | ||||
RPCConsole *rpcConsole = nullptr; | RPCConsole *rpcConsole = nullptr; | ||||
HelpMessageDialog *helpMessageDialog = nullptr; | HelpMessageDialog *helpMessageDialog = nullptr; | ||||
ModalOverlay *modalOverlay = nullptr; | ModalOverlay *modalOverlay = nullptr; | ||||
/** Keep track of previous number of blocks, to detect progress */ | /** Keep track of previous number of blocks, to detect progress */ | ||||
int prevBlocks = 0; | int prevBlocks = 0; | ||||
int spinnerFrame = 0; | int spinnerFrame = 0; | ||||
const PlatformStyle *platformStyle; | |||||
const Config *config; | const Config *config; | ||||
const PlatformStyle *platformStyle; | |||||
const NetworkStyle *const m_network_style; | |||||
/** Create the main UI actions. */ | /** Create the main UI actions. */ | ||||
void createActions(); | void createActions(); | ||||
/** Create the menu bar and sub-menus. */ | /** Create the menu bar and sub-menus. */ | ||||
void createMenuBar(); | void createMenuBar(); | ||||
/** Create the toolbars */ | /** Create the toolbars */ | ||||
void createToolBars(); | void createToolBars(); | ||||
/** Create system tray icon and notification */ | /** Create system tray icon and notification */ | ||||
void createTrayIcon(const NetworkStyle *networkStyle); | void createTrayIcon(); | ||||
/** Create system tray menu (or setup the dock menu) */ | /** Create system tray menu (or setup the dock menu) */ | ||||
void createTrayIconMenu(); | void createTrayIconMenu(); | ||||
/** Enable or disable all wallet-related actions */ | /** Enable or disable all wallet-related actions */ | ||||
void setWalletActionsEnabled(bool enabled); | void setWalletActionsEnabled(bool enabled); | ||||
/** Connect core signals to GUI client */ | /** Connect core signals to GUI client */ | ||||
void subscribeToCoreSignals(); | void subscribeToCoreSignals(); | ||||
Show All 32 Lines | /** Notify the user of an event from the core network or transaction | ||||
@see CClientUIInterface::MessageBoxFlags | @see CClientUIInterface::MessageBoxFlags | ||||
@param[in] ret pointer to a bool that will be modified to whether | @param[in] ret pointer to a bool that will be modified to whether | ||||
Ok was clicked (modal only) | Ok was clicked (modal only) | ||||
*/ | */ | ||||
void message(const QString &title, const QString &message, | void message(const QString &title, const QString &message, | ||||
unsigned int style, bool *ret = nullptr); | unsigned int style, bool *ret = nullptr); | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
bool setCurrentWallet(WalletModel *wallet_model); | void setCurrentWallet(WalletModel *wallet_model); | ||||
bool setCurrentWalletBySelectorIndex(int index); | void setCurrentWalletBySelectorIndex(int index); | ||||
/** Set the UI status indicators based on the currently selected wallet. | /** Set the UI status indicators based on the currently selected wallet. | ||||
*/ | */ | ||||
void updateWalletStatus(); | void updateWalletStatus(); | ||||
private: | private: | ||||
/** Set the encryption status as shown in the UI. | /** Set the encryption status as shown in the UI. | ||||
@param[in] status current encryption status | @param[in] status current encryption status | ||||
@see WalletModel::EncryptionStatus | @see WalletModel::EncryptionStatus | ||||
Show All 13 Lines | public Q_SLOTS: | ||||
void incomingTransaction(const QString &date, int unit, const Amount amount, | void incomingTransaction(const QString &date, int unit, const Amount amount, | ||||
const QString &type, const QString &address, | const QString &type, const QString &address, | ||||
const QString &label, const QString &walletName); | const QString &label, const QString &walletName); | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
private: | private: | ||||
/** Set the proxy-enabled icon as shown in the UI. */ | /** Set the proxy-enabled icon as shown in the UI. */ | ||||
void updateProxyIcon(); | void updateProxyIcon(); | ||||
void updateWindowTitle(); | |||||
public Q_SLOTS: | public Q_SLOTS: | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
/** Switch to overview (home) page */ | /** Switch to overview (home) page */ | ||||
void gotoOverviewPage(); | void gotoOverviewPage(); | ||||
/** Switch to history (transactions) page */ | /** Switch to history (transactions) page */ | ||||
void gotoHistoryPage(); | void gotoHistoryPage(); | ||||
/** Switch to receive coins page */ | /** Switch to receive coins page */ | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |