Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
WalletView Class Reference

#include <walletview.h>

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

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

ClientModelclientModel
 
WalletModelwalletModel
 
OverviewPageoverviewPage
 
QWidgettransactionsPage
 
QWidgetbalancesPage
 
ReceiveCoinsDialogreceiveCoinsPage
 
QWidgetsendCoinsPage
 
SendCoinsDialogsendCoinsTab
 
SendMPDialogsendMPTab
 
TransactionViewtransactionView
 
BalancesViewbalancesView
 
QProgressDialog * progressDialog
 

Detailed Description

Definition at line 32 of file walletview.h.

Constructor & Destructor Documentation

WalletView::WalletView ( QWidget parent)
explicit
WalletView::~WalletView ( )

Definition at line 117 of file walletview.cpp.

Member Function Documentation

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WalletView::changePassphrase ( )
slot

Change encrypted wallet passphrase.

Definition at line 291 of file walletview.cpp.

References AskPassphraseDialog::ChangePass, AskPassphraseDialog::setModel(), and walletModel.

Referenced by WalletFrame::changePassphrase().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WalletView::encryptionStatusChanged ( int  status)
signal

Encryption status of wallet changed.

Definition at line 168 of file moc_walletview.cpp.

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

+ Here is the caller graph for this function:

void WalletView::encryptWallet ( bool  status)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WalletView::gotoBalancesPage ( )
slot

Switch to balances page.

Definition at line 199 of file walletview.cpp.

References balancesPage.

void WalletView::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 204 of file walletview.cpp.

References transactionsPage.

Referenced by setBitcoinGUI().

+ Here is the caller graph for this function:

void WalletView::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 194 of file walletview.cpp.

References overviewPage.

Referenced by WalletFrame::addWallet().

+ Here is the caller graph for this function:

void WalletView::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 209 of file walletview.cpp.

References receiveCoinsPage.

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

Switch to send coins page.

Definition at line 214 of file walletview.cpp.

References sendCoinsPage, sendCoinsTab, and SendCoinsDialog::setAddress().

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool WalletView::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 246 of file walletview.cpp.

References SendCoinsDialog::handlePaymentRequest(), and sendCoinsTab.

Referenced by WalletFrame::handlePaymentRequest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Notify that a new transaction appeared.

Definition at line 175 of file moc_walletview.cpp.

Referenced by processNewTransaction(), and setBitcoinGUI().

+ Here is the caller graph for this function:

void WalletView::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
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().

+ Here is the caller graph for this function:

void WalletView::processNewTransaction ( const QModelIndex &  parent,
int  start,
int   
)
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 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void WalletView::setBitcoinGUI ( BitcoinGUI gui)

Definition at line 121 of file walletview.cpp.

References encryptionStatusChanged(), gotoHistoryPage(), incomingTransaction(), message(), and overviewPage.

Referenced by WalletFrame::addWallet().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Show progress dialog e.g.

for rescan

Definition at line 331 of file walletview.cpp.

References progressDialog.

Referenced by setWalletModel().

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

QWidget* WalletView::balancesPage
private

Definition at line 61 of file walletview.h.

Referenced by gotoBalancesPage(), and WalletView().

BalancesView* WalletView::balancesView
private

Definition at line 70 of file walletview.h.

Referenced by WalletView().

ClientModel* WalletView::clientModel
private

Definition at line 56 of file walletview.h.

Referenced by processNewTransaction(), and setClientModel().

OverviewPage* WalletView::overviewPage
private
QProgressDialog* WalletView::progressDialog
private

Definition at line 72 of file walletview.h.

Referenced by showProgress().

ReceiveCoinsDialog* WalletView::receiveCoinsPage
private

Definition at line 63 of file walletview.h.

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

QWidget* WalletView::sendCoinsPage
private

Definition at line 65 of file walletview.h.

Referenced by gotoSendCoinsPage(), and WalletView().

SendCoinsDialog* WalletView::sendCoinsTab
private

Definition at line 66 of file walletview.h.

Referenced by gotoSendCoinsPage(), handlePaymentRequest(), setWalletModel(), and WalletView().

SendMPDialog* WalletView::sendMPTab
private

Definition at line 67 of file walletview.h.

Referenced by setWalletModel(), and WalletView().

QWidget* WalletView::transactionsPage
private

Definition at line 60 of file walletview.h.

Referenced by gotoHistoryPage(), and WalletView().

TransactionView* WalletView::transactionView
private

Definition at line 69 of file walletview.h.

Referenced by setWalletModel(), and WalletView().

WalletModel* WalletView::walletModel
private

The documentation for this class was generated from the following files: