mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-08 20:09:43 +00:00
58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
|
|
|
#ifndef FEATHER_TXPROOFDIALOG_H
|
|
#define FEATHER_TXPROOFDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "components.h"
|
|
#include "libwalletqt/Wallet.h"
|
|
#include "rows/TransactionRow.h"
|
|
|
|
namespace Ui {
|
|
class TxProofDialog;
|
|
}
|
|
|
|
class TxProofDialog : public WindowModalDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TxProofDialog(QWidget *parent, Wallet *wallet, TransactionRow *txid);
|
|
~TxProofDialog() override;
|
|
void setTxId(const QString &txid);
|
|
void getTxKey();
|
|
|
|
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);
|
|
|
|
QScopedPointer<Ui::TxProofDialog> ui;
|
|
Wallet *m_wallet;
|
|
|
|
QStringList m_OutDestinations;
|
|
QStringList m_InDestinations;
|
|
QString m_txid;
|
|
QString m_txKey;
|
|
Mode m_mode;
|
|
TransactionRow::Direction m_direction;
|
|
};
|
|
|
|
#endif //FEATHER_TXPROOFDIALOG_H
|