28#include <QProgressDialog>
33 : QStackedWidget(parent),
34 walletModel(wallet_model),
35 platformStyle(_platformStyle)
44 QVBoxLayout *vbox =
new QVBoxLayout();
45 QHBoxLayout *hbox_buttons =
new QHBoxLayout();
50 QPushButton *exportButton =
new QPushButton(tr(
"&Export"),
this);
51 exportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
55 hbox_buttons->addStretch();
56 hbox_buttons->addWidget(exportButton);
57 vbox->addLayout(hbox_buttons);
139 QModelIndex index = ttm->
index(start, 0, parent);
173 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
185 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
214 tr(
"Backup Wallet"), QString(),
216 tr(
"Wallet Data") + QLatin1String(
" (*.dat)"),
nullptr);
218 if (filename.isEmpty())
222 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
226 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
262 if (nProgress == 0) {
263 progressDialog =
new QProgressDialog(title, tr(
"Cancel"), 0, 100);
268 }
else if (nProgress == 100) {
Widget that shows a list of sending or receiving addresses.
@ ForEditing
Open address book for editing.
void setModel(AddressTableModel *model)
Multifunctional dialog to ask for passphrases.
void setModel(WalletModel *model)
@ Unlock
Ask passphrase and unlock.
@ Encrypt
Ask passphrase twice and encrypt.
@ ChangePass
Ask old passphrase + new passphrase twice.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
Model for Bitcoin network client.
interfaces::Node & node() const
BitcoinUnit getDisplayUnit() const
Overview ("home") page widget.
void setWalletModel(WalletModel *walletModel)
void setClientModel(ClientModel *clientModel)
void transactionClicked(const QModelIndex &index)
void outOfSyncWarningClicked()
void showOutOfSyncWarning(bool fShow)
void setPrivacy(bool privacy)
Dialog for requesting payment of bitcoins.
void setModel(WalletModel *model)
Dialog for sending bitcoins.
void setClientModel(ClientModel *clientModel)
void setModel(WalletModel *model)
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void setAddress(const QString &address)
void message(const QString &title, const QString &message, unsigned int style)
void coinsSent(const uint256 &txid)
void showTab_SM(bool fShow)
void setAddress_SM(const QString &address)
void showTab_VM(bool fShow)
void setModel(WalletModel *model)
void setAddress_VM(const QString &address)
UI model for the transaction table of a wallet.
@ LabelRole
Label of address related to transaction.
@ AddressRole
Address of transaction.
QVariant data(const QModelIndex &index, int role) const override
bool processingQueuedTransactions() const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
Widget showing the transaction list for a wallet, including a filter row.
void setModel(WalletModel *model)
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
void focusTransaction(const QModelIndex &)
Interface to Bitcoin wallet from Qt view code.
AddressTableModel * getAddressTableModel() const
void showProgress(const QString &title, int nProgress)
void message(const QString &title, const QString &message, unsigned int style)
void setClientModel(ClientModel *client_model)
EncryptionStatus getEncryptionStatus() const
TransactionTableModel * getTransactionTableModel() const
interfaces::Wallet & wallet() const
OptionsModel * getOptionsModel() const
void encryptionStatusChanged()
QString getWalletName() const
const PlatformStyle * platformStyle
void gotoHistoryPage()
Switch to history (transactions) page.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void disableTransactionView(bool disable)
WalletModel *const walletModel
The wallet model represents a bitcoin wallet, and offers access to the list of transactions,...
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void changePassphrase()
Change encrypted wallet passphrase.
QProgressDialog * progressDialog
SendCoinsDialog * sendCoinsPage
OverviewPage * overviewPage
void setClientModel(ClientModel *clientModel)
Set the client model.
void outOfSyncWarningClicked()
Notify that the out of sync warning icon has been pressed.
WalletModel * getWalletModel() const noexcept
void gotoReceiveCoinsPage()
Switch to receive coins page.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
QWidget * transactionsPage
void usedSendingAddresses()
Show used sending addresses.
ReceiveCoinsDialog * receiveCoinsPage
void encryptWallet()
Encrypt the wallet.
TransactionView * transactionView
WalletView(WalletModel *wallet_model, const PlatformStyle *platformStyle, QWidget *parent)
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
AddressBookPage * usedReceivingAddressesPage
void backupWallet()
Backup the wallet.
void incomingTransaction(const QString &date, BitcoinUnit unit, const CAmount &amount, const QString &type, const QString &address, const QString &label, const QString &walletName)
Notify that a new transaction appeared.
ClientModel * clientModel
AddressBookPage * usedSendingAddressesPage
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoOverviewPage()
Switch to overview (home) page.
void usedReceivingAddresses()
Show used receiving addresses.
void transactionClicked()
void processNewTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
void setPrivacy(bool privacy)
void showOutOfSyncWarning(bool fShow)
void encryptionStatusChanged()
Encryption status of wallet changed.
virtual bool isInitialBlockDownload()=0
Is initial block download.
virtual void abortRescan()=0
Abort a rescan.
virtual bool backupWallet(const std::string &filename)=0
Back up wallet.
QString HtmlEscape(const QString &str, bool fMultiLine)
void ShowModalDialogAsynchronously(QDialog *dialog)
Shows a QDialog instance asynchronously, and deletes it on close.
void PolishProgressDialog(QProgressDialog *dialog)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when ...
void bringToFront(QWidget *w)