26 #include <validation.h> 31 #include <QActionGroup> 32 #include <QFileDialog> 33 #include <QHBoxLayout> 34 #include <QProgressDialog> 35 #include <QPushButton> 36 #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);
91 connect(exportButton, SIGNAL(clicked()),
transactionView, SLOT(exportClicked()));
99 connect(
assetsPage, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
133 connect(
this, SIGNAL(
message(QString,QString,
unsigned int)), gui, SLOT(
message(QString,QString,
unsigned int)));
139 connect(
this, SIGNAL(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString,QString)), gui, SLOT(
incomingTransaction(QString,
int,
CAmount,QString,QString,QString,QString)));
177 connect(_walletModel, SIGNAL(
message(QString,QString,
unsigned int)),
this, SIGNAL(
message(QString,QString,
unsigned int)));
191 connect(_walletModel, SIGNAL(requireUnlock()),
this, SLOT(
unlockWallet()));
212 QString assetName =
"";
213 for (
int i = start; i <= end; i++) {
217 QModelIndex index = ttm->
index(i, 0, parent);
266 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
278 signVerifyMessageDialog->setAttribute(Qt::WA_DeleteOnClose);
315 tr(
"Backup Wallet"), QString(),
316 tr(
"Wallet Data (*.dat)"),
nullptr);
318 if (filename.isEmpty())
322 Q_EMIT
message(tr(
"Backup Failed"), tr(
"There was an error trying to save the wallet data to %1.").arg(filename),
326 Q_EMIT
message(tr(
"Backup Successful"), tr(
"The wallet data was successfully saved to %1.").arg(filename),
382 else if (nProgress == 100)
QWidget * transactionsPage
void showTab_SM(bool fShow)
Dialog for requesting payment of ravens.
bool inInitialBlockDownload() const
Return true if core is doing initial block download.
void processNewTransaction(const QModelIndex &parent, int start, int end)
Show incoming transaction notification for new transactions.
void setWalletModel(WalletModel *walletModel)
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
OverviewPage * overviewPage
TransactionView * transactionView
void handleFirstSelection()
void usedSendingAddresses()
Show used sending addresses.
void setAddress_VM(const QString &address)
Dialog showing transaction details.
void setModel(AddressTableModel *model)
void changePassphrase()
Change encrypted wallet passphrase.
ClientModel * clientModel
void gotoAssetsPage()
RVN START.
Ask passphrase twice and encrypt.
bool backupWallet(const QString &filename)
void requestedSyncWarningInfo()
User has requested more information about the out of sync state.
WalletModel * walletModel
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.
EncryptionStatus getEncryptionStatus() const
int getDisplayUnit() const
SendCoinsDialog * sendCoinsPage
int64_t CAmount
Amount in corbies (Can be negative)
void processNewTransaction()
void setModel(WalletModel *model)
bool processingQueuedTransactions() 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 gotoManageAssetsPage()
void usedReceivingAddresses()
Show used receiving addresses.
void setModel(WalletModel *model)
void setWalletModel(WalletModel *walletModel)
Set the wallet model.
void setAddress(const QString &address)
void setClientModel(ClientModel *clientModel)
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 ravens.
void setModel(WalletModel *model)
TransactionTableModel * getTransactionTableModel()
Widget that shows a list of sending or receiving addresses.
UI model for the transaction table of a wallet.
ReissueAssetDialog * manageAssetsPage
Model for Raven network client.
void setModel(WalletModel *model)
void setModel(WalletModel *model)
void backupWallet()
Backup the wallet.
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
void gotoOverviewPage()
RVN END.
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.
CreateAssetDialog * createAssetsPage
Interface to Raven wallet from Qt view code.
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
Multifunctional dialog to ask for passphrases.
AssetsDialog * assetsPage
RVN START.
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 ...
WalletView(const PlatformStyle *platformStyle, QWidget *parent)
void setClientModel(ClientModel *clientModel)
Set the client model.
Dialog showing transaction details.
Ask passphrase and decrypt wallet.
void setClientModel(ClientModel *clientModel)
Label of address related to transaction.
Dialog for sending ravens.
void incomingTransaction(const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label, const QString &assetName)
Notify that a new transaction appeared.
Ask old passphrase + new passphrase twice.
void encryptWallet(bool status)
Encrypt the wallet.
ReceiveCoinsDialog * receiveCoinsPage
void gotoReceiveCoinsPage()
Switch to receive coins page.
void setRavenGUI(RavenGUI *gui)
void setModel(WalletModel *model)
Overview ("home") page widget.
void checkAssets()
Show the assets GUI.
void showOutOfSyncWarning(bool fShow)
QProgressDialog * progressDialog
void gotoCreateAssetsPage()
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)