Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show All 24 Lines | |||||
class ClientModel; | class ClientModel; | ||||
class NetworkStyle; | class NetworkStyle; | ||||
class Notificator; | class Notificator; | ||||
class OptionsModel; | class OptionsModel; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
class RPCConsole; | class RPCConsole; | ||||
class SendCoinsRecipient; | class SendCoinsRecipient; | ||||
class UnitDisplayStatusBarControl; | class UnitDisplayStatusBarControl; | ||||
class WalletController; | |||||
class WalletFrame; | class WalletFrame; | ||||
class WalletModel; | class WalletModel; | ||||
class HelpMessageDialog; | class HelpMessageDialog; | ||||
class ModalOverlay; | class ModalOverlay; | ||||
class Config; | class Config; | ||||
namespace interfaces { | namespace interfaces { | ||||
Show All 30 Lines | public: | ||||
~BitcoinGUI(); | ~BitcoinGUI(); | ||||
/** | /** | ||||
* Set the client model. | * Set the client model. | ||||
* The client model represents the part of the core that communicates with | * The client model represents the part of the core that communicates with | ||||
* the P2P network, and is wallet-agnostic. | * the P2P network, and is wallet-agnostic. | ||||
*/ | */ | ||||
void setClientModel(ClientModel *clientModel); | void setClientModel(ClientModel *clientModel); | ||||
#ifdef ENABLE_WALLET | |||||
void setWalletController(WalletController *wallet_controller); | |||||
#endif | |||||
#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. | ||||
*/ | */ | ||||
void addWallet(WalletModel *walletModel); | void addWallet(WalletModel *walletModel); | ||||
void 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; | ||||
void dragEnterEvent(QDragEnterEvent *event) override; | void dragEnterEvent(QDragEnterEvent *event) override; | ||||
void dropEvent(QDropEvent *event) override; | void dropEvent(QDropEvent *event) override; | ||||
bool eventFilter(QObject *object, QEvent *event) override; | bool eventFilter(QObject *object, QEvent *event) override; | ||||
private: | private: | ||||
interfaces::Node &m_node; | interfaces::Node &m_node; | ||||
WalletController *m_wallet_controller{nullptr}; | |||||
std::unique_ptr<interfaces::Handler> m_handler_message_box; | std::unique_ptr<interfaces::Handler> m_handler_message_box; | ||||
std::unique_ptr<interfaces::Handler> m_handler_question; | std::unique_ptr<interfaces::Handler> m_handler_question; | ||||
ClientModel *clientModel = nullptr; | ClientModel *clientModel = nullptr; | ||||
WalletFrame *walletFrame = nullptr; | WalletFrame *walletFrame = nullptr; | ||||
UnitDisplayStatusBarControl *unitDisplayControl = nullptr; | UnitDisplayStatusBarControl *unitDisplayControl = nullptr; | ||||
QLabel *labelWalletEncryptionIcon = nullptr; | QLabel *labelWalletEncryptionIcon = nullptr; | ||||
QLabel *labelWalletHDStatusIcon = nullptr; | QLabel *labelWalletHDStatusIcon = nullptr; | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |