feather/src/dialog/TxInfoDialog.h

44 lines
929 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2020-12-26 19:56:06 +00:00
// Copyright (c) 2020-2021, The Monero Project.
2021-06-27 12:22:54 +00:00
#ifndef FEATHER_TXINFODIALOG_H
#define FEATHER_TXINFODIALOG_H
#include <QDialog>
2021-01-29 14:51:59 +00:00
#include <QTextCharFormat>
#include <QtSvg/QSvgWidget>
2021-06-27 14:33:18 +00:00
2021-05-18 15:59:18 +00:00
#include "appcontext.h"
2021-03-08 20:03:20 +00:00
#include "dialog/TxProofDialog.h"
namespace Ui {
2021-06-27 12:22:54 +00:00
class TxInfoDialog;
}
2021-06-27 12:22:54 +00:00
class TxInfoDialog : public QDialog
{
Q_OBJECT
public:
2021-06-27 12:22:54 +00:00
explicit TxInfoDialog(QSharedPointer<AppContext> ctx, TransactionInfo *txInfo, QWidget *parent = nullptr);
~TxInfoDialog() override;
2021-03-14 21:12:02 +00:00
signals:
void resendTranscation(const QString &txid);
private:
2021-01-29 14:51:59 +00:00
void copyTxKey();
2021-03-08 20:03:20 +00:00
void createTxProof();
2021-06-27 14:35:49 +00:00
void setData(TransactionInfo *tx);
2021-03-14 21:12:02 +00:00
void updateData();
2021-01-29 14:51:59 +00:00
2021-06-27 12:22:54 +00:00
QScopedPointer<Ui::TxInfoDialog> ui;
2021-05-18 15:59:18 +00:00
QSharedPointer<AppContext> m_ctx;
2021-05-10 13:20:33 +00:00
TransactionInfo *m_txInfo;
TxProofDialog *m_txProofDialog;
2021-01-29 14:51:59 +00:00
QString m_txKey;
2021-03-08 20:03:20 +00:00
QString m_txid;
};
2021-06-27 12:22:54 +00:00
#endif //FEATHER_TXINFODIALOG_H