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);
76 connect(exportButton, SIGNAL(clicked()),
transactionView, SLOT(exportClicked()));
96 connect(
this, SIGNAL(
message(QString,QString,
unsigned int)), gui, SLOT(
message(QString,QString,
unsigned int)));
102 connect(
this, SIGNAL(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)), gui, SLOT(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)));
132 connect(_walletModel, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
146 connect(_walletModel, SIGNAL(requireUnlock()),
this, SLOT(
unlockWallet()));
166 QModelIndex index = ttm->
index(start, 0, parent);
200 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
212 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
249 tr(
"Backup Wallet"), QString(),
250 tr(
"Wallet Data (*.dat)"), NULL);
252 if (filename.isEmpty())
256 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
260 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
316 else if (nProgress == 100)
int64_t CAmount
Amount in satoshis (Can be negative)
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.
@ Decrypt
Ask passphrase and decrypt wallet.
@ ChangePass
Ask old passphrase + new passphrase twice.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
Model for Bitcoin network client.
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
Overview ("home") page widget.
void setWalletModel(WalletModel *walletModel)
void setClientModel(ClientModel *clientModel)
void showOutOfSyncWarning(bool fShow)
"Paper Wallet" dialog box
void setClientModel(ClientModel *clientModel)
void setModel(WalletModel *model)
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 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.
QVariant data(const QModelIndex &index, int role) const
@ LabelRole
Label of address related to transaction.
@ AddressRole
Address of transaction.
bool processingQueuedTransactions()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Widget showing the transaction list for a wallet, including a filter row.
void setModel(WalletModel *model)
Interface to Bitcoin wallet from Qt view code.
AddressTableModel * getAddressTableModel()
OptionsModel * getOptionsModel()
bool backupWallet(const QString &filename)
EncryptionStatus getEncryptionStatus() const
TransactionTableModel * getTransactionTableModel()
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.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void encryptWallet(bool status)
Encrypt the wallet.
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void changePassphrase()
Change encrypted wallet passphrase.
QProgressDialog * progressDialog
SendCoinsDialog * sendCoinsPage
OverviewPage * overviewPage
void setBitcoinGUI(BitcoinGUI *gui)
void setClientModel(ClientModel *clientModel)
Set the client model.
void outOfSyncWarningClicked()
Notify that the out of sync warning icon has been pressed.
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 hdEnabledStatusChanged(int hdEnabled)
HD-Enabled status of wallet changed (only possible during startup)
TransactionView * transactionView
void printPaperWallets()
Open the print paper wallets dialog.
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
WalletView(const PlatformStyle *platformStyle, QWidget *parent)
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 encryptionStatusChanged(int status)
Encryption status of wallet changed.
ClientModel * clientModel
void requestedSyncWarningInfo()
User has requested more information about the out of sync state.
AddressBookPage * usedSendingAddressesPage
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
WalletModel * walletModel
void gotoOverviewPage()
Switch to overview (home) page.
void usedReceivingAddresses()
Show used receiving addresses.
void updateEncryptionStatus()
Re-emit encryption status signal.
void processNewTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
void incomingTransaction(const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label)
Notify that a new transaction appeared.
void showOutOfSyncWarning(bool fShow)
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 ...