Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <walletview.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 | processNewTransaction (const QModelIndex &parent, int start, int) |
Show incoming transaction notification for new transactions. More... | |
void | encryptWallet (bool status) |
Encrypt the wallet. More... | |
void | backupWallet () |
Backup the wallet. More... | |
void | changePassphrase () |
Change encrypted wallet passphrase. More... | |
void | unlockWallet (bool fAnonymizeOnly=false) |
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 | updateEncryptionStatus () |
Re-emit encryption status signal. More... | |
void | showProgress (const QString &title, int nProgress) |
Show progress dialog e.g. More... | |
void | requestedSyncWarningInfo () |
User has requested more information about the out of sync state. More... | |
void | trxAmount (QString amount) |
Update selected DASH amount from transactionview. More... | |
Signals | |
void | showNormalIfMinimized () |
Signal that we want to show the main window. More... | |
void | message (const QString &title, const QString &message, unsigned int style) |
Fired when a message should be reported to the user. More... | |
void | encryptionStatusChanged (int status) |
Encryption status of wallet changed. More... | |
void | hdEnabledStatusChanged (int hdEnabled) |
HD-Enabled status of wallet changed (only possible during startup) More... | |
void | incomingTransaction (const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label) |
Notify that a new transaction appeared. More... | |
void | outOfSyncWarningClicked () |
Notify that the out of sync warning icon has been pressed. More... | |
Public Member Functions | |
WalletView (QWidget *parent) | |
~WalletView () | |
void | setBitcoinGUI (BitcoinGUI *gui) |
void | setClientModel (ClientModel *clientModel) |
Set the client model. More... | |
WalletModel * | getWalletModel () |
void | setWalletModel (WalletModel *walletModel) |
Set the wallet model. More... | |
bool | handlePaymentRequest (const SendCoinsRecipient &recipient) |
void | showOutOfSyncWarning (bool fShow) |
Private Attributes | |
ClientModel * | clientModel |
WalletModel * | walletModel |
OverviewPage * | overviewPage |
QWidget * | transactionsPage |
ReceiveCoinsDialog * | receiveCoinsPage |
SendCoinsDialog * | sendCoinsPage |
SendCoinsDialog * | privateSendCoinsPage |
AddressBookPage * | usedSendingAddressesPage |
AddressBookPage * | usedReceivingAddressesPage |
MasternodeList * | masternodeListPage |
TransactionView * | transactionView |
QProgressDialog * | progressDialog |
QLabel * | transactionSum |
Detailed Description
Definition at line 35 of file walletview.h.
Constructor & Destructor Documentation
◆ WalletView()
|
explicit |
Definition at line 34 of file walletview.cpp.
References GUIUtil::Bold, GUIUtil::disableMacFocusRect(), AddressBookPage::ForEditing, masternodeListPage, message(), outOfSyncWarningClicked(), overviewPage, privateSendCoinsPage, receiveCoinsPage, AddressBookPage::ReceivingTab, requestedSyncWarningInfo(), sendCoinsPage, AddressBookPage::SendingTab, GUIUtil::setFont(), transactionsPage, transactionSum, transactionView, trxAmount(), GUIUtil::updateFonts(), usedReceivingAddressesPage, and usedSendingAddressesPage.
◆ ~WalletView()
WalletView::~WalletView | ( | ) |
Definition at line 115 of file walletview.cpp.
Member Function Documentation
◆ backupWallet
|
slot |
Backup the wallet.
Definition at line 313 of file walletview.cpp.
References WalletModel::backupWallet(), GUIUtil::getSaveFileName(), message(), CClientUIInterface::MSG_ERROR, CClientUIInterface::MSG_INFORMATION, and walletModel.
Referenced by WalletFrame::backupWallet().
◆ changePassphrase
|
slot |
Change encrypted wallet passphrase.
Definition at line 332 of file walletview.cpp.
References AskPassphraseDialog::ChangePass, AskPassphraseDialog::setModel(), and walletModel.
Referenced by WalletFrame::changePassphrase().
◆ encryptionStatusChanged
|
signal |
Encryption status of wallet changed.
Referenced by setBitcoinGUI(), setWalletModel(), and updateEncryptionStatus().
◆ encryptWallet
|
slot |
Encrypt the wallet.
Definition at line 302 of file walletview.cpp.
References AskPassphraseDialog::Decrypt, AskPassphraseDialog::Encrypt, AskPassphraseDialog::setModel(), updateEncryptionStatus(), and walletModel.
Referenced by WalletFrame::encryptWallet().
◆ getWalletModel()
|
inline |
Definition at line 48 of file walletview.h.
References walletModel.
◆ gotoHistoryPage
|
slot |
Switch to history (transactions) page.
Definition at line 228 of file walletview.cpp.
References transactionsPage.
Referenced by setBitcoinGUI().
◆ gotoMasternodePage
|
slot |
Switch to masternode page.
Definition at line 233 of file walletview.cpp.
References masternodeListPage.
◆ gotoOverviewPage
|
slot |
Switch to overview (home) page.
Definition at line 223 of file walletview.cpp.
References overviewPage.
Referenced by WalletFrame::addWallet().
◆ gotoPrivateSendCoinsPage
|
slot |
Switch to PrivateSend coins page.
Definition at line 255 of file walletview.cpp.
References privateSendCoinsPage, and SendCoinsDialog::setAddress().
◆ gotoReceiveCoinsPage
|
slot |
Switch to receive coins page.
Definition at line 241 of file walletview.cpp.
References receiveCoinsPage.
◆ gotoSendCoinsPage
|
slot |
Switch to send coins page.
Definition at line 246 of file walletview.cpp.
References sendCoinsPage, and SendCoinsDialog::setAddress().
◆ gotoSignMessageTab
|
slot |
Show Sign/Verify Message dialog and switch to sign message tab.
Definition at line 263 of file walletview.cpp.
References SignVerifyMessageDialog::setAddress_SM(), SignVerifyMessageDialog::setModel(), SignVerifyMessageDialog::showTab_SM(), and walletModel.
Referenced by WalletFrame::gotoSignMessageTab().
◆ gotoVerifyMessageTab
|
slot |
Show Sign/Verify Message dialog and switch to verify message tab.
Definition at line 275 of file walletview.cpp.
References SignVerifyMessageDialog::setAddress_VM(), SignVerifyMessageDialog::setModel(), SignVerifyMessageDialog::showTab_VM(), and walletModel.
Referenced by WalletFrame::gotoVerifyMessageTab().
◆ handlePaymentRequest()
bool WalletView::handlePaymentRequest | ( | const SendCoinsRecipient & | recipient | ) |
Definition at line 287 of file walletview.cpp.
References SendCoinsDialog::handlePaymentRequest(), and sendCoinsPage.
Referenced by WalletFrame::handlePaymentRequest().
◆ hdEnabledStatusChanged
|
signal |
HD-Enabled status of wallet changed (only possible during startup)
Referenced by setBitcoinGUI(), and setWalletModel().
◆ incomingTransaction
|
signal |
Notify that a new transaction appeared.
Referenced by processNewTransaction(), and setBitcoinGUI().
◆ lockWallet
|
slot |
Lock wallet.
Definition at line 353 of file walletview.cpp.
References WalletModel::setWalletLocked(), and walletModel.
Referenced by WalletFrame::lockWallet().
◆ message
|
signal |
Fired when a message should be reported to the user.
Referenced by backupWallet(), setBitcoinGUI(), setWalletModel(), and WalletView().
◆ outOfSyncWarningClicked
|
signal |
Notify that the out of sync warning icon has been pressed.
Referenced by requestedSyncWarningInfo(), and WalletView().
◆ processNewTransaction
|
slot |
Show incoming transaction notification for new transactions.
The new items are those between start and end inclusive, under the given parent item.
Definition at line 194 of file walletview.cpp.
References TransactionTableModel::AddressRole, TransactionTableModel::Amount, clientModel, TransactionTableModel::data(), TransactionTableModel::Date, OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), WalletModel::getTransactionTableModel(), incomingTransaction(), TransactionTableModel::index(), ClientModel::inInitialBlockDownload(), TransactionTableModel::LabelRole, TransactionRecord::PrivateSendCollateralPayment, TransactionRecord::PrivateSendCreateDenominations, TransactionRecord::PrivateSendDenominate, TransactionRecord::PrivateSendMakeCollaterals, TransactionTableModel::processingQueuedTransactions(), TransactionTableModel::Type, TransactionTableModel::TypeRole, and walletModel.
Referenced by setWalletModel().
◆ requestedSyncWarningInfo
|
slot |
User has requested more information about the out of sync state.
Definition at line 400 of file walletview.cpp.
References outOfSyncWarningClicked().
Referenced by WalletView().
◆ setBitcoinGUI()
void WalletView::setBitcoinGUI | ( | BitcoinGUI * | gui | ) |
Definition at line 119 of file walletview.cpp.
References encryptionStatusChanged(), gotoHistoryPage(), hdEnabledStatusChanged(), incomingTransaction(), message(), and overviewPage.
Referenced by WalletFrame::addWallet().
◆ setClientModel()
void WalletView::setClientModel | ( | ClientModel * | clientModel | ) |
Set the client model.
The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic.
Definition at line 140 of file walletview.cpp.
References clientModel, masternodeListPage, overviewPage, privateSendCoinsPage, sendCoinsPage, OverviewPage::setClientModel(), MasternodeList::setClientModel(), and SendCoinsDialog::setClientModel().
Referenced by WalletFrame::addWallet().
◆ setWalletModel()
void WalletView::setWalletModel | ( | WalletModel * | walletModel | ) |
Set the wallet model.
The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending functionality.
Definition at line 153 of file walletview.cpp.
References encryptionStatusChanged(), WalletModel::getAddressTableModel(), WalletModel::getTransactionTableModel(), WalletModel::hdEnabled(), hdEnabledStatusChanged(), masternodeListPage, message(), overviewPage, privateSendCoinsPage, processNewTransaction(), receiveCoinsPage, sendCoinsPage, TransactionView::setModel(), SendCoinsDialog::setModel(), AddressBookPage::setModel(), ReceiveCoinsDialog::setModel(), OverviewPage::setWalletModel(), MasternodeList::setWalletModel(), showProgress(), transactionView, unlockWallet(), updateEncryptionStatus(), usedReceivingAddressesPage, usedSendingAddressesPage, and walletModel.
Referenced by WalletFrame::addWallet().
◆ showNormalIfMinimized
|
signal |
Signal that we want to show the main window.
◆ showOutOfSyncWarning()
void WalletView::showOutOfSyncWarning | ( | bool | fShow | ) |
Definition at line 292 of file walletview.cpp.
References overviewPage, and OverviewPage::showOutOfSyncWarning().
Referenced by WalletFrame::addWallet().
◆ showProgress
|
slot |
Show progress dialog e.g.
for rescan
Definition at line 377 of file walletview.cpp.
References progressDialog.
Referenced by setWalletModel().
◆ trxAmount
|
slot |
Update selected DASH amount from transactionview.
Update wallet with the sum of the selected transactions.
Definition at line 406 of file walletview.cpp.
References transactionSum.
Referenced by WalletView().
◆ unlockWallet
|
slot |
Ask for passphrase to unlock wallet temporarily.
Definition at line 339 of file walletview.cpp.
References WalletModel::getEncryptionStatus(), WalletModel::Locked, AskPassphraseDialog::setModel(), AskPassphraseDialog::Unlock, WalletModel::UnlockedForMixingOnly, AskPassphraseDialog::UnlockMixing, and walletModel.
Referenced by setWalletModel(), and WalletFrame::unlockWallet().
◆ updateEncryptionStatus
|
slot |
Re-emit encryption status signal.
Definition at line 297 of file walletview.cpp.
References encryptionStatusChanged(), WalletModel::getEncryptionStatus(), and walletModel.
Referenced by encryptWallet(), WalletFrame::setCurrentWallet(), and setWalletModel().
◆ usedReceivingAddresses
|
slot |
Show used receiving addresses.
Definition at line 369 of file walletview.cpp.
References GUIUtil::bringToFront(), usedReceivingAddressesPage, and walletModel.
Referenced by WalletFrame::usedReceivingAddresses().
◆ usedSendingAddresses
|
slot |
Show used sending addresses.
Definition at line 361 of file walletview.cpp.
References GUIUtil::bringToFront(), usedSendingAddressesPage, and walletModel.
Referenced by WalletFrame::usedSendingAddresses().
Member Data Documentation
◆ clientModel
|
private |
Definition at line 60 of file walletview.h.
Referenced by processNewTransaction(), and setClientModel().
◆ masternodeListPage
|
private |
Definition at line 70 of file walletview.h.
Referenced by gotoMasternodePage(), setClientModel(), setWalletModel(), and WalletView().
◆ overviewPage
|
private |
Definition at line 63 of file walletview.h.
Referenced by gotoOverviewPage(), setBitcoinGUI(), setClientModel(), setWalletModel(), showOutOfSyncWarning(), and WalletView().
◆ privateSendCoinsPage
|
private |
Definition at line 67 of file walletview.h.
Referenced by gotoPrivateSendCoinsPage(), setClientModel(), setWalletModel(), and WalletView().
◆ progressDialog
|
private |
Definition at line 74 of file walletview.h.
Referenced by showProgress().
◆ receiveCoinsPage
|
private |
Definition at line 65 of file walletview.h.
Referenced by gotoReceiveCoinsPage(), setWalletModel(), and WalletView().
◆ sendCoinsPage
|
private |
Definition at line 66 of file walletview.h.
Referenced by gotoSendCoinsPage(), handlePaymentRequest(), setClientModel(), setWalletModel(), and WalletView().
◆ transactionsPage
|
private |
Definition at line 64 of file walletview.h.
Referenced by gotoHistoryPage(), and WalletView().
◆ transactionSum
|
private |
Definition at line 75 of file walletview.h.
Referenced by trxAmount(), and WalletView().
◆ transactionView
|
private |
Definition at line 72 of file walletview.h.
Referenced by setWalletModel(), and WalletView().
◆ usedReceivingAddressesPage
|
private |
Definition at line 69 of file walletview.h.
Referenced by setWalletModel(), usedReceivingAddresses(), and WalletView().
◆ usedSendingAddressesPage
|
private |
Definition at line 68 of file walletview.h.
Referenced by setWalletModel(), usedSendingAddresses(), and WalletView().
◆ walletModel
|
private |
Definition at line 61 of file walletview.h.
Referenced by backupWallet(), changePassphrase(), encryptWallet(), getWalletModel(), gotoSignMessageTab(), gotoVerifyMessageTab(), lockWallet(), processNewTransaction(), setWalletModel(), unlockWallet(), updateEncryptionStatus(), usedReceivingAddresses(), and usedSendingAddresses().
The documentation for this class was generated from the following files:
- src/qt/walletview.h
- src/qt/walletview.cpp