26 #include <QActionGroup>
27 #include <QFileDialog>
28 #include <QHBoxLayout>
29 #include <QProgressDialog>
30 #include <QPushButton>
31 #include <QVBoxLayout>
36 #include <QHeaderView>
49 QVBoxLayout *bvbox =
new QVBoxLayout();
50 QHBoxLayout *bhbox_buttons =
new QHBoxLayout();
53 QPushButton *bexportButton =
new QPushButton(tr(
"&Export"),
this);
54 bexportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
55 #ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
56 bexportButton->setIcon(QIcon(
":/icons/export"));
58 bhbox_buttons->addStretch();
59 bhbox_buttons->addWidget(bexportButton);
60 bvbox->addLayout(bhbox_buttons);
64 QVBoxLayout *vbox =
new QVBoxLayout();
65 QHBoxLayout *hbox_buttons =
new QHBoxLayout();
68 QPushButton *exportButton =
new QPushButton(tr(
"&Export"),
this);
69 exportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
70 #ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
71 exportButton->setIcon(QIcon(
":/icons/export"));
73 hbox_buttons->addStretch();
74 hbox_buttons->addWidget(exportButton);
75 vbox->addLayout(hbox_buttons);
83 QVBoxLayout *svbox =
new QVBoxLayout();
86 QTabWidget *tabHolder =
new QTabWidget();
87 tabHolder->addTab(
sendMPTab,tr(
"Master Protocol"));
90 svbox->addWidget(tabHolder);
109 connect(exportButton, SIGNAL(clicked()),
transactionView, SLOT(exportClicked()));
129 connect(
this, SIGNAL(
message(QString,QString,
unsigned int)), gui, SLOT(
message(QString,QString,
unsigned int)));
135 connect(
this, SIGNAL(
incomingTransaction(QString,
int,qint64,QString,QString)), gui, SLOT(
incomingTransaction(QString,
int,qint64,QString,QString)));
160 connect(walletModel, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
171 connect(walletModel, SIGNAL(requireUnlock()),
this, SLOT(
unlockWallet()));
226 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
238 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
275 tr(
"Backup Wallet"), QString(),
276 tr(
"Wallet Data (*.dat)"), NULL);
278 if (filename.isEmpty())
282 emit
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
286 emit
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
316 dlg->setAttribute(Qt::WA_DeleteOnClose);
326 dlg->setAttribute(Qt::WA_DeleteOnClose);
342 else if (nProgress == 100)
QWidget * transactionsPage
void showTab_SM(bool fShow)
Dialog for requesting payment of bitcoins.
void setWalletModel(WalletModel *walletModel)
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
WalletView(QWidget *parent)
Ask passphrase twice and encrypt.
bool backupWallet(const QString &filename)
Dialog for sending Master Protocol tokens.
WalletModel * walletModel
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
Open address book for editing.
void incomingTransaction(const QString &date, int unit, qint64 amount, const QString &type, const QString &address)
Notify that a new transaction appeared.
AddressTableModel * getAddressTableModel()
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void updateEncryptionStatus()
Re-emit encryption status signal.
BalancesView * balancesView
void processNewTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
void setModel(WalletModel *model)
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
void gotoHistoryPage()
Switch to history (transactions) page.
Ask passphrase and unlock.
void setBitcoinGUI(BitcoinGUI *gui)
void usedReceivingAddresses()
Show used receiving addresses.
void gotoBalancesPage()
Switch to balances page.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void setAddress(const QString &address)
void encryptionStatusChanged(int status)
Encryption status of wallet changed.
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.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
Dialog for sending bitcoins.
TransactionTableModel * getTransactionTableModel()
Widget that shows a list of sending or receiving addresses.
Widget showing the transaction list for a wallet, including a filter row.
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)
EncryptionStatus getEncryptionStatus() const
void gotoOverviewPage()
Switch to overview (home) page.
void showOutOfSyncWarning(bool fShow)
void setModel(WalletModel *model)
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
SendCoinsDialog * sendCoinsTab
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 setClientModel(ClientModel *clientModel)
Set the client model.
void setModel(WalletModel *model)
Ask passphrase and decrypt wallet.
void setClientModel(ClientModel *clientModel)
Ask old passphrase + new passphrase twice.
void encryptWallet(bool status)
Encrypt the wallet.
ReceiveCoinsDialog * receiveCoinsPage
void gotoReceiveCoinsPage()
Switch to receive coins page.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
void setModel(WalletModel *model)
Overview ("home") page widget.
void showOutOfSyncWarning(bool fShow)
QProgressDialog * progressDialog
void showTab_VM(bool fShow)
OptionsModel * getOptionsModel()
Predefined combinations for certain default usage cases.
void setAddress_SM(const QString &address)
void setModel(WalletModel *model)