PIVX Core  5.6.99
P2P Digital Currency
sendconfirmdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 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_SENDCONFIRMDIALOG_H
6 #define PIVX_QT_SENDCONFIRMDIALOG_H
7 
8 #include "focuseddialog.h"
9 #include "snackbar.h"
10 #include "walletmodeltransaction.h"
11 
13 class WalletModel;
14 
15 namespace Ui {
16 class TxDetailDialog;
17 }
18 
19 QT_BEGIN_NAMESPACE
20 class QModelIndex;
21 QT_END_NAMESPACE
22 
24 {
25  Q_OBJECT
26 
27 public:
28  explicit TxDetailDialog(QWidget *parent = nullptr, bool isConfirmDialog = true, const QString& warningStr = QString());
30 
31  bool isConfirm() { return this->confirm;}
33 
35  void setData(WalletModel *model, const QModelIndex &index);
36  void setDisplayUnit(int unit){this->nDisplayUnit = unit;};
37 
38 public Q_SLOTS:
39  void accept() override;
40  void reject() override;
41  void onInputsClicked();
42  void onOutputsClicked();
43 
44 private:
45  Ui::TxDetailDialog *ui;
46  SnackBar *snackBar = nullptr;
47  int nDisplayUnit = 0;
48  bool isConfirmDialog = false;
49  bool confirm = false;
50  WalletModel *model = nullptr;
54  // Shielded tx with not inputs data
56 
57  bool inputsLoaded = false;
58  bool outputsLoaded = false;
59 
61 };
62 
63 #endif // PIVX_QT_SENDCONFIRMDIALOG_H
void reject() override
WalletModel::SendCoinsReturn getStatus()
void setDisplayUnit(int unit)
SnackBar * snackBar
void accept() override
WalletModel::SendCoinsReturn sendStatus
WalletModel * model
Ui::TxDetailDialog * ui
void setInputsType(CTransactionRef _tx)
TxDetailDialog(QWidget *parent=nullptr, bool isConfirmDialog=true, const QString &warningStr=QString())
void setData(WalletModel *model, WalletModelTransaction *tx)
WalletModelTransaction * tx
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109
Data model for a walletmodel transaction.
256-bit opaque blob.
Definition: uint256.h:138
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:456