![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include <walletview.h>
Public Slots | |
void | gotoOverviewPage () |
Switch to overview (home) page. More... | |
void | gotoBalancesPage () |
Switch to balances page. More... | |
void | gotoHistoryPage () |
Switch to history (transactions) page. More... | |
void | gotoReceiveCoinsPage () |
Switch to receive coins page. More... | |
void | gotoSendCoinsPage (QString addr="") |
Switch to send 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 () |
Ask for passphrase to unlock wallet temporarily. 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... | |
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 | incomingTransaction (const QString &date, int unit, qint64 amount, const QString &type, const QString &address) |
Notify that a new transaction appeared. More... | |
Public Member Functions | |
WalletView (QWidget *parent) | |
~WalletView () | |
void | setBitcoinGUI (BitcoinGUI *gui) |
void | setClientModel (ClientModel *clientModel) |
Set the client model. More... | |
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 |
QWidget * | balancesPage |
ReceiveCoinsDialog * | receiveCoinsPage |
QWidget * | sendCoinsPage |
SendCoinsDialog * | sendCoinsTab |
SendMPDialog * | sendMPTab |
TransactionView * | transactionView |
BalancesView * | balancesView |
QProgressDialog * | progressDialog |
Definition at line 32 of file walletview.h.
|
explicit |
Definition at line 38 of file walletview.cpp.
References balancesPage, balancesView, message(), overviewPage, receiveCoinsPage, sendCoinsPage, sendCoinsTab, sendMPTab, transactionsPage, and transactionView.
WalletView::~WalletView | ( | ) |
Definition at line 117 of file walletview.cpp.
|
slot |
Backup the wallet.
Definition at line 272 of file walletview.cpp.
References WalletModel::backupWallet(), GUIUtil::getSaveFileName(), message(), CClientUIInterface::MSG_ERROR, CClientUIInterface::MSG_INFORMATION, and walletModel.
Referenced by WalletFrame::backupWallet().
|
slot |
Change encrypted wallet passphrase.
Definition at line 291 of file walletview.cpp.
References AskPassphraseDialog::ChangePass, AskPassphraseDialog::setModel(), and walletModel.
Referenced by WalletFrame::changePassphrase().
|
signal |
Encryption status of wallet changed.
Definition at line 168 of file moc_walletview.cpp.
Referenced by setBitcoinGUI(), setWalletModel(), and updateEncryptionStatus().
|
slot |
Encrypt the wallet.
Definition at line 261 of file walletview.cpp.
References AskPassphraseDialog::Decrypt, AskPassphraseDialog::Encrypt, AskPassphraseDialog::setModel(), updateEncryptionStatus(), and walletModel.
Referenced by WalletFrame::encryptWallet().
|
slot |
|
slot |
Switch to history (transactions) page.
Definition at line 204 of file walletview.cpp.
References transactionsPage.
Referenced by setBitcoinGUI().
|
slot |
Switch to overview (home) page.
Definition at line 194 of file walletview.cpp.
References overviewPage.
Referenced by WalletFrame::addWallet().
|
slot |
Switch to receive coins page.
Definition at line 209 of file walletview.cpp.
References receiveCoinsPage.
|
slot |
Switch to send coins page.
Definition at line 214 of file walletview.cpp.
References sendCoinsPage, sendCoinsTab, and SendCoinsDialog::setAddress().
|
slot |
Show Sign/Verify Message dialog and switch to sign message tab.
Definition at line 222 of file walletview.cpp.
References SignVerifyMessageDialog::setAddress_SM(), SignVerifyMessageDialog::setModel(), SignVerifyMessageDialog::showTab_SM(), and walletModel.
Referenced by WalletFrame::gotoSignMessageTab().
|
slot |
Show Sign/Verify Message dialog and switch to verify message tab.
Definition at line 234 of file walletview.cpp.
References SignVerifyMessageDialog::setAddress_VM(), SignVerifyMessageDialog::setModel(), SignVerifyMessageDialog::showTab_VM(), and walletModel.
Referenced by WalletFrame::gotoVerifyMessageTab().
bool WalletView::handlePaymentRequest | ( | const SendCoinsRecipient & | recipient | ) |
Definition at line 246 of file walletview.cpp.
References SendCoinsDialog::handlePaymentRequest(), and sendCoinsTab.
Referenced by WalletFrame::handlePaymentRequest().
|
signal |
Notify that a new transaction appeared.
Definition at line 175 of file moc_walletview.cpp.
Referenced by processNewTransaction(), and setBitcoinGUI().
|
signal |
Fired when a message should be reported to the user.
Definition at line 161 of file moc_walletview.cpp.
Referenced by backupWallet(), setBitcoinGUI(), setWalletModel(), and WalletView().
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 178 of file walletview.cpp.
References TransactionTableModel::Amount, clientModel, TransactionTableModel::Date, OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), WalletModel::getTransactionTableModel(), incomingTransaction(), TransactionTableModel::index(), ClientModel::inInitialBlockDownload(), TransactionTableModel::ToAddress, TransactionTableModel::Type, and walletModel.
Referenced by setWalletModel().
void WalletView::setBitcoinGUI | ( | BitcoinGUI * | gui | ) |
Definition at line 121 of file walletview.cpp.
References encryptionStatusChanged(), gotoHistoryPage(), incomingTransaction(), message(), and overviewPage.
Referenced by WalletFrame::addWallet().
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 139 of file walletview.cpp.
References clientModel, overviewPage, and OverviewPage::setClientModel().
Referenced by WalletFrame::addWallet().
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 146 of file walletview.cpp.
References encryptionStatusChanged(), WalletModel::getTransactionTableModel(), message(), overviewPage, processNewTransaction(), receiveCoinsPage, sendCoinsTab, sendMPTab, SendMPDialog::setModel(), SendCoinsDialog::setModel(), TransactionView::setModel(), ReceiveCoinsDialog::setModel(), OverviewPage::setWalletModel(), showProgress(), transactionView, unlockWallet(), updateEncryptionStatus(), and walletModel.
Referenced by WalletFrame::addWallet().
|
signal |
Signal that we want to show the main window.
Definition at line 155 of file moc_walletview.cpp.
void WalletView::showOutOfSyncWarning | ( | bool | fShow | ) |
Definition at line 251 of file walletview.cpp.
References overviewPage, and OverviewPage::showOutOfSyncWarning().
Referenced by WalletFrame::addWallet().
|
slot |
Show progress dialog e.g.
for rescan
Definition at line 331 of file walletview.cpp.
References progressDialog.
Referenced by setWalletModel().
|
slot |
Ask for passphrase to unlock wallet temporarily.
Definition at line 298 of file walletview.cpp.
References WalletModel::getEncryptionStatus(), WalletModel::Locked, AskPassphraseDialog::setModel(), AskPassphraseDialog::Unlock, and walletModel.
Referenced by setWalletModel(), and WalletFrame::unlockWallet().
|
slot |
Re-emit encryption status signal.
Definition at line 256 of file walletview.cpp.
References encryptionStatusChanged(), WalletModel::getEncryptionStatus(), and walletModel.
Referenced by encryptWallet(), WalletFrame::setCurrentWallet(), and setWalletModel().
|
slot |
Show used receiving addresses.
Definition at line 321 of file walletview.cpp.
References AddressBookPage::ForEditing, WalletModel::getAddressTableModel(), AddressBookPage::ReceivingTab, AddressBookPage::setModel(), and walletModel.
Referenced by WalletFrame::usedReceivingAddresses().
|
slot |
Show used sending addresses.
Definition at line 311 of file walletview.cpp.
References AddressBookPage::ForEditing, WalletModel::getAddressTableModel(), AddressBookPage::SendingTab, AddressBookPage::setModel(), and walletModel.
Referenced by WalletFrame::usedSendingAddresses().
|
private |
Definition at line 61 of file walletview.h.
Referenced by gotoBalancesPage(), and WalletView().
|
private |
Definition at line 70 of file walletview.h.
Referenced by WalletView().
|
private |
Definition at line 56 of file walletview.h.
Referenced by processNewTransaction(), and setClientModel().
|
private |
Definition at line 59 of file walletview.h.
Referenced by gotoOverviewPage(), setBitcoinGUI(), setClientModel(), setWalletModel(), showOutOfSyncWarning(), and WalletView().
|
private |
Definition at line 72 of file walletview.h.
Referenced by showProgress().
|
private |
Definition at line 63 of file walletview.h.
Referenced by gotoReceiveCoinsPage(), setWalletModel(), and WalletView().
|
private |
Definition at line 65 of file walletview.h.
Referenced by gotoSendCoinsPage(), and WalletView().
|
private |
Definition at line 66 of file walletview.h.
Referenced by gotoSendCoinsPage(), handlePaymentRequest(), setWalletModel(), and WalletView().
|
private |
Definition at line 67 of file walletview.h.
Referenced by setWalletModel(), and WalletView().
|
private |
Definition at line 60 of file walletview.h.
Referenced by gotoHistoryPage(), and WalletView().
|
private |
Definition at line 69 of file walletview.h.
Referenced by setWalletModel(), and WalletView().
|
private |
Definition at line 57 of file walletview.h.
Referenced by backupWallet(), changePassphrase(), encryptWallet(), gotoSignMessageTab(), gotoVerifyMessageTab(), processNewTransaction(), setWalletModel(), unlockWallet(), updateEncryptionStatus(), usedReceivingAddresses(), and usedSendingAddresses().