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

A container for embedding all wallet-related controls into FabcoinGUI. 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 gotoCreateContractPage ()
 Switch to create contract page. More...
 
void gotoSendToContractPage ()
 Switch to send contract page. More...
 
void gotoCallContractPage ()
 Switch to call contract page. More...
 
void gotoSendTokenPage ()
 Switch to Send Token page. More...
 
void gotoReceiveTokenPage ()
 Switch to Receive Token page. More...
 
void gotoAddTokenPage ()
 Switch to Add Token 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 encryptWallet (bool status)
 Encrypt the wallet. More...
 
void backupWallet ()
 Backup the wallet. More...
 
void restoreWallet ()
 Restore the wallet. More...
 
void changePassphrase ()
 Change encrypted wallet passphrase. More...
 
void unlockWallet ()
 Ask for passphrase to unlock wallet temporarily. More...
 
void lockWallet ()
 Lock the wallet. 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...
 
void pageChanged (int index)
 

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, FabcoinGUI *_gui=0)
 
 ~WalletFrame ()
 
void setClientModel (ClientModel *clientModel)
 
bool addWallet (const QString &name, WalletModel *walletModel)
 
bool setCurrentWallet (const QString &name)
 
bool removeWallet (const QString &name)
 
void removeAllWallets ()
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 

Private Member Functions

WalletViewcurrentWalletView ()
 

Private Attributes

QStackedWidget * walletStack
 
FabcoinGUIgui
 
ClientModelclientModel
 
QMap< QString, WalletView * > mapWalletViews
 
bool bOutOfSync
 
const PlatformStyleplatformStyle
 

Detailed Description

A container for embedding all wallet-related controls into FabcoinGUI.

The purpose of this class is to allow future refinements of the wallet controls with minimal need for further modifications to FabcoinGUI, 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 ( const PlatformStyle platformStyle,
FabcoinGUI _gui = 0 
)
explicit

Definition at line 17 of file walletframe.cpp.

WalletFrame::~WalletFrame ( )

Definition at line 34 of file walletframe.cpp.

Member Function Documentation

bool WalletFrame::addWallet ( const QString &  name,
WalletModel walletModel 
)

Definition at line 43 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletFrame::backupWallet ( )
slot

Backup the wallet.

Definition at line 206 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::changePassphrase ( )
slot

Change encrypted wallet passphrase.

Definition at line 220 of file walletframe.cpp.

Here is the call graph for this function:

WalletView * WalletFrame::currentWalletView ( )
private

Definition at line 261 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::encryptWallet ( bool  status)
slot

Encrypt the wallet.

Definition at line 199 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::gotoAddTokenPage ( )
slot

Switch to Add Token page.

Definition at line 143 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoCallContractPage ( )
slot

Switch to call contract page.

Definition at line 178 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoCreateContractPage ( )
slot

Switch to create contract page.

Definition at line 164 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 122 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 115 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 150 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoReceiveTokenPage ( )
slot

Switch to Receive Token page.

Definition at line 136 of file walletframe.cpp.

Here is the caller graph for this function:

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

Switch to send coins page.

Definition at line 157 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoSendToContractPage ( )
slot

Switch to send contract page.

Definition at line 171 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::gotoSendTokenPage ( )
slot

Switch to Send Token page.

Definition at line 129 of file walletframe.cpp.

Here is the caller graph for this function:

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

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

Definition at line 185 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 192 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WalletFrame::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 98 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletFrame::lockWallet ( )
slot

Lock the wallet.

Definition at line 237 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::outOfSyncWarningClicked ( )
slot

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

Definition at line 266 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::pageChanged ( int  index)
slot

Definition at line 271 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletFrame::removeAllWallets ( )

Definition at line 90 of file walletframe.cpp.

Here is the caller graph for this function:

bool WalletFrame::removeWallet ( const QString &  name)

Definition at line 80 of file walletframe.cpp.

void WalletFrame::requestedSyncWarningInfo ( )
signal

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

Definition at line 236 of file moc_walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::restoreWallet ( )
slot

Restore the wallet.

Definition at line 213 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::setClientModel ( ClientModel clientModel)

Definition at line 38 of file walletframe.cpp.

Here is the caller graph for this function:

bool WalletFrame::setCurrentWallet ( const QString &  name)

Definition at line 69 of file walletframe.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletFrame::showOutOfSyncWarning ( bool  fShow)

Definition at line 107 of file walletframe.cpp.

Here is the caller graph for this function:

void WalletFrame::unlockWallet ( )
slot

Ask for passphrase to unlock wallet temporarily.

Definition at line 227 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::usedReceivingAddresses ( )
slot

Show used receiving addresses.

Definition at line 254 of file walletframe.cpp.

Here is the call graph for this function:

void WalletFrame::usedSendingAddresses ( )
slot

Show used sending addresses.

Definition at line 247 of file walletframe.cpp.

Here is the call graph for this function:

Member Data Documentation

bool WalletFrame::bOutOfSync
private

Definition at line 58 of file walletframe.h.

ClientModel* WalletFrame::clientModel
private

Definition at line 55 of file walletframe.h.

FabcoinGUI* WalletFrame::gui
private

Definition at line 54 of file walletframe.h.

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

Definition at line 56 of file walletframe.h.

const PlatformStyle* WalletFrame::platformStyle
private

Definition at line 60 of file walletframe.h.

QStackedWidget* WalletFrame::walletStack
private

Definition at line 53 of file walletframe.h.


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