12 #include <QMessageBox>
15 QStackedWidget(parent),
20 setContentsMargins(0,0,0,0);
37 addWidget(walletView);
41 connect(walletView, SIGNAL(showNormalIfMinimized()),
gui, SLOT(showNormalIfMinimized()));
50 removeWidget(walletView);
56 QMap<QString, WalletView*>::const_iterator i;
58 removeWidget(i.value());
65 if (!walletView)
return false;
73 QMap<QString, WalletView*>::const_iterator i;
75 i.value()->showOutOfSyncWarning(fShow);
80 QMap<QString, WalletView*>::const_iterator i;
82 i.value()->gotoOverviewPage();
87 QMap<QString, WalletView*>::const_iterator i;
89 i.value()->gotoHistoryPage();
94 QMap<QString, WalletView*>::const_iterator i;
96 i.value()->gotoAddressBookPage();
101 QMap<QString, WalletView*>::const_iterator i;
103 i.value()->gotoReceiveCoinsPage();
108 QMap<QString, WalletView*>::const_iterator i;
110 i.value()->gotoSendCoinsPage(addr);
159 setCurrentWidget(walletView);
bool handleURI(const QString &uri)
void changePassphrase()
Change encrypted wallet passphrase.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void changePassphrase()
Change encrypted wallet passphrase.
void backupWallet()
Backup the wallet.
void gotoOverviewPage()
Switch to overview (home) page.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoReceiveCoinsPage()
Switch to receive coins page.
bool addWallet(const QString &name, WalletModel *walletModel)
void setBitcoinGUI(BitcoinGUI *gui)
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void showOutOfSyncWarning(bool fShow)
void gotoAddressBookPage()
Switch to address book page.
void gotoHistoryPage()
Switch to history (transactions) page.
bool removeWallet(const QString &name)
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
ClientModel * clientModel
void backupWallet()
Backup the wallet.
void encryptWallet(bool status)
Encrypt the wallet.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
Interface to Bitcoin wallet from Qt view code.
void setCurrentWallet(const QString &name)
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
void setEncryptionStatus()
Set the encryption status as shown in the UI.
void setClientModel(ClientModel *clientModel)
Set the client model.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void encryptWallet(bool status)
Encrypt the wallet.
bool handleURI(const QString &uri)
void showOutOfSyncWarning(bool fShow)
QMap< QString, WalletView * > mapWalletViews
WalletStack(QWidget *parent=0)
void setEncryptionStatus()