26 #include <QActionGroup> 27 #include <QFileDialog> 28 #include <QHBoxLayout> 29 #include <QProgressDialog> 30 #include <QPushButton> 31 #include <QVBoxLayout> 34 QStackedWidget(parent),
37 platformStyle(_platformStyle)
43 QVBoxLayout *vbox =
new QVBoxLayout();
44 QHBoxLayout *hbox_buttons =
new QHBoxLayout();
47 QPushButton *exportButton =
new QPushButton(tr(
"&Export"),
this);
48 exportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
52 hbox_buttons->addStretch();
53 hbox_buttons->addWidget(exportButton);
54 vbox->addLayout(hbox_buttons);
171 QModelIndex index = ttm->
index(
start, 0, parent);
205 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
217 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
254 tr(
"Backup Wallet"), QString(),
255 tr(
"Wallet Data (*.dat)"),
nullptr);
257 if (filename.isEmpty())
261 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
265 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
321 else if (nProgress == 100)
QWidget * transactionsPage
void showTab_SM(bool fShow)
Dialog for requesting payment of bitcoins.
void message(const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
Notify the user of an event from the core network or transaction handling code.
void setWalletModel(WalletModel *walletModel)
interfaces::Wallet & wallet() const
virtual bool isInitialBlockDownload()=0
Is initial block download.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
OverviewPage * overviewPage
TransactionView * transactionView
void usedSendingAddresses()
Show used sending addresses.
void setAddress_VM(const QString &address)
void setModel(AddressTableModel *model)
void changePassphrase()
Change encrypted wallet passphrase.
ClientModel * clientModel
void focusTransaction(const QModelIndex &)
Ask passphrase twice and encrypt.
virtual bool backupWallet(const std::string &filename)=0
Back up wallet.
void requestedSyncWarningInfo()
User has requested more information about the out of sync state.
WalletModel * walletModel
void showProgress(const QString &title, int nProgress)
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Open address book for editing.
void outOfSyncWarningClicked()
Notify that the out of sync warning icon has been pressed.
const PlatformStyle * platformStyle
AddressTableModel * getAddressTableModel()
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void updateEncryptionStatus()
Re-emit encryption status signal.
void outOfSyncWarningClicked()
EncryptionStatus getEncryptionStatus() const
int getDisplayUnit() const
void processNewTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
SendCoinsDialog * sendCoinsPage
void setModel(WalletModel *model)
WalletModel * getWalletModel()
bool processingQueuedTransactions() const
void gotoHistoryPage()
Switch to history (transactions) page.
Ask passphrase and unlock.
void setBitcoinGUI(BitcoinGUI *gui)
void usedReceivingAddresses()
Show used receiving addresses.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void setAddress(const QString &address)
void setClientModel(ClientModel *clientModel)
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
Widget showing the transaction list for a wallet, including a filter row.
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
interfaces::Node & node() const
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
Dialog for sending bitcoins.
void encryptionStatusChanged()
QString getWalletName() const
TransactionTableModel * getTransactionTableModel()
Widget that shows a list of sending or receiving addresses.
UI model for the transaction table of a wallet.
Model for Bitcoin network client.
void setModel(WalletModel *model)
void backupWallet()
Backup the wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void transactionClicked(const QModelIndex &index)
void gotoOverviewPage()
Switch to overview (home) page.
void encryptionStatusChanged()
Encryption status of wallet changed.
void showOutOfSyncWarning(bool fShow)
QVariant data(const QModelIndex &index, int role) const
AddressBookPage * usedSendingAddressesPage
void setModel(WalletModel *model)
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
Interface to Bitcoin wallet from Qt view code.
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
Multifunctional dialog to ask for passphrases.
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 message(const QString &title, const QString &message, unsigned int style)
WalletView(const PlatformStyle *platformStyle, QWidget *parent)
void setClientModel(ClientModel *clientModel)
Set the client model.
Ask passphrase and decrypt wallet.
void setClientModel(ClientModel *clientModel)
Label of address related to transaction.
void hdEnabledStatusChanged()
HD-Enabled status of wallet changed (only possible during startup)
virtual void abortRescan()=0
Abort a rescan.
Ask old passphrase + new passphrase twice.
void encryptWallet(bool status)
Encrypt the wallet.
ReceiveCoinsDialog * receiveCoinsPage
void gotoReceiveCoinsPage()
Switch to receive coins page.
void message(const QString &title, const QString &message, unsigned int style)
void coinsSent(const uint256 &txid)
void setModel(WalletModel *model)
Overview ("home") page widget.
void showOutOfSyncWarning(bool fShow)
void incomingTransaction(const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label, const QString &walletName)
Notify that a new transaction appeared.
QProgressDialog * progressDialog
void showTab_VM(bool fShow)
OptionsModel * getOptionsModel()
Predefined combinations for certain default usage cases.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
void setAddress_SM(const QString &address)
AddressBookPage * usedReceivingAddressesPage
void setModel(WalletModel *model)