2021-03-08 20:03:20 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2023-01-02 19:30:11 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
2021-03-08 20:03:20 +00:00
|
|
|
|
|
|
|
#ifndef FEATHER_TXPROOFDIALOG_H
|
|
|
|
#define FEATHER_TXPROOFDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2021-10-22 17:19:56 +00:00
|
|
|
#include "components.h"
|
2023-03-01 02:05:56 +00:00
|
|
|
#include "libwalletqt/Wallet.h"
|
2023-11-17 13:05:31 +00:00
|
|
|
#include "rows/TransactionRow.h"
|
2021-03-08 20:03:20 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TxProofDialog;
|
|
|
|
}
|
|
|
|
|
2021-10-22 17:19:56 +00:00
|
|
|
class TxProofDialog : public WindowModalDialog
|
2021-03-08 20:03:20 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-11-17 13:05:31 +00:00
|
|
|
explicit TxProofDialog(QWidget *parent, Wallet *wallet, TransactionRow *txid);
|
2021-03-08 20:03:20 +00:00
|
|
|
~TxProofDialog() override;
|
|
|
|
void setTxId(const QString &txid);
|
2021-07-02 17:35:21 +00:00
|
|
|
void getTxKey();
|
2021-03-08 20:03:20 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void selectSpendProof();
|
|
|
|
void selectOutProof();
|
|
|
|
void selectInProof();
|
|
|
|
void selectTxProof();
|
|
|
|
|
|
|
|
private:
|
|
|
|
enum Mode {
|
|
|
|
SpendProof = 0,
|
|
|
|
OutProof,
|
|
|
|
InProof
|
|
|
|
};
|
|
|
|
|
|
|
|
void getFormattedProof();
|
|
|
|
void getSignature();
|
|
|
|
TxProof getProof();
|
|
|
|
void resetFrames();
|
|
|
|
void toggleButtons(bool enabled);
|
|
|
|
void showWarning(const QString &message);
|
|
|
|
|
2021-06-27 14:43:14 +00:00
|
|
|
QScopedPointer<Ui::TxProofDialog> ui;
|
2023-03-01 02:05:56 +00:00
|
|
|
Wallet *m_wallet;
|
2021-06-27 14:43:14 +00:00
|
|
|
|
2021-03-08 20:03:20 +00:00
|
|
|
QStringList m_OutDestinations;
|
|
|
|
QStringList m_InDestinations;
|
|
|
|
QString m_txid;
|
|
|
|
QString m_txKey;
|
|
|
|
Mode m_mode;
|
2023-11-17 13:05:31 +00:00
|
|
|
TransactionRow::Direction m_direction;
|
2021-03-08 20:03:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FEATHER_TXPROOFDIALOG_H
|