PIVX Core  5.6.99
P2P Digital Currency
sendchangeaddressdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_SENDCHANGEADDRESSDIALOG_H
6 #define PIVX_QT_SENDCHANGEADDRESSDIALOG_H
7 
8 #include "destination_io.h"
9 #include "focuseddialog.h"
10 #include "script/standard.h"
11 #include "snackbar.h"
12 
13 class WalletModel;
14 
15 namespace Ui {
17 }
18 
20 {
21  Q_OBJECT
22 
23 public:
24  explicit SendChangeAddressDialog(QWidget* parent, WalletModel* model, bool isTransparent);
26 
27  void setAddress(QString address);
29 
30  void showEvent(QShowEvent* event) override;
31 
32 private:
35  Ui::SendChangeAddressDialog *ui;
36  SnackBar *snackBar = nullptr;
38 
39  void inform(const QString& text);
40 
41 private Q_SLOTS:
42  void reset();
43  void accept() override;
44 };
45 
46 #endif // PIVX_QT_SENDCHANGEADDRESSDIALOG_H
void inform(const QString &text)
CWDestination getDestination() const
Ui::SendChangeAddressDialog * ui
void showEvent(QShowEvent *event) override
void setAddress(QString address)
SendChangeAddressDialog(QWidget *parent, WalletModel *model, bool isTransparent)
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109
boost::variant< CTxDestination, libzcash::SaplingPaymentAddress > CWDestination