13 #include <QHBoxLayout>
19 platformStyle(_platformStyle)
22 QHBoxLayout *walletFrameLayout =
new QHBoxLayout(
this);
23 setContentsMargins(0,0,0,0);
25 walletFrameLayout->setContentsMargins(0,0,0,0);
28 QLabel *noWallet =
new QLabel(tr(
"No wallet has been loaded."));
29 noWallet->setAlignment(Qt::AlignCenter);
59 connect(walletView, SIGNAL(showNormalIfMinimized()),
gui, SLOT(showNormalIfMinimized()));
89 QMap<QString, WalletView*>::const_iterator i;
107 QMap<QString, WalletView*>::const_iterator i;
109 i.value()->showOutOfSyncWarning(fShow);
114 QMap<QString, WalletView*>::const_iterator i;
116 i.value()->gotoOverviewPage();
121 QMap<QString, WalletView*>::const_iterator i;
123 i.value()->gotoHistoryPage();
128 QMap<QString, WalletView*>::const_iterator i;
130 i.value()->gotoReceiveCoinsPage();
135 QMap<QString, WalletView*>::const_iterator i;
137 i.value()->gotoSendCoinsPage(addr);
205 return qobject_cast<WalletView*>(
walletStack->currentWidget());
Model for Bitcoin network client.
WalletView * currentWalletView()
void changePassphrase()
Change encrypted wallet passphrase.
bool removeWallet(const QString &name)
void requestedSyncWarningInfo()
Notify that the user has requested more information about the out-of-sync warning.
void gotoHistoryPage()
Switch to history (transactions) page.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void gotoOverviewPage()
Switch to overview (home) page.
ClientModel * clientModel
const PlatformStyle * platformStyle
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void setClientModel(ClientModel *clientModel)
void backupWallet()
Backup the wallet.
QStackedWidget * walletStack
void usedSendingAddresses()
Show used sending addresses.
QMap< QString, WalletView * > mapWalletViews
void encryptWallet(bool status)
Encrypt the wallet.
void usedReceivingAddresses()
Show used receiving addresses.
void outOfSyncWarningClicked()
Pass on signal over requested out-of-sync-warning information.
bool addWallet(const QString &name, WalletModel *walletModel)
WalletFrame(const PlatformStyle *platformStyle, BitcoinGUI *_gui=0)
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
bool setCurrentWallet(const QString &name)
void showOutOfSyncWarning(bool fShow)
void gotoReceiveCoinsPage()
Switch to receive coins page.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
Interface to Bitcoin wallet from Qt view code.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void encryptWallet(bool status)
Encrypt the wallet.
void changePassphrase()
Change encrypted wallet passphrase.
void setBitcoinGUI(BitcoinGUI *gui)
void setClientModel(ClientModel *clientModel)
Set the client model.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void usedSendingAddresses()
Show used sending addresses.
void printPaperWallets()
Open the print paper wallets dialog.
void backupWallet()
Backup the wallet.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoOverviewPage()
Switch to overview (home) page.
void usedReceivingAddresses()
Show used receiving addresses.
void updateEncryptionStatus()
Re-emit encryption status signal.
void showOutOfSyncWarning(bool fShow)