32 #include <QActionGroup> 33 #include <QFileDialog> 34 #include <QHBoxLayout> 35 #include <QProgressDialog> 36 #include <QPushButton> 37 #include <QVBoxLayout> 40 QStackedWidget(parent),
43 platformStyle(_platformStyle)
49 QVBoxLayout *vbox =
new QVBoxLayout();
50 QHBoxLayout *hbox_buttons =
new QHBoxLayout();
53 QPushButton *exportButton =
new QPushButton(tr(
"&Export"),
this);
54 exportButton->setToolTip(tr(
"Export the data in the current tab to a file"));
58 hbox_buttons->addStretch();
59 hbox_buttons->addWidget(exportButton);
60 vbox->addLayout(hbox_buttons);
90 connect(exportButton, SIGNAL(clicked()),
transactionView, SLOT(exportClicked()));
110 connect(
this, SIGNAL(
message(QString,QString,
unsigned int)), gui, SLOT(
message(QString,QString,
unsigned int)));
116 connect(
this, SIGNAL(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)), gui, SLOT(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString)));
119 connect(
this, SIGNAL(
incomingTokenTransaction(QString,QString,QString,QString,QString,QString)), gui, SLOT(
incomingTokenTransaction(QString,QString,QString,QString,QString,QString)));
160 connect(_walletModel, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
178 connect(_walletModel, SIGNAL(requireUnlock()),
this, SLOT(
unlockWallet()));
198 QModelIndex index = ttm->
index(start, 0, parent);
218 QModelIndex index = tttm->
index(start, 0, parent);
227 title = tr(
"Incoming transaction");
230 title = tr(
"Sent transaction");
296 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
308 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
345 tr(
"Backup Wallet"), QString(),
346 tr(
"Wallet Data (*.dat)"),
nullptr);
348 if (filename.isEmpty())
352 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
356 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
429 else if (nProgress == 100)
Ask passphrase and unlock staking only.
void unlockWallet(bool fromMenu=false)
Ask for passphrase to unlock wallet temporarily.
QWidget * transactionsPage
QVariant data(const QModelIndex &index, int role) const
void showTab_SM(bool fShow)
Dialog for requesting payment of fabcoins.
void incomingTokenTransaction(const QString &date, const QString &amount, const QString &type, const QString &address, const QString &label, const QString &title)
Notify that a new token transaction appeared.
void setWalletModel(WalletModel *walletModel)
void setModel(WalletModel *model)
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
void gotoSendToContractPage()
Switch to send contract page.
OverviewPage * overviewPage
TransactionView * transactionView
void setModel(WalletModel *model)
void setClientModel(ClientModel *clientModel)
Formatted amount, with unit.
void usedSendingAddresses()
Show used sending addresses.
void setAddress_VM(const QString &address)
void gotoCreateContractPage()
Switch to create contract page.
void setModel(AddressTableModel *model)
void changePassphrase()
Change encrypted wallet passphrase.
ClientModel * clientModel
Ask passphrase twice and encrypt.
bool backupWallet(const QString &filename)
QVariant data(const QModelIndex &index, int role) const
void requestedSyncWarningInfo()
User has requested more information about the out of sync state.
void processNewTokenTransaction(const QModelIndex &parent, int start, int)
Show incoming token transaction notification for new token transactions.
WalletModel * walletModel
CallContract * callContractPage
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void setModel(WalletModel *model)
setModel Set wallet model
Open address book for editing.
void outOfSyncWarningClicked()
Notify that the out of sync warning icon has been pressed.
const PlatformStyle * platformStyle
void gotoAddTokenPage()
Switch to Add Token page.
AddressTableModel * getAddressTableModel()
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void updateEncryptionStatus()
Re-emit encryption status signal.
TokenTransactionTableModel * getTokenTransactionTableModel()
CreateContract * createContractPage
void processNewTransaction(const QModelIndex &parent, int start, int)
Show incoming transaction notification for new transactions.
void on_goToReceiveTokenPage()
void gotoCallContractPage()
Switch to call contract page.
SendCoinsDialog * sendCoinsPage
int64_t CAmount
Amount in lius (Can be negative)
void setModel(WalletModel *model)
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
void hdEnabledStatusChanged(int hdEnabled)
HD-Enabled status of wallet changed (only possible during startup)
void gotoHistoryPage()
Switch to history (transactions) page.
Ask passphrase and unlock.
void usedReceivingAddresses()
Show used receiving addresses.
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void setAddress(const QString &address)
void on_goToSendTokenPage()
void setClientModel(ClientModel *clientModel)
void encryptionStatusChanged(int status)
Encryption status of wallet changed.
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.
UI model for the transaction table of a wallet.
Widget showing the transaction list for a wallet, including a filter row.
void setClientModel(ClientModel *clientModel)
The RestoreDialog class Restore dialog class.
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
Dialog for sending fabcoins.
void setClientModel(ClientModel *clientModel)
TransactionTableModel * getTransactionTableModel()
void restoreWallet()
Restore the wallet.
Widget that shows a list of sending or receiving addresses.
UI model for the transaction table of a wallet.
Model for Fabcoin network client.
void setModel(WalletModel *model)
bool setWalletLocked(bool locked, const SecureString &passPhrase=SecureString())
void backupWallet()
Backup the wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
EncryptionStatus getEncryptionStatus() const
void gotoOverviewPage()
Switch to overview (home) page.
void showOutOfSyncWarning(bool fShow)
std::vector< ResultExecute > CallContract(const dev::Address &addrContract, std::vector< unsigned char > opcode, const dev::Address &sender, uint64_t gasLimit)
AddressBookPage * usedSendingAddressesPage
void setModel(WalletModel *model)
void setModel(WalletModel *_model)
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
PlatformStyle::TableColorType type
Interface to Fabcoin wallet from Qt view code.
void setFabcoinGUI(FabcoinGUI *gui)
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 lockWallet()
Lock the wallet.
bool processingQueuedTransactions()
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.
bool processingQueuedTransactions()
void gotoReceiveTokenPage()
Switch to Receive Token page.
Label of address related to transaction.
struct evm_uint160be address(struct evm_env *env)
Ask old passphrase + new passphrase twice.
void setModel(WalletModel *model)
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 gotoSendTokenPage()
Switch to Send Token page.
void setModel(WalletModel *model)
SendToContract * sendToContractPage
Overview ("home") page widget.
void showOutOfSyncWarning(bool fShow)
QProgressDialog * progressDialog
void showTab_VM(bool fShow)
OptionsModel * getOptionsModel()
void setClientModel(ClientModel *clientModel)
Predefined combinations for certain default usage cases.
void setAddress_SM(const QString &address)
AddressBookPage * usedReceivingAddressesPage
void on_goToAddTokenPage()
void setModel(WalletModel *model)