Bitcoin Core  0.20.99
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
WalletFrame Class Reference

A container for embedding all wallet-related controls into BitcoinGUI. More...

#include <walletframe.h>

Inheritance diagram for WalletFrame:
[legend]
Collaboration diagram for WalletFrame:
[legend]

Public Slots

void gotoOverviewPage ()
 Switch to overview (home) 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 gotoLoadPSBT (bool from_clipboard=false)
 Load Partially Signed Bitcoin Transaction. 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 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 (const PlatformStyle *platformStyle, BitcoinGUI *_gui=nullptr)
 
 ~WalletFrame ()
 
void setClientModel (ClientModel *clientModel)
 
bool addWallet (WalletModel *walletModel)
 
void setCurrentWallet (WalletModel *wallet_model)
 
void removeWallet (WalletModel *wallet_model)
 
void removeAllWallets ()
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 
WalletViewcurrentWalletView () const
 
WalletModelcurrentWalletModel () const
 

Private Attributes

QStackedWidget * walletStack
 
BitcoinGUIgui
 
ClientModelclientModel
 
QMap< WalletModel *, WalletView * > mapWalletViews
 
bool bOutOfSync
 
const PlatformStyleplatformStyle
 

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 29 of file walletframe.h.

Constructor & Destructor Documentation

◆ WalletFrame()

WalletFrame::WalletFrame ( const PlatformStyle platformStyle,
BitcoinGUI _gui = nullptr 
)
explicit

Definition at line 21 of file walletframe.cpp.

◆ ~WalletFrame()

WalletFrame::~WalletFrame ( )

Definition at line 54 of file walletframe.cpp.

Member Function Documentation

◆ addWallet()

bool WalletFrame::addWallet ( WalletModel walletModel)

Definition at line 67 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ backupWallet

void WalletFrame::backupWallet ( )
slot

Backup the wallet.

Definition at line 204 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changePassphrase

void WalletFrame::changePassphrase ( )
slot

Change encrypted wallet passphrase.

Definition at line 211 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentWalletModel()

WalletModel * WalletFrame::currentWalletModel ( ) const

Definition at line 244 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentWalletView()

WalletView * WalletFrame::currentWalletView ( ) const

Definition at line 239 of file walletframe.cpp.

Here is the caller graph for this function:

◆ encryptWallet

void WalletFrame::encryptWallet ( bool  status)
slot

Encrypt the wallet.

Definition at line 197 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gotoHistoryPage

void WalletFrame::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 154 of file walletframe.cpp.

Here is the caller graph for this function:

◆ gotoLoadPSBT

void WalletFrame::gotoLoadPSBT ( bool  from_clipboard = false)
slot

Load Partially Signed Bitcoin Transaction.

Definition at line 189 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gotoOverviewPage

void WalletFrame::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 147 of file walletframe.cpp.

Here is the caller graph for this function:

◆ gotoReceiveCoinsPage

void WalletFrame::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 161 of file walletframe.cpp.

Here is the caller graph for this function:

◆ gotoSendCoinsPage

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

Switch to send coins page.

Definition at line 168 of file walletframe.cpp.

Here is the caller graph for this function:

◆ gotoSignMessageTab

void WalletFrame::gotoSignMessageTab ( QString  addr = "")
slot

Show Sign/Verify Message dialog and switch to sign message tab.

Definition at line 175 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gotoVerifyMessageTab

void WalletFrame::gotoVerifyMessageTab ( QString  addr = "")
slot

Show Sign/Verify Message dialog and switch to verify message tab.

Definition at line 182 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handlePaymentRequest()

bool WalletFrame::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 130 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ outOfSyncWarningClicked

void WalletFrame::outOfSyncWarningClicked ( )
slot

Pass on signal over requested out-of-sync-warning information.

Definition at line 250 of file walletframe.cpp.

Here is the caller graph for this function:

◆ removeAllWallets()

void WalletFrame::removeAllWallets ( )

Definition at line 122 of file walletframe.cpp.

Here is the caller graph for this function:

◆ removeWallet()

void WalletFrame::removeWallet ( WalletModel wallet_model)

Definition at line 113 of file walletframe.cpp.

Here is the caller graph for this function:

◆ requestedSyncWarningInfo

void WalletFrame::requestedSyncWarningInfo ( )
signal

Notify that the user has requested more information about the out-of-sync warning.

Here is the caller graph for this function:

◆ setClientModel()

void WalletFrame::setClientModel ( ClientModel clientModel)

Definition at line 58 of file walletframe.cpp.

Here is the caller graph for this function:

◆ setCurrentWallet()

void WalletFrame::setCurrentWallet ( WalletModel wallet_model)

Definition at line 103 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showOutOfSyncWarning()

void WalletFrame::showOutOfSyncWarning ( bool  fShow)

Definition at line 139 of file walletframe.cpp.

Here is the caller graph for this function:

◆ unlockWallet

void WalletFrame::unlockWallet ( )
slot

Ask for passphrase to unlock wallet temporarily.

Definition at line 218 of file walletframe.cpp.

Here is the call graph for this function:

◆ usedReceivingAddresses

void WalletFrame::usedReceivingAddresses ( )
slot

Show used receiving addresses.

Definition at line 232 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ usedSendingAddresses

void WalletFrame::usedSendingAddresses ( )
slot

Show used sending addresses.

Definition at line 225 of file walletframe.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bOutOfSync

bool WalletFrame::bOutOfSync
private

Definition at line 58 of file walletframe.h.

◆ clientModel

ClientModel* WalletFrame::clientModel
private

Definition at line 55 of file walletframe.h.

◆ gui

BitcoinGUI* WalletFrame::gui
private

Definition at line 54 of file walletframe.h.

◆ mapWalletViews

QMap<WalletModel*, WalletView*> WalletFrame::mapWalletViews
private

Definition at line 56 of file walletframe.h.

◆ platformStyle

const PlatformStyle* WalletFrame::platformStyle
private

Definition at line 60 of file walletframe.h.

◆ walletStack

QStackedWidget* WalletFrame::walletStack
private

Definition at line 53 of file walletframe.h.


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