Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <walletview.h>

+ Inheritance diagram for WalletView:
+ Collaboration diagram for WalletView:

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...
 
WalletModelgetWalletModel ()
 
void setWalletModel (WalletModel *walletModel)
 Set the wallet model. More...
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 

Private Attributes

ClientModelclientModel
 
WalletModelwalletModel
 
OverviewPageoverviewPage
 
QWidget * transactionsPage
 
ReceiveCoinsDialogreceiveCoinsPage
 
SendCoinsDialogsendCoinsPage
 
SendCoinsDialogprivateSendCoinsPage
 
AddressBookPageusedSendingAddressesPage
 
AddressBookPageusedReceivingAddressesPage
 
MasternodeListmasternodeListPage
 
TransactionViewtransactionView
 
QProgressDialog * progressDialog
 
QLabel * transactionSum
 

Detailed Description

Definition at line 35 of file walletview.h.

Constructor & Destructor Documentation

◆ WalletView()

◆ ~WalletView()

WalletView::~WalletView ( )

Definition at line 115 of file walletview.cpp.

Member Function Documentation

◆ backupWallet

void WalletView::backupWallet ( )
slot

◆ changePassphrase

void WalletView::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

void WalletView::encryptionStatusChanged ( int  status)
signal

Encryption status of wallet changed.

Referenced by setBitcoinGUI(), setWalletModel(), and updateEncryptionStatus().

◆ encryptWallet

void WalletView::encryptWallet ( bool  status)
slot

◆ getWalletModel()

WalletModel* WalletView::getWalletModel ( )
inline

Definition at line 48 of file walletview.h.

References walletModel.

◆ gotoHistoryPage

void WalletView::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 228 of file walletview.cpp.

References transactionsPage.

Referenced by setBitcoinGUI().

◆ gotoMasternodePage

void WalletView::gotoMasternodePage ( )
slot

Switch to masternode page.

Definition at line 233 of file walletview.cpp.

References masternodeListPage.

◆ gotoOverviewPage

void WalletView::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 223 of file walletview.cpp.

References overviewPage.

Referenced by WalletFrame::addWallet().

◆ gotoPrivateSendCoinsPage

void WalletView::gotoPrivateSendCoinsPage ( QString  addr = "")
slot

Switch to PrivateSend coins page.

Definition at line 255 of file walletview.cpp.

References privateSendCoinsPage, and SendCoinsDialog::setAddress().

◆ gotoReceiveCoinsPage

void WalletView::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 241 of file walletview.cpp.

References receiveCoinsPage.

◆ gotoSendCoinsPage

void WalletView::gotoSendCoinsPage ( QString  addr = "")
slot

Switch to send coins page.

Definition at line 246 of file walletview.cpp.

References sendCoinsPage, and SendCoinsDialog::setAddress().

◆ gotoSignMessageTab

void WalletView::gotoSignMessageTab ( QString  addr = "")
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

void WalletView::gotoVerifyMessageTab ( QString  addr = "")
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)

◆ hdEnabledStatusChanged

void WalletView::hdEnabledStatusChanged ( int  hdEnabled)
signal

HD-Enabled status of wallet changed (only possible during startup)

Referenced by setBitcoinGUI(), and setWalletModel().

◆ incomingTransaction

void WalletView::incomingTransaction ( const QString &  date,
int  unit,
const CAmount amount,
const QString &  type,
const QString &  address,
const QString &  label 
)
signal

Notify that a new transaction appeared.

Referenced by processNewTransaction(), and setBitcoinGUI().

◆ lockWallet

void WalletView::lockWallet ( )
slot

Lock wallet.

Definition at line 353 of file walletview.cpp.

References WalletModel::setWalletLocked(), and walletModel.

Referenced by WalletFrame::lockWallet().

◆ message

void WalletView::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal

Fired when a message should be reported to the user.

Referenced by backupWallet(), setBitcoinGUI(), setWalletModel(), and WalletView().

◆ outOfSyncWarningClicked

void WalletView::outOfSyncWarningClicked ( )
signal

Notify that the out of sync warning icon has been pressed.

Referenced by requestedSyncWarningInfo(), and WalletView().

◆ processNewTransaction

◆ requestedSyncWarningInfo

void WalletView::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)

◆ 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()

◆ showNormalIfMinimized

void WalletView::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

void WalletView::showProgress ( const QString &  title,
int  nProgress 
)
slot

Show progress dialog e.g.

for rescan

Definition at line 377 of file walletview.cpp.

References progressDialog.

Referenced by setWalletModel().

◆ trxAmount

void WalletView::trxAmount ( QString  amount)
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

void WalletView::unlockWallet ( bool  fAnonymizeOnly = false)
slot

◆ updateEncryptionStatus

void WalletView::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

void WalletView::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

void WalletView::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

ClientModel* WalletView::clientModel
private

Definition at line 60 of file walletview.h.

Referenced by processNewTransaction(), and setClientModel().

◆ masternodeListPage

MasternodeList* WalletView::masternodeListPage
private

Definition at line 70 of file walletview.h.

Referenced by gotoMasternodePage(), setClientModel(), setWalletModel(), and WalletView().

◆ overviewPage

OverviewPage* WalletView::overviewPage
private

◆ privateSendCoinsPage

SendCoinsDialog* WalletView::privateSendCoinsPage
private

Definition at line 67 of file walletview.h.

Referenced by gotoPrivateSendCoinsPage(), setClientModel(), setWalletModel(), and WalletView().

◆ progressDialog

QProgressDialog* WalletView::progressDialog
private

Definition at line 74 of file walletview.h.

Referenced by showProgress().

◆ receiveCoinsPage

ReceiveCoinsDialog* WalletView::receiveCoinsPage
private

Definition at line 65 of file walletview.h.

Referenced by gotoReceiveCoinsPage(), setWalletModel(), and WalletView().

◆ sendCoinsPage

SendCoinsDialog* WalletView::sendCoinsPage
private

◆ transactionsPage

QWidget* WalletView::transactionsPage
private

Definition at line 64 of file walletview.h.

Referenced by gotoHistoryPage(), and WalletView().

◆ transactionSum

QLabel* WalletView::transactionSum
private

Definition at line 75 of file walletview.h.

Referenced by trxAmount(), and WalletView().

◆ transactionView

TransactionView* WalletView::transactionView
private

Definition at line 72 of file walletview.h.

Referenced by setWalletModel(), and WalletView().

◆ usedReceivingAddressesPage

AddressBookPage* WalletView::usedReceivingAddressesPage
private

Definition at line 69 of file walletview.h.

Referenced by setWalletModel(), usedReceivingAddresses(), and WalletView().

◆ usedSendingAddressesPage

AddressBookPage* WalletView::usedSendingAddressesPage
private

Definition at line 68 of file walletview.h.

Referenced by setWalletModel(), usedSendingAddresses(), and WalletView().

◆ walletModel


The documentation for this class was generated from the following files:
Released under the MIT license