26 #include <QActionGroup> 27 #include <QFileDialog> 28 #include <QHBoxLayout> 30 #include <QProgressDialog> 31 #include <QPushButton> 33 #include <QVBoxLayout> 36 QStackedWidget(parent),
39 platformStyle(platformStyle)
45 QVBoxLayout *vbox =
new QVBoxLayout();
46 QHBoxLayout *hbox_buttons =
new QHBoxLayout();
49 QPushButton *exportButton =
new QPushButton(tr(
"&Export"),
this);
50 exportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
53 exportButton->setIcon(QIcon(
":/icons/" + theme +
"/export"));
55 hbox_buttons->addStretch();
58 QLabel *transactionSumLabel =
new QLabel();
59 transactionSumLabel->setObjectName(
"transactionSumLabel");
60 transactionSumLabel->setText(tr(
"Selected amount:"));
61 hbox_buttons->addWidget(transactionSumLabel);
66 transactionSum->setTextInteractionFlags(Qt::TextSelectableByMouse);
69 hbox_buttons->addWidget(exportButton);
70 vbox->addLayout(hbox_buttons);
85 if (
settings.value(
"fShowMasternodesTab").toBool()) {
101 connect(exportButton, SIGNAL(clicked()),
transactionView, SLOT(exportClicked()));
122 connect(
this, SIGNAL(
message(QString,QString,
unsigned int)), gui, SLOT(
message(QString,QString,
unsigned int)));
128 connect(
this, SIGNAL(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)), gui, SLOT(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)));
142 if (
settings.value(
"fShowMasternodesTab").toBool()) {
155 if (
settings.value(
"fShowMasternodesTab").toBool()) {
166 connect(
walletModel, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
200 QModelIndex index = ttm->
index(start, 0, parent);
220 if (
settings.value(
"fShowMasternodesTab").toBool()) {
242 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
254 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
291 tr(
"Backup Wallet"), QString(),
292 tr(
"Wallet Data (*.dat)"), NULL);
294 if (filename.isEmpty())
298 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
302 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
367 else if (nProgress == 100)
bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString(), bool fMixing=false)
void encryptWallet(bool status)
void setAddress_VM(const QString &address)
void incomingTransaction(const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label)
void trxAmount(QString amount)
TransactionView * transactionView
void setWalletModel(WalletModel *walletModel)
QVariant data(const QModelIndex &index, int role) const
void setModel(WalletModel *model)
void usedReceivingAddresses()
void setClientModel(ClientModel *clientModel)
void showTab_SM(bool fShow)
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
QWidget * transactionsPage
void gotoSignMessageTab(QString addr="")
SendCoinsDialog * sendCoinsPage
void setModel(WalletModel *model)
void requestedSyncWarningInfo()
void setBitcoinGUI(BitcoinGUI *gui)
void updateEncryptionStatus()
QProgressDialog * progressDialog
EncryptionStatus getEncryptionStatus() const
MasternodeList * masternodeListPage
void showOutOfSyncWarning(bool fShow)
AddressBookPage * usedReceivingAddressesPage
void gotoReceiveCoinsPage()
TransactionTableModel * getTransactionTableModel()
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void usedSendingAddresses()
void outOfSyncWarningClicked()
void message(const QString &title, const QString &message, unsigned int style)
void setWalletModel(WalletModel *walletModel)
void setClientModel(ClientModel *clientModel)
bool processingQueuedTransactions()
void setModel(WalletModel *model)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
void unlockWallet(bool fAnonymizeOnly=false)
AddressBookPage * usedSendingAddressesPage
void gotoVerifyMessageTab(QString addr="")
const PlatformStyle * platformStyle
OptionsModel * getOptionsModel()
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
void setClientModel(ClientModel *clientModel)
void showOutOfSyncWarning(bool fShow)
void setClientModel(ClientModel *clientModel)
void setAddress_SM(const QString &address)
void showTab_VM(bool fShow)
ReceiveCoinsDialog * receiveCoinsPage
void setAddress(const QString &address)
WalletView(const PlatformStyle *platformStyle, QWidget *parent)
void setModel(WalletModel *model)
ClientModel * clientModel
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
OverviewPage * overviewPage
bool backupWallet(const QString &filename)
void processNewTransaction(const QModelIndex &parent, int start, int)
WalletModel * walletModel
void setWalletModel(WalletModel *walletModel)
void gotoSendCoinsPage(QString addr="")
void setModel(WalletModel *model)
void encryptionStatusChanged(int status)
AddressTableModel * getAddressTableModel()
void hdEnabledStatusChanged(int hdEnabled)
void gotoMasternodePage()
void setModel(AddressTableModel *model)
void showProgress(const QString &title, int nProgress)