Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A container for embedding all wallet-related controls into BitcoinGUI. More...
#include <walletframe.h>
Public Slots | |
void | gotoOverviewPage () |
Switch to overview (home) page. More... | |
void | gotoHistoryPage () |
Switch to history (transactions) page. More... | |
void | gotoMasternodePage () |
Switch to masternode page. More... | |
void | gotoReceiveCoinsPage () |
Switch to receive coins page. More... | |
void | gotoSendCoinsPage (QString addr="") |
Switch to send coins page. More... | |
void | gotoPrivateSendCoinsPage (QString addr="") |
Switch to PrivateSend coins page. More... | |
void | gotoSignMessageTab (QString addr="") |
Show Sign/Verify Message dialog and switch to sign message tab. More... | |
void | gotoVerifyMessageTab (QString addr="") |
Show Sign/Verify Message dialog and switch to verify message tab. More... | |
void | encryptWallet (bool status) |
Encrypt the wallet. More... | |
void | backupWallet () |
Backup the wallet. More... | |
void | changePassphrase () |
Change encrypted wallet passphrase. More... | |
void | unlockWallet () |
Ask for passphrase to unlock wallet temporarily. More... | |
void | lockWallet () |
Lock wallet. More... | |
void | usedSendingAddresses () |
Show used sending addresses. More... | |
void | usedReceivingAddresses () |
Show used receiving addresses. More... | |
void | outOfSyncWarningClicked () |
Pass on signal over requested out-of-sync-warning information. More... | |
Signals | |
void | requestedSyncWarningInfo () |
Notify that the user has requested more information about the out-of-sync warning. More... | |
Public Member Functions | |
WalletFrame (BitcoinGUI *_gui=0) | |
~WalletFrame () | |
void | setClientModel (ClientModel *clientModel) |
bool | addWallet (const QString &name, WalletModel *walletModel) |
bool | setCurrentWallet (const QString &name) |
bool | removeWallet (const QString &name) |
void | removeAllWallets () |
bool | handlePaymentRequest (const SendCoinsRecipient &recipient) |
void | showOutOfSyncWarning (bool fShow) |
WalletView * | currentWalletView () |
Private Attributes | |
QStackedWidget * | walletStack |
BitcoinGUI * | gui |
ClientModel * | clientModel |
QMap< QString, WalletView * > | mapWalletViews |
bool | bOutOfSync |
Detailed Description
A container for embedding all wallet-related controls into BitcoinGUI.
The purpose of this class is to allow future refinements of the wallet controls with minimal need for further modifications to BitcoinGUI, thus greatly simplifying merges while reducing the risk of breaking top-level stuff.
Definition at line 28 of file walletframe.h.
Constructor & Destructor Documentation
◆ WalletFrame()
|
explicit |
Definition at line 16 of file walletframe.cpp.
References walletStack.
◆ ~WalletFrame()
WalletFrame::~WalletFrame | ( | ) |
Definition at line 32 of file walletframe.cpp.
Member Function Documentation
◆ addWallet()
bool WalletFrame::addWallet | ( | const QString & | name, |
WalletModel * | walletModel | ||
) |
Definition at line 41 of file walletframe.cpp.
References bOutOfSync, clientModel, WalletView::gotoOverviewPage(), gui, mapWalletViews, name, outOfSyncWarningClicked(), WalletView::setBitcoinGUI(), WalletView::setClientModel(), WalletView::setWalletModel(), WalletView::showOutOfSyncWarning(), and walletStack.
◆ backupWallet
|
slot |
Backup the wallet.
Definition at line 176 of file walletframe.cpp.
References WalletView::backupWallet(), and currentWalletView().
◆ changePassphrase
|
slot |
Change encrypted wallet passphrase.
Definition at line 183 of file walletframe.cpp.
References WalletView::changePassphrase(), and currentWalletView().
◆ currentWalletView()
WalletView * WalletFrame::currentWalletView | ( | ) |
Definition at line 218 of file walletframe.cpp.
References walletStack.
Referenced by backupWallet(), changePassphrase(), encryptWallet(), gotoSignMessageTab(), gotoVerifyMessageTab(), handlePaymentRequest(), lockWallet(), unlockWallet(), usedReceivingAddresses(), and usedSendingAddresses().
◆ encryptWallet
|
slot |
Encrypt the wallet.
Definition at line 169 of file walletframe.cpp.
References currentWalletView(), and WalletView::encryptWallet().
◆ gotoHistoryPage
|
slot |
Switch to history (transactions) page.
Definition at line 119 of file walletframe.cpp.
References mapWalletViews.
◆ gotoMasternodePage
|
slot |
Switch to masternode page.
Definition at line 126 of file walletframe.cpp.
References mapWalletViews.
◆ gotoOverviewPage
|
slot |
Switch to overview (home) page.
Definition at line 112 of file walletframe.cpp.
References mapWalletViews.
◆ gotoPrivateSendCoinsPage
|
slot |
Switch to PrivateSend coins page.
Definition at line 147 of file walletframe.cpp.
References mapWalletViews.
◆ gotoReceiveCoinsPage
|
slot |
Switch to receive coins page.
Definition at line 133 of file walletframe.cpp.
References mapWalletViews.
◆ gotoSendCoinsPage
|
slot |
Switch to send coins page.
Definition at line 140 of file walletframe.cpp.
References mapWalletViews.
◆ gotoSignMessageTab
|
slot |
Show Sign/Verify Message dialog and switch to sign message tab.
Definition at line 155 of file walletframe.cpp.
References currentWalletView(), and WalletView::gotoSignMessageTab().
◆ gotoVerifyMessageTab
|
slot |
Show Sign/Verify Message dialog and switch to verify message tab.
Definition at line 162 of file walletframe.cpp.
References currentWalletView(), and WalletView::gotoVerifyMessageTab().
◆ handlePaymentRequest()
bool WalletFrame::handlePaymentRequest | ( | const SendCoinsRecipient & | recipient | ) |
Definition at line 95 of file walletframe.cpp.
References currentWalletView(), and WalletView::handlePaymentRequest().
◆ lockWallet
|
slot |
Lock wallet.
Definition at line 197 of file walletframe.cpp.
References currentWalletView(), and WalletView::lockWallet().
◆ outOfSyncWarningClicked
|
slot |
Pass on signal over requested out-of-sync-warning information.
Definition at line 223 of file walletframe.cpp.
References requestedSyncWarningInfo().
Referenced by addWallet().
◆ removeAllWallets()
void WalletFrame::removeAllWallets | ( | ) |
Definition at line 87 of file walletframe.cpp.
References mapWalletViews, and walletStack.
◆ removeWallet()
bool WalletFrame::removeWallet | ( | const QString & | name | ) |
Definition at line 77 of file walletframe.cpp.
References mapWalletViews, name, and walletStack.
◆ requestedSyncWarningInfo
|
signal |
Notify that the user has requested more information about the out-of-sync warning.
Referenced by outOfSyncWarningClicked().
◆ setClientModel()
void WalletFrame::setClientModel | ( | ClientModel * | clientModel | ) |
Definition at line 36 of file walletframe.cpp.
References clientModel.
Referenced by BitcoinGUI::setClientModel().
◆ setCurrentWallet()
bool WalletFrame::setCurrentWallet | ( | const QString & | name | ) |
Definition at line 65 of file walletframe.cpp.
References mapWalletViews, name, WalletView::updateEncryptionStatus(), and walletStack.
◆ showOutOfSyncWarning()
void WalletFrame::showOutOfSyncWarning | ( | bool | fShow | ) |
Definition at line 104 of file walletframe.cpp.
References bOutOfSync, and mapWalletViews.
Referenced by BitcoinGUI::setAdditionalDataSyncProgress(), and BitcoinGUI::setNumBlocks().
◆ unlockWallet
|
slot |
Ask for passphrase to unlock wallet temporarily.
Definition at line 190 of file walletframe.cpp.
References currentWalletView(), and WalletView::unlockWallet().
◆ usedReceivingAddresses
|
slot |
Show used receiving addresses.
Definition at line 211 of file walletframe.cpp.
References currentWalletView(), and WalletView::usedReceivingAddresses().
◆ usedSendingAddresses
|
slot |
Show used sending addresses.
Definition at line 204 of file walletframe.cpp.
References currentWalletView(), and WalletView::usedSendingAddresses().
Member Data Documentation
◆ bOutOfSync
|
private |
Definition at line 57 of file walletframe.h.
Referenced by addWallet(), and showOutOfSyncWarning().
◆ clientModel
|
private |
Definition at line 54 of file walletframe.h.
Referenced by addWallet(), and setClientModel().
◆ gui
|
private |
Definition at line 53 of file walletframe.h.
Referenced by addWallet().
◆ mapWalletViews
|
private |
Definition at line 55 of file walletframe.h.
Referenced by addWallet(), gotoHistoryPage(), gotoMasternodePage(), gotoOverviewPage(), gotoPrivateSendCoinsPage(), gotoReceiveCoinsPage(), gotoSendCoinsPage(), removeAllWallets(), removeWallet(), setCurrentWallet(), and showOutOfSyncWarning().
◆ walletStack
|
private |
Definition at line 52 of file walletframe.h.
Referenced by addWallet(), currentWalletView(), removeAllWallets(), removeWallet(), setCurrentWallet(), and WalletFrame().
The documentation for this class was generated from the following files:
- src/qt/walletframe.h
- src/qt/walletframe.cpp